sql修复

This commit is contained in:
hongchao 2025-09-19 15:41:34 +08:00
parent 130440d3d8
commit 8000e6e4f8
1 changed files with 1 additions and 2 deletions

View File

@ -223,7 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
THEN 1 THEN 1
ELSE NULL ELSE NULL
END) AS ApproachingNum, END) AS ApproachingNum,
0 AS TimeoutNum AS TimeoutNum 0 AS TimeoutNum
FROM ma_machine mm FROM ma_machine mm
LEFT JOIN slt_agreement_info sai on sai.ma_id = mm.ma_id and mm.type_id = sai.type_id LEFT JOIN slt_agreement_info sai on sai.ma_id = mm.ma_id and mm.type_id = sai.type_id
LEFT JOIN bm_agreement_info bai ON sai.agreement_id = bai.agreement_id LEFT JOIN bm_agreement_info bai ON sai.agreement_id = bai.agreement_id
@ -240,7 +240,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null"> <if test="deptId != null">
AND sd.dept_id = #{deptId} AND sd.dept_id = #{deptId}
</if> </if>
AND mm.next_check_time IS NOT NULL
</select> </select>
<select id="getApproachingDetails" resultType="com.bonus.material.push.domain.MachineInfoBean"> <select id="getApproachingDetails" resultType="com.bonus.material.push.domain.MachineInfoBean">