Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -27,6 +27,6 @@ public class SyncDeviceMaintenanceRepairJob {
|
|||||||
|
|
||||||
deviceMaintenanceRepairService.syncDeviceMaintenanceRepairInfo();
|
deviceMaintenanceRepairService.syncDeviceMaintenanceRepairInfo();
|
||||||
|
|
||||||
log.info("*********** 开始同步维修保修数据 ************");
|
log.info("*********** 同步维修保修数据结束 ************");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
by_management_jl w
|
by_management_jl w
|
||||||
LEFT JOIN sys_device s ON s.id = w.equipment_info
|
LEFT JOIN sys_device s ON s.id = w.equipment_info
|
||||||
WHERE
|
WHERE
|
||||||
s.dev_type = #{devtype}
|
w.is_deleted = 0
|
||||||
AND w.is_deleted = 0;
|
<if test="devtype != null">
|
||||||
|
AND s.dev_type = #{devtype}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -51,7 +51,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
sys_device s ON s.id = w.dev_name
|
sys_device s ON s.id = w.dev_name
|
||||||
WHERE
|
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>
|
||||||
|
|
||||||
<select id="deviceList" resultType="iot.lidee.iot.domain.Device">
|
<select id="deviceList" resultType="iot.lidee.iot.domain.Device">
|
||||||
@@ -62,7 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
iot_device_group g ON g.device_id = w.device_id
|
iot_device_group g ON g.device_id = w.device_id
|
||||||
WHERE
|
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>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user