Commit f93bddc2 authored by tangwei's avatar tangwei

修改查询数据

parent df14d765
......@@ -726,7 +726,7 @@ public class SunlightServiceImpl implements SunlightService {
li.add(SunlightUtil.alarmstatus.get("4"));
li.add(SunlightUtil.alarmstatus.get("5"));
List<HYGFJPInverterWarn> hygfjpInverterWarnlist = hygfjpInverterWarnMapper.selectList(new QueryWrapper<HYGFJPInverterWarn>()
.in("state", li)
.in("`state`", li)
.eq("third_code", PVProducerInfoEnum.YG.getCode())
);
......@@ -753,7 +753,7 @@ public class SunlightServiceImpl implements SunlightService {
//告警不存在,新增
HYGFJPInverterWarn hygfjpInverterWarn = new HYGFJPInverterWarn();
hygfjpInverterWarn.setTime(System.currentTimeMillis());
hygfjpInverterWarn.setSnCode(!jpInverterbodyparam.isEmpty()&&jpInverterbodyparam.containsKey(sunlightWarm.getUuid())?jpInverterbodyparam.get(sunlightWarm.getUuid()):null);
hygfjpInverterWarn.setSnCode(!jpInverterbodyparam.isEmpty()&&jpInverterbodyparam.containsKey(sunlightWarm.getUuid().toString())?jpInverterbodyparam.get(sunlightWarm.getUuid().toString()):null);
hygfjpInverterWarn.setThirdStationId(sunlightWarm.getPs_id().toString());
hygfjpInverterWarn.setLevel(SunlightUtil.alarmLevel.get(sunlightWarm.getFault_level()));
hygfjpInverterWarn.setContent(sunlightWarm.getFault_name());
......
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