Commit a8d6d647 authored by duanruiming's avatar duanruiming

[update] 事件方向转向数据结构优化

parent 23a1e45d
...@@ -17,7 +17,7 @@ public class EventDataDTO { ...@@ -17,7 +17,7 @@ public class EventDataDTO {
private String eventId; private String eventId;
private String crossId; private String crossId;
private String eventType; private String eventType;
private List<String> direction; private List<Integer> direction;
private Double eventLongitude; private Double eventLongitude;
private Double eventLatitude; private Double eventLatitude;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
...@@ -30,7 +30,7 @@ public class EventDataDTO { ...@@ -30,7 +30,7 @@ public class EventDataDTO {
/** /**
* add 20250107 * add 20250107
*/ */
private List<String> turn; private List<Integer> turn;
private Double unbalanceIndex; private Double unbalanceIndex;
private Double spilloverIndex; private Double spilloverIndex;
......
...@@ -82,8 +82,8 @@ public class EventDataServiceImpl implements EventDataService { ...@@ -82,8 +82,8 @@ public class EventDataServiceImpl implements EventDataService {
eventInfoPO.setLng(eventInfoPO.getLng()); eventInfoPO.setLng(eventInfoPO.getLng());
eventInfoPO.setCategory(eventDataDTO.getEventLevel()); eventInfoPO.setCategory(eventDataDTO.getEventLevel());
eventInfoPO.setPlaceDesc(eventDataDTO.getEventType()); eventInfoPO.setPlaceDesc(eventDataDTO.getEventType());
List<String> directions = eventDataDTO.getDirection(); List<Integer> directions = eventDataDTO.getDirection();
List<Integer> dirs = new ArrayList<>(directions.size()); List<Integer> dirs = new ArrayList<>();
if (!CollectionUtils.isEmpty(directions)) { if (!CollectionUtils.isEmpty(directions)) {
directions.forEach(item -> { directions.forEach(item -> {
dirs.add(Integer.valueOf(item) + 1); dirs.add(Integer.valueOf(item) + 1);
......
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