|
@@ -608,7 +608,7 @@ FROM
|
|
|
aa.phone <> ''
|
|
|
AND
|
|
|
IF
|
|
|
- ( aa.phone_time IS NULL, aa.create_time, aa.phone_time )>= '2024-09-01 08:18:19'
|
|
|
+ ( 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 )
|
|
@@ -624,12 +624,12 @@ 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 ))
|
|
|
ORDER BY time
|
|
|
- `, selectXcxTimeEnd)
|
|
|
+ `, selectXcxTimeEnd, selectXcxTimeEnd)
|
|
|
xcxData := TiDb.SelectBySql(xcxSql)
|
|
|
if xcxData != nil && *xcxData != nil && len(*xcxData) > 0 {
|
|
|
for k, v := range *xcxData {
|