|
@@ -266,7 +266,7 @@ func GetScheduleStats(start int64, end int64, mode int64, org_id int64, time_way
|
266
|
266
|
JOIN
|
267
|
267
|
xt_treatment_mode t ON p.mode_id = t.mode_id
|
268
|
268
|
WHERE
|
269
|
|
- FROM_UNIXTIME(p.schedule_date) >= ? AND FROM_UNIXTIME(p.schedule_date) <= ? AND p.user_org_id = ? and p.mode_id = ?
|
|
269
|
+ FROM_UNIXTIME(p.schedule_date) >= ? AND FROM_UNIXTIME(p.schedule_date) <= ? AND p.user_org_id = ? and p.mode_id = ? and p.status = 1
|
270
|
270
|
GROUP BY
|
271
|
271
|
日期
|
272
|
272
|
`, strings.Join(selectClauses, ", "))
|
|
@@ -281,7 +281,7 @@ func GetScheduleStats(start int64, end int64, mode int64, org_id int64, time_way
|
281
|
281
|
JOIN
|
282
|
282
|
xt_treatment_mode t ON p.mode_id = t.mode_id
|
283
|
283
|
WHERE
|
284
|
|
- FROM_UNIXTIME(p.schedule_date) >= ? AND FROM_UNIXTIME(p.schedule_date) <= ? AND p.user_org_id = ?
|
|
284
|
+ FROM_UNIXTIME(p.schedule_date) >= ? AND FROM_UNIXTIME(p.schedule_date) <= ? AND p.user_org_id = ? and p.status = 1
|
285
|
285
|
GROUP BY
|
286
|
286
|
日期
|
287
|
287
|
`, strings.Join(selectClauses, ", "))
|