Commit c92cd1f0 authored by 李秀明's avatar 李秀明

fix: BUG#22446 业务管理>消防巡查,今日已巡查站统计错误

parent 67756505
...@@ -1523,13 +1523,13 @@ ...@@ -1523,13 +1523,13 @@
UNION ALL UNION ALL
SELECT SELECT
ifnull( count( DISTINCT LEFT(p_plan_task.point_num, 18) ), 0 ) AS value, COUNT(DISTINCT LEFT(p_plan_task.org_code, 18)) AS value,
'今日已巡查站' AS name, '今日已巡查站' AS name,
'JRYXCZ' AS code 'JRYXCZ' AS code
FROM FROM
p_plan_task p_plan_task
<where> <where>
finish_status = 2 (finish_status = 2 OR finish_status = 3)
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE () AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if test="bizOrgCode != null and bizOrgCode != ''"> <if test="bizOrgCode != null and bizOrgCode != ''">
AND org_code LIKE CONCAT(#{bizOrgCode}, '%') AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment