Commit 95ff9119 authored by 单奇雲's avatar 单奇雲

调试接口

parent 2cb81c97
...@@ -17,11 +17,11 @@ public enum DataRefreshTypeEum { ...@@ -17,11 +17,11 @@ public enum DataRefreshTypeEum {
trouble("设备故障","trouble"), trouble("设备故障","trouble"),
dutyChange("值班信息","dutyChange"); dutyChange("值班信息","dutyChange");
private String name;
private String code; private String code;
private String name; DataRefreshTypeEum(String name,String code){
DataRefreshTypeEum(String code,String name){
this.name = name; this.name = name;
this.code = code; this.code = code;
} }
......
...@@ -49,6 +49,9 @@ import org.typroject.tyboot.component.cache.Redis; ...@@ -49,6 +49,9 @@ import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.component.cache.enumeration.CacheType; import org.typroject.tyboot.component.cache.enumeration.CacheType;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
import static org.hamcrest.CoreMatchers.nullValue;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
...@@ -1191,6 +1194,12 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -1191,6 +1194,12 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
content.put("id",fireEquipmentData.getId()); content.put("id",fireEquipmentData.getId());
content.put("label",fireEquipmentData.getEqPointName()); content.put("label",fireEquipmentData.getEqPointName());
content.put("changeDate",fireEquipmentData.getCreateDate()); content.put("changeDate",fireEquipmentData.getCreateDate());
Optional<FireEquipment> fireEquipment = iFireEquipmentDao.findById(fireEquipmentPoint.getFireEquipmentId());
if(fireEquipment.isPresent()) {
content.put("orgCode",fireEquipment.get().getOrgCode());
}else {
log.info(fireEquipmentPoint.getFireEquipmentId() + "设备不存在!!!");
}
iDataRefreshService.sendRefreshDataWithArea(DataRefreshTypeEum.monitor.getCode(),content); iDataRefreshService.sendRefreshDataWithArea(DataRefreshTypeEum.monitor.getCode(),content);
} }
......
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