Commit dcc4b297dde1c93b3bd38919b8cbf18a10d30be4
1 parent
073f81af
berthmanagecontroller
Showing
1 changed file
with
1 additions
and
12 deletions
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/BerthManageController.java renamed to src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/berthmanage/BerthManageController.java
| 1 | -package com.zteits.irain.portal.web.parkinglotcloudplatform.datastatistic; | |
| 1 | +package com.zteits.irain.portal.web.parkinglotcloudplatform.berthmanage; | |
| 2 | 2 | |
| 3 | 3 | import java.text.SimpleDateFormat; |
| 4 | 4 | import java.util.ArrayList; |
| ... | ... | @@ -9,10 +9,7 @@ import javax.servlet.http.HttpServletRequest; |
| 9 | 9 | import javax.servlet.http.HttpServletResponse; |
| 10 | 10 | |
| 11 | 11 | import org.apache.poi.xssf.usermodel.XSSFSheet; |
| 12 | -import org.slf4j.Logger; | |
| 13 | -import org.slf4j.LoggerFactory; | |
| 14 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | -import org.springframework.beans.factory.annotation.Value; | |
| 16 | 13 | import org.springframework.stereotype.Controller; |
| 17 | 14 | import org.springframework.web.bind.annotation.GetMapping; |
| 18 | 15 | import org.springframework.web.bind.annotation.PostMapping; |
| ... | ... | @@ -58,9 +55,6 @@ import io.swagger.annotations.ApiOperation; |
| 58 | 55 | @Controller |
| 59 | 56 | @RequestMapping("/berth") |
| 60 | 57 | public class BerthManageController extends BizController { |
| 61 | - private static final Logger logger = LoggerFactory.getLogger(BerthManageController.class); | |
| 62 | - @Value("${project.syscode}") | |
| 63 | - private String sysCode; | |
| 64 | 58 | @Autowired |
| 65 | 59 | private BerthManageService berthManageService; |
| 66 | 60 | |
| ... | ... | @@ -77,7 +71,6 @@ public class BerthManageController extends BizController { |
| 77 | 71 | public BizResultVO<EasyUIDataGridVO<BerthsDTO>> berthInfoList(@RequestBody BerthManageRequest requestObject) |
| 78 | 72 | throws InstantiationException, IllegalAccessException { |
| 79 | 73 | |
| 80 | - requestObject.setSysCode(sysCode); | |
| 81 | 74 | BizResult<PageBean<BerthsDTO>> respondObject = berthManageService.queryBerthByCondition(requestObject); |
| 82 | 75 | if(!(respondObject.isSuccess())){ |
| 83 | 76 | throw new BizException(respondObject.getErrCode(),respondObject.getErrMsg()); |
| ... | ... | @@ -92,7 +85,6 @@ public class BerthManageController extends BizController { |
| 92 | 85 | @PostMapping("updateBerthInfo") |
| 93 | 86 | @ResponseBody |
| 94 | 87 | public BizResultVO<Boolean> updateBerthInfo(@RequestBody BerthManageRequest requestObject) { |
| 95 | - requestObject.setSysCode(sysCode); | |
| 96 | 88 | BizResult<Boolean> respondObject = berthManageService.updateBerthById(requestObject); |
| 97 | 89 | return new BizResultVO<Boolean>(respondObject); |
| 98 | 90 | } |
| ... | ... | @@ -105,7 +97,6 @@ public class BerthManageController extends BizController { |
| 105 | 97 | @PostMapping("deleteBerths") |
| 106 | 98 | @ResponseBody |
| 107 | 99 | public BizResultVO<Boolean> deleteBerths(@RequestBody BerthManageRequest requestObject) { |
| 108 | - requestObject.setSysCode(sysCode); | |
| 109 | 100 | BizResult<Boolean> respondObject = berthManageService.batDeleteBerths(requestObject); |
| 110 | 101 | return new BizResultVO<Boolean>(respondObject); |
| 111 | 102 | } |
| ... | ... | @@ -119,7 +110,6 @@ public class BerthManageController extends BizController { |
| 119 | 110 | @PostMapping("saveBerthInfo") |
| 120 | 111 | @ResponseBody |
| 121 | 112 | public BizResultVO<Boolean> saveBerthInfo(@RequestBody BerthManageRequest requestObject) { |
| 122 | - requestObject.setSysCode(sysCode); | |
| 123 | 113 | BizResult<Boolean> respondObject = berthManageService.saveBerthInfo(requestObject); |
| 124 | 114 | return new BizResultVO<Boolean>(respondObject); |
| 125 | 115 | } |
| ... | ... | @@ -129,7 +119,6 @@ public class BerthManageController extends BizController { |
| 129 | 119 | public void exportBerthInfoExcel(@RequestParam List<String> plNos,@RequestParam List<String> parkTypes, |
| 130 | 120 | @RequestParam List<String> parkAreaCodes, HttpServletRequest requests, HttpServletResponse response) { |
| 131 | 121 | BerthManageRequest request = new BerthManageRequest(); |
| 132 | - request.setSysCode(sysCode); | |
| 133 | 122 | request.setPlNos(plNos); |
| 134 | 123 | request.setParkTypes(parkTypes); |
| 135 | 124 | request.setParkAreaCodes(parkAreaCodes); | ... | ... |