This commit is contained in:
pengjie 2023-11-08 11:19:25 +08:00
parent 69d0e6c858
commit 621cc8f0c6
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,6 @@ public interface AiMonitorAlarmMapper extends BaseMapper<AiMonitorAlarm> {
Integer getCountForToDay(String projectSn, String engineeringSn, Integer type);
Integer statByState();
Integer statByEngineering();

View File

@ -3,8 +3,10 @@
<mapper namespace="com.zhgd.xmgl.modules.wisdom.mapper.AiMonitorAlarmMapper">
<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 project p ON a.project_sn = p.project_sn
LEFT JOIN engineering e ON a.engineering_sn = e.engineering_sn
${ew.customSqlSegment}
</select>