zhuang преди 1 година
родител
ревизия
1ae8594591

+ 10 - 8
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxApiController.java

@@ -1,11 +1,13 @@
 package com.rongwei.bsserver.controller;
 
 import com.alibaba.fastjson.JSONObject;
+import com.rongwei.bscommon.sys.service.DmTableService;
 import com.rongwei.bscommon.sys.service.ZhcxApiService;
 import com.rongwei.bscommon.sys.utils.HwSmsUtil;
 import com.rongwei.bsentity.vo.ZhcxOutsideInspectionVo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -25,7 +27,7 @@ public class ZhcxApiController {
     @Autowired
     private ZhcxApiService zhcxApiService;
 
-    @RequestMapping("/getOutsideInspectionList")
+    @PostMapping("/getOutsideInspectionList")
     public R getOutsideInspectionList(@RequestBody Map<String,Object> map){
         if(!map.containsKey("projectcode")){
             return R.error("projectcode参数必填");
@@ -34,43 +36,43 @@ public class ZhcxApiController {
         return R.ok(outsideInspectionList);
     }
 
-    @RequestMapping("/sendCode")
+    @PostMapping("/sendCode")
     public R sendCode(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.sendCode(map);
         return r;
     }
 
-    @RequestMapping("/gaiffp")
+    @PostMapping("/gaiffp")
     public R getAccountInfoForForgotPassword(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.getAccountInfoForForgotPassword(map);
         return r;
     }
 
-    @RequestMapping("/repw")
+    @PostMapping("/repw")
     public R resetPassword(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.resetPassword(map);
         return r;
     }
 
-    @RequestMapping("/sendReviewSupervisionMail")
+    @PostMapping("/sendReviewSupervisionMail")
     public R sendReviewSupervisionMail(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.sendReviewSupervisionMail(map);
         return r;
     }
 
-    @RequestMapping("/getCoreInspectionDetailList")
+    @PostMapping("/getCoreInspectionDetailList")
     public R getCoreInspectionDetailList(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.getCoreInspectionDetailList(map);
         return r;
     }
 
-    @RequestMapping("/forgetPwdSendSmsCode")
+    @PostMapping("/forgetPwdSendSmsCode")
     public R forgetPwdSendSmsCode(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.forgetPwdSendSmsCode(map);
         return r;
     }
 
-    @RequestMapping("/forgetResetPwd")
+    @PostMapping("/forgetResetPwd")
     public R forgetResetPwd(@RequestBody Map<String,Object> map){
         R r = zhcxApiService.forgetResetPwd(map);
         return r;

+ 1 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxInsideInspectionController.java

@@ -121,7 +121,7 @@ public class ZhcxInsideInspectionController {
      * @param exportReq
      * @param response
      */
-    @RequestMapping("/downloadFile")
+    @PostMapping("/downloadFile")
     public void downloadFile(@RequestBody ZhcxInsideExportRequest exportReq, HttpServletResponse response) {
         int i = service.downloadFile(exportReq, response);
         if(i == 0){

+ 5 - 4
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpProjectNodesController.java

@@ -8,6 +8,7 @@ import com.rongwei.rwcommon.base.R;
 import com.rongwei.rwcommoncomponent.excel.vo.FormData;
 import com.rongwei.rwcommonentity.commonservers.domain.SysFileItemDo;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -31,19 +32,19 @@ public class ZhcxItpProjectNodesController {
     @Autowired
     private ZhcxItpProjectNodesService zhcxItpProjectNodesService;
 
-    @RequestMapping("/projectNodeQuote")
+    @PostMapping("/projectNodeQuote")
     public R projectNodeQuote(@RequestBody Map<String,Object> map){
         zhcxItpProjectNodesService.projectNodeQuote(map);
         return R.ok();
     }
 
-    @RequestMapping("/projectRefProject")
+    @PostMapping("/projectRefProject")
     public R projectRefProject(@RequestBody Map<String,Object> map){
         zhcxItpProjectNodesService.projectRefProject(map);
         return R.ok();
     }
 
-    @RequestMapping("/copyProjectNode")
+    @PostMapping("/copyProjectNode")
     public R copyProjectNode(@RequestBody CopyNodeVo copyNodeVo){
         List<Map<String, Object>> maps = zhcxItpProjectNodesService.copyProjectNode(copyNodeVo);
         return R.ok(maps);
@@ -55,7 +56,7 @@ public class ZhcxItpProjectNodesController {
      * @param excelData
      * @param response
      */
-    @RequestMapping("/exportByTemplate")
+    @PostMapping("/exportByTemplate")
     public void exportProjectInspectionPoint(@RequestBody OutsideInspectionProjectPointDto excelData, HttpServletResponse response) {
         zhcxItpProjectNodesService.exportProjectInspectionPoint(excelData, response);
     }

+ 4 - 3
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpTemplateController.java

@@ -7,6 +7,7 @@ import com.rongwei.bsentity.vo.CopyAddTemplateVo;
 import com.rongwei.bsentity.vo.ZhcxItpTemplateNodeSyncProjectVo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -31,13 +32,13 @@ public class ZhcxItpTemplateController {
     @Autowired
     private ZhcxItpTemplateNodesService zhcxItpTemplateNodesService;
 
-    @RequestMapping("/copyAddTemplateNodes")
+    @PostMapping("/copyAddTemplateNodes")
     public R copyAddTemplateNodes(@RequestBody CopyAddTemplateVo copyAddTemplate){
         zhcxItpTemplateService.copyAddTemplateNodes(copyAddTemplate);
         return R.ok();
     }
 
-    @RequestMapping("/copyNodesSave")
+    @PostMapping("/copyNodesSave")
     public R copyNodesSave(@RequestBody CopyAddTemplateVo copyAddTemplate){
         List<Map<String, Object>> maps = zhcxItpTemplateService.copyNodesSave(copyAddTemplate);
         return R.ok(maps);
@@ -48,7 +49,7 @@ public class ZhcxItpTemplateController {
      * @param zhcxItpTemplateNodeSyncProjectVo
      * @return
      */
-    @RequestMapping("/itpTemplateAddNodeSyncProjects")
+    @PostMapping("/itpTemplateAddNodeSyncProjects")
     public R itpTemplateAddNodeSyncProjects(@RequestBody ZhcxItpTemplateNodeSyncProjectVo zhcxItpTemplateNodeSyncProjectVo){
         zhcxItpTemplateNodesService.itpTemplateAddNodeSyncProjects(zhcxItpTemplateNodeSyncProjectVo);
         return R.ok();

+ 2 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpTemplateNodesController.java

@@ -5,6 +5,7 @@ import com.rongwei.bscommon.sys.service.ZhcxItpTemplateNodesService;
 import com.rongwei.bsentity.vo.CopyNodeVo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -27,7 +28,7 @@ public class ZhcxItpTemplateNodesController {
     @Autowired
     private ZhcxItpTemplateNodesService zhcxItpTemplateNodesService;
 
-    @RequestMapping("/copyItpTemplateNode")
+    @PostMapping("/copyItpTemplateNode")
     public R copyItpTemplateNode(@RequestBody CopyNodeVo copyNodeVo){
         List<Map<String, Object>> maps = zhcxItpTemplateNodesService.copyItpTemplateNode(copyNodeVo);
         return R.ok(maps);

+ 3 - 2
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxOperOutsideInspectionController.java

@@ -9,6 +9,7 @@ import com.rongwei.rwcommon.base.R;
 import com.rongwei.rwcommon.base.exception.CustomException;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -27,7 +28,7 @@ public class ZhcxOperOutsideInspectionController {
     @Autowired
     private LockUtils lockUtils;
 
-    @RequestMapping("/OperInspectionStatus")
+    @PostMapping("/OperInspectionStatus")
     public R OperInspectionStatus(@RequestBody List<OperOutsideInspectionVo> vo) {
         try {
             for(OperOutsideInspectionVo inspectionVo : vo){
@@ -47,7 +48,7 @@ public class ZhcxOperOutsideInspectionController {
         }
     }
 
-    @RequestMapping("/downloadFile")
+    @PostMapping("/downloadFile")
     public void downloadFile(@RequestBody ZhcxOutsideExportVo zhcxOutsideExportVo, HttpServletResponse response) throws FileNotFoundException {
         int i = inspectionService.downloadFile(zhcxOutsideExportVo, response);
         if(i == 0){

+ 2 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxOutSourceController.java

@@ -4,6 +4,7 @@ import com.rongwei.bscommon.sys.service.OutSourceService;
 import com.rongwei.bsentity.vo.SubcontractorUserVo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -25,7 +26,7 @@ public class ZhcxOutSourceController {
      * @param ids
      * @return
      */
-    @RequestMapping("/batchCopy")
+    @PostMapping("/batchCopy")
     public R batchCopy(@RequestBody List<String> ids){
         return outSourceService.batchCopy(ids);
     }

+ 1 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxOutsideInspectionItpController.java

@@ -33,7 +33,7 @@ public class ZhcxOutsideInspectionItpController {
     @Autowired
     private ZhcxReprotSameDayRealTimeInspectionStatisticsService reprotSameDayRealTimeInspectionStatisticsService;
 
-    @RequestMapping("/splitOrder")
+    @PostMapping("/splitOrder")
     public R copyNodesSave(@RequestBody Map<String, String> map){
         service.splitOrder(map.get("id"));
         return R.ok();

+ 2 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxQualityAwardController.java

@@ -5,6 +5,7 @@ import com.rongwei.bscommon.sys.service.ZhcxQualityAwardService;
 import com.rongwei.bsentity.domain.ZhcxQualityAwardBaseInfoDo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -26,7 +27,7 @@ public class ZhcxQualityAwardController {
      * @param id
      * @return
      */
-    @RequestMapping("/copyData")
+    @PostMapping("/copyData")
     public R copyData(@RequestBody ZhcxQualityAwardBaseInfoDo zcxQualityAwardBaseInfoDo){
         zhcxQualityAwardService.copyData(zcxQualityAwardBaseInfoDo);
         return R.ok();

+ 4 - 3
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxRegisterController.java

@@ -5,6 +5,7 @@ import com.rongwei.bscommon.sys.service.ZhcxRegisterService;
 import com.rongwei.bsentity.domain.ZhcxSupervisionCustomUserManageDo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -22,19 +23,19 @@ public class ZhcxRegisterController {
     @Autowired
     private ZhcxRegisterService zhcxRegisterService;
 
-    @RequestMapping("/supervisionRegister")
+    @PostMapping("/supervisionRegister")
     public R supervisionRegister(@RequestBody JSONObject jsonObject){
         R r = zhcxRegisterService.supervisionRegister(jsonObject);
         return r;
     }
 
-    @RequestMapping("/sendCode")
+    @PostMapping("/sendCode")
     public R sendCode(@RequestBody Map<String,Object> map){
         R r = zhcxRegisterService.sendCode(map);
         return r;
     }
 
-    @RequestMapping("/checkSupervisionUser")
+    @PostMapping("/checkSupervisionUser")
     public R checkSupervisionUser(@RequestBody List<ZhcxSupervisionCustomUserManageDo> list){
         R r = zhcxRegisterService.checkSupervisionUser(list);
         return r;

+ 2 - 1
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxSubcontractorUserController.java

@@ -4,6 +4,7 @@ import com.rongwei.bscommon.sys.service.ZhcxSubcontractorUserService;
 import com.rongwei.bsentity.vo.SubcontractorUserVo;
 import com.rongwei.rwcommon.base.R;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -21,7 +22,7 @@ public class ZhcxSubcontractorUserController {
     @Autowired
     private ZhcxSubcontractorUserService zhcxSubcontractorUserService;
 
-    @RequestMapping("/batchSaveList")
+    @PostMapping("/batchSaveList")
     public R batchSaveList(@RequestBody SubcontractorUserVo subcontractorUserVo){
         zhcxSubcontractorUserService.batchSaveList(subcontractorUserVo);
         return R.ok();