Commit 369f0a21 authored by chenzhao's avatar chenzhao

修改代码

parent 720f98c5
......@@ -230,4 +230,6 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
List<Map<String, Object>> alarmTrend(String bizOrgCode);
List<Map<String, Object>> stationInfo();
void updateStatusByAlarm();
}
......@@ -147,6 +147,7 @@ public class EquipmentSpecificAlarmLogServiceImpl extends ServiceImpl<EquipmentS
String confirmUserName = "系统自动处理";
String resolveResult = DateUtils.getDateNowString()+"系统收到设备复归(已消除)信号,系统自动处理。";
String confirmTypeName = "故障";
equipmentSpecificAlarmMapper.updateStatusByAlarm();
equipmentSpecificAlarmLogMapper.updateStatusByAlarm(confirmUserName,resolveResult,confirmTypeName);
}
......
......@@ -12,6 +12,11 @@
<result column="status" property="status"/>
<result column="confirmType" property="confirmType"/>
</resultMap>
<update id="updateStatusByAlarm">
update wl_equipment_specific_alarm set status = 0,recovery_date = now() where status = 1
</update>
<select id="getEquipmentSpecAlarmByIotCode"
resultType="com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm">
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment