From 705d6f12222478ab98c1104e2f0c5013fb662994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= <1489339700@qq.com> Date: Tue, 23 Aug 2022 20:09:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 18 ++++++++++++- .../controller/StationResumeController.java | 27 ------------------- .../irs/mapper/StationResumeMapper.java | 2 ++ .../com/sixteam/irs/mapper/UserMapper.java | 2 ++ .../irs/service/Impl/ResumeServiceImpl.java | 3 +++ .../Impl/StationResumeServiceImpl.java | 8 ++++++ .../sixteam/irs/service/ResumeService.java | 2 ++ .../irs/service/StationResumeService.java | 2 ++ src/main/resources/application.yml | 8 +++++- .../irs/mapper/StationResumeMapper.xml | 5 ++++ 10 files changed, 48 insertions(+), 29 deletions(-) delete mode 100644 src/main/java/com/sixteam/irs/controller/StationResumeController.java diff --git a/pom.xml b/pom.xml index 4c7f134..11de96f 100644 --- a/pom.xml +++ b/pom.xml @@ -73,6 +73,17 @@ provided + + org.apache.commons + commons-lang3 + 3.10 + + + + org.projectlombok + lombok + + javax.servlet javax.servlet-api @@ -107,7 +118,12 @@ org.thymeleaf.extras thymeleaf-extras-java8time - + + + io.swagger + swagger-annotations + 1.5.22 + diff --git a/src/main/java/com/sixteam/irs/controller/StationResumeController.java b/src/main/java/com/sixteam/irs/controller/StationResumeController.java deleted file mode 100644 index 2323689..0000000 --- a/src/main/java/com/sixteam/irs/controller/StationResumeController.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.sixteam.irs.controller; - -import com.sixteam.irs.entity.StationResume; -import com.sixteam.irs.service.Impl.StationResumeServiceImpl; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import java.util.List; - -@Controller -@RequestMapping("/stationResume") -public class StationResumeController { - - @Autowired - private StationResumeServiceImpl stationResumeService; - - @RequestMapping("/findAllStationResume") - public void findAllStationResume(){ - List stationResumeList=null; - - stationResumeList=stationResumeService.findAllStationResume(); - - System.out.println(stationResumeList); - - } -} diff --git a/src/main/java/com/sixteam/irs/mapper/StationResumeMapper.java b/src/main/java/com/sixteam/irs/mapper/StationResumeMapper.java index 03ce18a..ed37e1b 100644 --- a/src/main/java/com/sixteam/irs/mapper/StationResumeMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/StationResumeMapper.java @@ -10,4 +10,6 @@ import java.util.List; @Repository public interface StationResumeMapper { List findAllStationResume(); + + int addResume(String srId,String sId,String reId); } diff --git a/src/main/java/com/sixteam/irs/mapper/UserMapper.java b/src/main/java/com/sixteam/irs/mapper/UserMapper.java index 5bd4c04..488ce41 100644 --- a/src/main/java/com/sixteam/irs/mapper/UserMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/UserMapper.java @@ -23,4 +23,6 @@ public interface UserMapper { int updateUser(User user); User loginUser(User user); + + } diff --git a/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java index d097781..8d633fc 100644 --- a/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java +++ b/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java @@ -26,6 +26,7 @@ public class ResumeServiceImpl implements ResumeService { } + @Override public String addResume(Resume resume) { @@ -60,4 +61,6 @@ public class ResumeServiceImpl implements ResumeService { return "fail"; } } + + } diff --git a/src/main/java/com/sixteam/irs/service/Impl/StationResumeServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/StationResumeServiceImpl.java index bde2e99..cd7a977 100644 --- a/src/main/java/com/sixteam/irs/service/Impl/StationResumeServiceImpl.java +++ b/src/main/java/com/sixteam/irs/service/Impl/StationResumeServiceImpl.java @@ -3,6 +3,7 @@ package com.sixteam.irs.service.Impl; import com.sixteam.irs.entity.StationResume; import com.sixteam.irs.mapper.StationResumeMapper; import com.sixteam.irs.service.StationResumeService; +import com.sixteam.irs.utils.UuidUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,4 +20,11 @@ public class StationResumeServiceImpl implements StationResumeService { public List findAllStationResume() { return stationResumeMapper.findAllStationResume(); } + + @Override + public int addResume(String sId, String reId) { + String srId1 = UuidUtils.uuid(); + + return stationResumeMapper.addResume(srId1,sId,reId); + } } diff --git a/src/main/java/com/sixteam/irs/service/ResumeService.java b/src/main/java/com/sixteam/irs/service/ResumeService.java index db24926..f9736eb 100644 --- a/src/main/java/com/sixteam/irs/service/ResumeService.java +++ b/src/main/java/com/sixteam/irs/service/ResumeService.java @@ -15,4 +15,6 @@ public interface ResumeService { String delResume(String reId); String updateResume(Resume resume); + + } diff --git a/src/main/java/com/sixteam/irs/service/StationResumeService.java b/src/main/java/com/sixteam/irs/service/StationResumeService.java index 6d415e6..4b53c1f 100644 --- a/src/main/java/com/sixteam/irs/service/StationResumeService.java +++ b/src/main/java/com/sixteam/irs/service/StationResumeService.java @@ -6,4 +6,6 @@ import java.util.List; public interface StationResumeService { List findAllStationResume(); + + int addResume(String sId,String reId); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b138cd6..167e6e5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,7 +4,7 @@ spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://49.232.158.16:3306/irs?serverTimezone=UTC - username: irsFWQ + username: irsYH password: 666 thymeleaf: @@ -13,6 +13,7 @@ spring: encoding: UTF-8 cache: true + mybatis: configuration: map-underscore-to-camel-case: true @@ -20,4 +21,9 @@ mybatis: mapper-locations: classpath:mapper/*.xml type-aliases-package: com.sixteam.irs.entity +logging: + level: + com: + example: + mapper : debug diff --git a/src/main/resources/com/sixteam/irs/mapper/StationResumeMapper.xml b/src/main/resources/com/sixteam/irs/mapper/StationResumeMapper.xml index 9e6ee73..ce21f46 100644 --- a/src/main/resources/com/sixteam/irs/mapper/StationResumeMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/StationResumeMapper.xml @@ -9,6 +9,11 @@ + + insert into irs_station_resume (sr_id,s_id,re_id,sr_status) + values (#{srId},#{sId},#{reId},'未通过') + + + + + + 看不清换一张 + + + + + + + + diff --git a/src/main/resources/templates/test/test/success.html b/src/main/resources/templates/test/test/success.html new file mode 100644 index 0000000..d4b21c1 --- /dev/null +++ b/src/main/resources/templates/test/test/success.html @@ -0,0 +1,10 @@ + + + + + Title + + +

登录成功

+ + \ No newline at end of file -- Gitee