From a05b419384e148fc950c77553816a2d05144f4ae Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期四, 19 六月 2025 19:36:22 +0800 Subject: [PATCH] 修改生产环境配置 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WarnServiceImpl.java | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WarnServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WarnServiceImpl.java index 4926202..cfded91 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WarnServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WarnServiceImpl.java @@ -123,6 +123,30 @@ warn.setTreatmentState("将来处理"); break; } + if(0x00 != vo.getResult() && null == warn.getTreatmentTime()){ + UPWarnMsgOperationInfoVo upWarnMsgOperationInfoVo = upWarnMsgOperationInfoClient.getUPWarnMsgOperationInfo(warn.getObjectId()).getData(); + if(null != upWarnMsgOperationInfoVo){ + warn.setTreatmentUser(upWarnMsgOperationInfoVo.getOperator()); + warn.setTreatmentTime(LocalDateTime.ofEpochSecond(upWarnMsgOperationInfoVo.getCreateTime(), 0, ZoneOffset.ofHours(8)).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); + switch (upWarnMsgOperationInfoVo.getMethod()) { + case 0x01: + warn.setTreatmentRemark("快速拍照"); + break; + case 0x02: + warn.setTreatmentRemark("语音下发"); + break; + case 0x03: + warn.setTreatmentRemark("不做处理"); + break; + case 0x04: + warn.setTreatmentRemark("其他"); + break; + default: + warn.setTreatmentRemark("其他"); + break; + } + } + } warn.setCreateTime(LocalDateTime.now()); warn.setObjectId(vo.getInfoId()); warn.setVehicleNumber(vo.getVehicleNo()); @@ -189,7 +213,7 @@ if(null == warn.getPicUrl()){ warn.setPicUrl(vo.getPicUrl()); } - if(null == warn.getTreatmentTime()){ + if(0x00 != vo.getResult() && null == warn.getTreatmentTime()){ UPWarnMsgOperationInfoVo upWarnMsgOperationInfoVo = upWarnMsgOperationInfoClient.getUPWarnMsgOperationInfo(warn.getObjectId()).getData(); if(null != upWarnMsgOperationInfoVo){ warn.setTreatmentUser(upWarnMsgOperationInfoVo.getOperator()); -- Gitblit v1.7.1