From 704e7207d74b6477c5f472c5aba92d484ab17f98 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 29 十一月 2023 17:07:11 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_server

---
 ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java         |   16 +++++++++++++++-
 ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java |   10 ++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java
index af1e87f..6a3c479 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java
@@ -230,6 +230,13 @@
     @PostMapping("/addition_violation")
     @LogSave(operationType = "浜嬮」澶勭疆绠$悊", contain = "鏂板杩濊妗堜欢")
     public CommonResult addViolationCase(@RequestBody @Validated ViolationParam violationParam) {
+        log.info("---------------->鍙傛暟,鎶ヨ鏃堕棿{},闄愭椂{},瀵硅薄{}", violationParam.getAlarmTime(), violationParam.getLimitTime(), violationParam);
+        if (violationParam.getAlarmTime() != null) {
+            violationParam.setAlarmTime(violationParam.getAlarmTime().replace("/", "-"));
+        }
+        if (violationParam.getLimitTime() != null) {
+            violationParam.setLimitTime(violationParam.getLimitTime().replace("/", "-"));
+        }
         Integer violation = 1;
         Integer resource = 2;
         BaseCase baseCase = new BaseCase();
@@ -281,6 +288,13 @@
     @PostMapping("/addition_illegal_building")
     @LogSave(operationType = "浜嬮」澶勭疆绠$悊", contain = "鏂板杩濆缓妗堜欢")
     public CommonResult addIllegalBuildingCase(@RequestBody @Validated IllegalBuildingParam illegalBuildingParam) {
+        log.info("---------------->鍙傛暟,鎶ヨ鏃堕棿{},闄愭椂{},瀵硅薄{}", illegalBuildingParam.getAlarmTime(), illegalBuildingParam.getLimitTime(), illegalBuildingParam);
+        if (illegalBuildingParam.getAlarmTime() != null) {
+            illegalBuildingParam.setAlarmTime(illegalBuildingParam.getAlarmTime().replace("/", "-"));
+        }
+        if (illegalBuildingParam.getLimitTime() != null) {
+            illegalBuildingParam.setLimitTime(illegalBuildingParam.getLimitTime().replace("/", "-"));
+        }
         Integer illegalBuilding = 2;
         Integer resource = 2;
         BaseCase baseCase = new BaseCase();
@@ -314,7 +328,7 @@
                 ImageResources imageResources = new ImageResources();
                 imageResources.setType("01");
                 imageResources.setBelongToId(baseCase.getId());
-                imageResources.setUrl(illegalBuildingParam.getImageUrls().get(i));
+                imageResources.setUrl(illegalBuildingParam.getImageUrls().toString());
                 imageResources.setCreateTime(LocalDateTime.now());
                 imageResources.setCreateUser(user.getUserId());
                 iImageResourcesService.save(imageResources);
diff --git a/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java
index a90ffdd..6dccd8e 100644
--- a/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java
+++ b/ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java
@@ -21,6 +21,7 @@
 import com.ycl.service.caseHandler.*;
 import com.ycl.service.resources.IImageResourcesService;
 import com.ycl.vo.MyBacklogVO;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -43,6 +44,7 @@
  * @since 2022-09-24
  */
 @Service
+@Slf4j
 public class DisposeRecordServiceImpl extends ServiceImpl<DisposeRecordMapper, DisposeRecord> implements IDisposeRecordService {
 
     @Resource
@@ -101,6 +103,14 @@
     @Override
     @Transactional(rollbackFor = Exception.class)
     public Boolean saveOrUpdateUpload(UploadDisposingResultParam uploadDisposingResultParam) {
+        log.info("鍙傛暟------------------>{}",uploadDisposingResultParam);
+        if (uploadDisposingResultParam.getArrivalTime() != null) {
+            uploadDisposingResultParam.setArrivalTime(uploadDisposingResultParam.getArrivalTime().replace("/", "-"));
+        }
+        if (uploadDisposingResultParam.getInvestigationTime() != null) {
+            uploadDisposingResultParam.setInvestigationTime(uploadDisposingResultParam.getInvestigationTime().replace("/", "-"));
+        }
+
         AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
         List<ArrivalSituation> list = iArrivalSituationService.list(new LambdaQueryWrapper<ArrivalSituation>().eq(ArrivalSituation::getBaseCaseId, uploadDisposingResultParam.getCaseId()));
         if (!list.isEmpty()) {

--
Gitblit v1.8.0