Merge remote-tracking branch 'origin/main'

This commit is contained in:
Gjm
2026-05-13 10:32:33 +08:00
3 changed files with 13 additions and 5 deletions

View File

@@ -27,6 +27,6 @@ public class SyncDeviceMaintenanceRepairJob {
deviceMaintenanceRepairService.syncDeviceMaintenanceRepairInfo();
log.info("*********** 开始同步维修保修数据 ************");
log.info("*********** 同步维修保修数据结束 ************");
}
}

View File

@@ -36,8 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
by_management_jl w
LEFT JOIN sys_device s ON s.id = w.equipment_info
WHERE
s.dev_type = #{devtype}
AND w.is_deleted = 0;
w.is_deleted = 0
<if test="devtype != null">
AND s.dev_type = #{devtype}
</if>
</select>
</mapper>

View File

@@ -51,7 +51,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN
sys_device s ON s.id = w.dev_name
WHERE
w.dev_type = #{devtype} AND w.is_deleted = 0
w.is_deleted = 0
<if test="devtype != null">
AND w.dev_type = #{devtype}
</if>
</select>
<select id="deviceList" resultType="iot.lidee.iot.domain.Device">
@@ -62,7 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN
iot_device_group g ON g.device_id = w.device_id
WHERE
w.del_flag = 0 AND g.group_id = #{devtype}
w.del_flag = 0
<if test="devtype != null">
AND g.group_id = #{devtype}
</if>
</select>