|
|
@ -44,7 +44,7 @@ public class CodeScanningAlarmController extends BaseController { |
|
|
|
DcWarning dcWarning = new DcWarning(); |
|
|
|
dcWarning.setId(id); |
|
|
|
dcWarning.setOtherConfig(String.valueOf(JSONObject.parseObject(JSONObject.toJSONString(returnParameters)))); |
|
|
|
if (dcWarningService.selectDcWarningById(id) == null) { |
|
|
|
if (dcWarningService.selectAlarmById(id) == null) { |
|
|
|
dcWarning.setStakeMark(String.valueOf(returnParameters.get("stakeNum"))); |
|
|
|
String roadCode = String.valueOf(returnParameters.get("roadCode")); |
|
|
|
dcWarning.setDirection(Objects.equals(roadCode, UniversalEnum.ONE.getValue()) ? UniversalEnum.THREE.getValue() : UniversalEnum.ONE.getValue()); |
|
|
|