优化
This commit is contained in:
parent
69d0e6c858
commit
621cc8f0c6
@ -30,7 +30,6 @@ public interface AiMonitorAlarmMapper extends BaseMapper<AiMonitorAlarm> {
|
|||||||
|
|
||||||
Integer getCountForToDay(String projectSn, String engineeringSn, Integer type);
|
Integer getCountForToDay(String projectSn, String engineeringSn, Integer type);
|
||||||
|
|
||||||
|
|
||||||
Integer statByState();
|
Integer statByState();
|
||||||
|
|
||||||
Integer statByEngineering();
|
Integer statByEngineering();
|
||||||
|
|||||||
@ -3,8 +3,10 @@
|
|||||||
<mapper namespace="com.zhgd.xmgl.modules.wisdom.mapper.AiMonitorAlarmMapper">
|
<mapper namespace="com.zhgd.xmgl.modules.wisdom.mapper.AiMonitorAlarmMapper">
|
||||||
|
|
||||||
<select id="pageList" resultType="com.zhgd.xmgl.modules.wisdom.entity.AiMonitorAlarm">
|
<select id="pageList" resultType="com.zhgd.xmgl.modules.wisdom.entity.AiMonitorAlarm">
|
||||||
SELECT a.*, d.`name` as deviceName FROM ai_monitor_alarm a
|
SELECT a.*, d.`name` as deviceName, p.project_name, e.engineering_name FROM ai_monitor_alarm a
|
||||||
LEFT JOIN ai_monitor_dev d ON a.device_code = d.`code` AND a.hardware_id = d.hardware_id
|
LEFT JOIN ai_monitor_dev d ON a.device_code = d.`code` AND a.hardware_id = d.hardware_id
|
||||||
|
LEFT JOIN project p ON a.project_sn = p.project_sn
|
||||||
|
LEFT JOIN engineering e ON a.engineering_sn = e.engineering_sn
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user