暂态事件显示优化
This commit is contained in:
@@ -97,6 +97,8 @@ public class EventDetailVO {
|
|||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
private String location;
|
||||||
|
|
||||||
private List<EventDataSetDTO> dataSet;
|
private List<EventDataSetDTO> dataSet;
|
||||||
/*暂态深度*/
|
/*暂态深度*/
|
||||||
private String evtParamVVaDepth;
|
private String evtParamVVaDepth;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
1 status,
|
1 status,
|
||||||
</if>
|
</if>
|
||||||
b.device_id deviceId,b.line_id lineId,b.code code,
|
b.device_id deviceId,b.line_id lineId,b.code code,
|
||||||
b.start_time startTime,b.tag tag ,b.wave_path wavePath,b.instant_pics,b.rms_pics , b.type type,b.level level
|
b.start_time startTime,b.tag tag ,b.wave_path wavePath,b.instant_pics,b.rms_pics , b.type type,b.level level,b.location location
|
||||||
from cs_event_user a inner join cs_event b on a.event_id=b.id inner join cs_equipment_delivery c on b.device_id=c.id where 1=1
|
from cs_event_user a inner join cs_event b on a.event_id=b.id inner join cs_equipment_delivery c on b.device_id=c.id where 1=1
|
||||||
and b.process=c.process
|
and b.process=c.process
|
||||||
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.endTime != null and csEventUserQueryPage.endTime !=''">
|
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.endTime != null and csEventUserQueryPage.endTime !=''">
|
||||||
|
|||||||
@@ -319,8 +319,13 @@ public class CsEventUserPOServiceImpl extends ServiceImpl<CsEventUserPOMapper, C
|
|||||||
temp.setEvtParamPosition("-");
|
temp.setEvtParamPosition("-");
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
temp.setEvtParamPosition(evtParamPosition.get(0).getValue()+(Objects.isNull(evtParamPosition.get(0).getUnit())?"":evtParamPosition.get(0).getUnit()));
|
//temp.setEvtParamPosition(evtParamPosition.get(0).getValue()+(Objects.isNull(evtParamPosition.get(0).getUnit())?"":evtParamPosition.get(0).getUnit()));
|
||||||
|
temp.setEvtParamPosition(evtParamPosition.get(0).getValue());
|
||||||
|
}
|
||||||
|
if (Objects.equals(temp.getEvtParamPosition(),"-")) {
|
||||||
|
if (!Objects.isNull(temp.getLocation())) {
|
||||||
|
temp.setEvtParamPosition(Objects.equals(temp.getLocation(),"grid")?"电网侧":"负载侧");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<EventDataSetDTO> evtParamTm = eventDataSetDTOS.stream().
|
List<EventDataSetDTO> evtParamTm = eventDataSetDTOS.stream().
|
||||||
|
|||||||
Reference in New Issue
Block a user