Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 1 month ago
parent
commit
b0cbf32a20
1 changed files with 2 additions and 2 deletions
  1. 2 2
      service/statistis_qc_service.go

+ 2 - 2
service/statistis_qc_service.go View File

@@ -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, ", "))