代码优化

This commit is contained in:
xy
2024-12-26 15:29:42 +08:00
parent 67be8404d5
commit b014aa7c8c

View File

@@ -228,7 +228,9 @@ public class EventServiceImpl implements IEventService {
//fixme 电流接线方式 这边系统没有字典,录入字典通用性不强,采用装置上送值存储 //fixme 电流接线方式 这边系统没有字典,录入字典通用性不强,采用装置上送值存储
wlRecord.setCurConSel(item.getCurConSel().toString()); wlRecord.setCurConSel(item.getCurConSel().toString());
wlRecord.setStartTime(timestampToDatetime((item.getPrjTimeStart() - 8*3600))); wlRecord.setStartTime(timestampToDatetime((item.getPrjTimeStart() - 8*3600)));
if (!Objects.equals(item.getPrjTimeEnd(),-1L)) {
wlRecord.setEndTime(timestampToDatetime((item.getPrjTimeEnd() - 8*3600))); wlRecord.setEndTime(timestampToDatetime((item.getPrjTimeEnd() - 8*3600)));
}
wlRecord.setType(1); wlRecord.setType(1);
wlRecord.setState(1); wlRecord.setState(1);
wlRecord.setGcDataPath(item.getPrjDataPath()); wlRecord.setGcDataPath(item.getPrjDataPath());