From 57a99060441cd4dbf33f78ce0a59954a13bc34ea Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 07 六月 2023 20:15:20 +0800
Subject: [PATCH] 代理商修改

---
 management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java
index eeb4c9d..105d4af 100644
--- a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java
+++ b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TDriverController.java
@@ -31,6 +31,7 @@
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.format.annotation.DateTimeFormat;
 import org.springframework.stereotype.Controller;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.ui.Model;
@@ -48,6 +49,7 @@
 import java.io.OutputStream;
 import java.math.BigDecimal;
 import java.text.DateFormat;
+import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.time.LocalDate;
 import java.time.Period;
@@ -129,11 +131,16 @@
      * 跳转到修改
      */
     @RequestMapping("/tDriver_update")
-    public String tDriverUpdate( Integer tDriverId, Model model) {
+    public String tDriverUpdate( Integer tDriverId, Model model) throws ParseException {
         TDriver tDriver = tDriverService.selectById(tDriverId);
         TDriverResp tDriverResp = new TDriverResp();
         BeanUtils.copyProperties(tDriver,tDriverResp);
 
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
+        String format1 = format.format(tDriverResp.getFirstCertificateTime());
+        tDriverResp.setFirstCertificateTimeStr(format1);
+//        tDriverResp.setFirstCertificateTime(format.parse(format1));
+
         // 查询邀请人
         TDriver tDriver1 = tDriverService.selectById(tDriver.getInviterId());
         if(Objects.nonNull(tDriver1)){

--
Gitblit v1.7.1