Commit 8f568fbd authored by 李秀明's avatar 李秀明

消防管控大屏:巡检报告数据查询错误

parent 166b2fa0
......@@ -1126,7 +1126,7 @@
<select id="countData" resultType="long">
SELECT
count(1)
count(DISTINCT ppk.id)
FROM
`p_plan_task` ppk
LEFT JOIN p_plan pp ON pp.id = ppk.plan_id
......@@ -1169,6 +1169,7 @@
<if test="param.routeId != null"> and ppk.route_id = #{param.routeId} </if>
<if test="param.bizOrgCode != null"> and pp.biz_org_code like concat('%',#{param.bizOrgCode},'%') </if>
</where>
GROUP BY ppk.id
ORDER BY
ppk.begin_time DESC
<choose>
......
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