update code

dev_xds
haha 2024-08-17 13:42:25 +08:00
parent 99c058db90
commit 63218f6340
1 changed files with 4 additions and 3 deletions

View File

@ -215,8 +215,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM dev_pitmonit_southsmos_alarm a
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
WHERE b.project_id = 644
AND a.is_del = 0
AND a.status = 'false';
WHERE
a.is_del = 0
<if test="status != null and status != ''"> and a.status = #{status}</if>
<if test="projectId != null and projectId >0"> and b.project_id = #{projectId}</if>
</select>
</mapper>