From 08bb69527c0442bd8e301818c01f26655832038c Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期一, 30 八月 2021 15:32:23 +0800
Subject: [PATCH] 城管端 预约登记修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java
index 12a8586..2b6b7ea 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwPatrolRecordServiceImpl.java
@@ -95,6 +95,9 @@
         comSwPatrolRecordDO.setId(patrolRecordId);
         if(StringUtils.isEmpty(comSwPatrolRecordAddDTO.getPatrolTime())){
             comSwPatrolRecordDO.setPatrolTime(new Date());
+        }else {
+            comSwPatrolRecordDO.setPatrolTime(
+                    DateUtils.stringToDate(comSwPatrolRecordAddDTO.getPatrolTime(), DateUtils.yyyyMMdd_format));
         }
 //        comSwPatrolRecordDO.setPatrolTime(new Date());
         comSwPatrolRecordDO.setSuccessionTime(

--
Gitblit v1.7.1