Browse Source

扫码报警事件对接

develop
lau572 4 months ago
parent
commit
45ab0ee8da
  1. 2
      zc-business/src/main/java/com/zc/business/controller/CodeScanningAlarmController.java

2
zc-business/src/main/java/com/zc/business/controller/CodeScanningAlarmController.java

@ -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());

Loading…
Cancel
Save