|
@ -245,14 +245,16 @@ public class DcWarningController extends BaseController |
|
|
|
|
|
|
|
|
List<DcNoStakeWarningTable> updatedList = list.stream() |
|
|
List<DcNoStakeWarningTable> updatedList = list.stream() |
|
|
.peek(warningTable -> { |
|
|
.peek(warningTable -> { |
|
|
JSONObject otherConfig = JSONObject.parseObject(warningTable.getOtherConfig()); |
|
|
if ("2".equals(warningTable.getWarningType())) { |
|
|
String earlyWorningSignal = otherConfig.getString("earlyWorningSignal"); |
|
|
JSONObject otherConfig = JSONObject.parseObject(warningTable.getOtherConfig()); |
|
|
String[] split = earlyWorningSignal.split(UniversalEnum.YJ_STRING.getValue()); |
|
|
String earlyWorningSignal = otherConfig.getString("earlyWorningSignal"); |
|
|
String content = WeatherTrafficProposeUtil.content( |
|
|
String[] split = earlyWorningSignal.split(UniversalEnum.YJ_STRING.getValue()); |
|
|
Integer.parseInt(split[UniversalEnum.ONE.getNumber()]), |
|
|
String content = WeatherTrafficProposeUtil.content( |
|
|
split[UniversalEnum.ZERO.getNumber()] |
|
|
Integer.parseInt(split[UniversalEnum.ONE.getNumber()]), |
|
|
); |
|
|
split[UniversalEnum.ZERO.getNumber()] |
|
|
warningTable.setWarningDescription(warningTable.getWarningDescription() + "\n" +content); |
|
|
); |
|
|
|
|
|
warningTable.setWarningDescription(warningTable.getWarningDescription() + "\n" + content); |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
|
|
|