|
@@ -612,7 +612,7 @@ FROM
|
|
|
aa.phone <> ''
|
|
|
AND
|
|
|
IF
|
|
|
- ( aa.phone_time IS NULL, aa.create_time, aa.phone_time )> '%s'
|
|
|
+ ( aa.phone_time IS NULL, aa.create_time, aa.phone_time ) > '%s'
|
|
|
AND aa.miniprogram_code = bb.CODE
|
|
|
)
|
|
|
INNER JOIN debris_product.industry cc ON ( bb.industry_code = cc.CODE )
|
|
@@ -628,7 +628,7 @@ WHERE
|
|
|
AND aa.id != a.id
|
|
|
AND
|
|
|
IF
|
|
|
- ( a.phone_time IS NULL, a.create_time, a.phone_time )> '%s'
|
|
|
+ ( a.phone_time IS NULL, a.create_time, a.phone_time ) <= '%s'
|
|
|
AND a.miniprogram_code = b.CODE
|
|
|
)
|
|
|
INNER JOIN debris_product.miniprogram_user c ON ( a.unionid = c.unionid AND b.CODE = c.miniprogram_code ))
|