From 128d76344bb647c8df454f89af63e9a8c0187057 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期三, 18 十月 2023 19:03:27 +0800
Subject: [PATCH] update

---
 cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java
index 58c8bb9..664a1ae 100644
--- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TCompetitionController.java
@@ -19,6 +19,7 @@
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
 import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 
@@ -190,11 +191,11 @@
             }
 
 
-            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-            SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
-            competition.setStartTime(format1.parse(competition.getSTime()));
-            competition.setEndTime(format1.parse(competition.getETime()));
-            competition.setRegisterEndTime(format.parse(competition.getREndTime()));
+//            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+//            SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
+//            competition.setStartTime(format1.parse(competition.getSTime()));
+//            competition.setEndTime(format1.parse(competition.getETime()));
+//            competition.setRegisterEndTime(format.parse(competition.getREndTime()));
             competitionClient.add(competition);
             return new SuccessTip<>();
         }catch (Exception e){

--
Gitblit v1.7.1