Commit 86f28452 authored by 张森's avatar 张森

巡检产生预警存在部门数据,biz_org_code改为取前18位

parent a9b2b122
...@@ -505,7 +505,7 @@ ...@@ -505,7 +505,7 @@
SELECT SELECT
IFNULL( IF ( sum( IF ( ppt.finish_status = '2', 1, 0 ) ) > 0, 1, 0 ), 0 ) AS isFinishOnce, IFNULL( IF ( sum( IF ( ppt.finish_status = '2', 1, 0 ) ) > 0, 1, 0 ), 0 ) AS isFinishOnce,
IFNULL( sum( 1 ), 0 ) AS taskNum, IFNULL( sum( 1 ), 0 ) AS taskNum,
pp.biz_org_code bizOrgCode, LEFT(pp.biz_org_code, 18) bizOrgCode,
pp.biz_org_name bizOrgName, pp.biz_org_name bizOrgName,
ppt.plan_name planName, ppt.plan_name planName,
( (
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
`p_plan_task` ppt `p_plan_task` ppt
LEFT JOIN `p_plan` pp ON pp.id = ppt.plan_id LEFT JOIN `p_plan` pp ON pp.id = ppt.plan_id
where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null and ppt.plan_id is not null where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null and ppt.plan_id is not null
GROUP BY biz_org_code GROUP BY LEFT(pp.biz_org_code, 18)
</select> </select>
<select id="getEquipIndexInIndex" resultType="com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"> <select id="getEquipIndexInIndex" resultType="com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex">
SELECT SELECT
......
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