Browse Source

提交代码

陈少旭 6 months ago
parent
commit
8b0eec14d2
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
         JOIN
266
         JOIN
267
             xt_treatment_mode t ON p.mode_id = t.mode_id
267
             xt_treatment_mode t ON p.mode_id = t.mode_id
268
         WHERE
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
         GROUP BY
270
         GROUP BY
271
            日期
271
            日期
272
     `, strings.Join(selectClauses, ", "))
272
     `, strings.Join(selectClauses, ", "))
281
         JOIN
281
         JOIN
282
             xt_treatment_mode t ON p.mode_id = t.mode_id
282
             xt_treatment_mode t ON p.mode_id = t.mode_id
283
         WHERE
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
         GROUP BY
285
         GROUP BY
286
            日期
286
            日期
287
     `, strings.Join(selectClauses, ", "))
287
     `, strings.Join(selectClauses, ", "))