Commit 6bf414d7c0af3007553e280cfea0b37a8affc671

Authored by zhaowg3
1 parent 72b0fdac

增加针对水岸天街左右区分的空闲车位更新

src/main/java/com/zteits/irain/portal/web/irain/UpdateFreeBerthController.java
@@ -90,16 +90,16 @@ public class UpdateFreeBerthController { @@ -90,16 +90,16 @@ public class UpdateFreeBerthController {
90 90
91 @ApiOperation("特殊处理-针对水岸天街左右更新空闲车位总数") 91 @ApiOperation("特殊处理-针对水岸天街左右更新空闲车位总数")
92 @PostMapping("updateFreeBerthForSpecial") 92 @PostMapping("updateFreeBerthForSpecial")
93 - public BizResultVO<Boolean> updateFreeBerthForSpecial(@RequestParam Map<String,Integer> freeBerthsMap){ 93 + public BizResultVO<Boolean> updateFreeBerthForSpecial(@RequestBody Map<String,Object> freeBerthsMap){
94 //通过上报停车场编号查询对应的自己内部停车场编号 94 //通过上报停车场编号查询对应的自己内部停车场编号
95 logger.info("特殊处理-针对水岸天街左右更新空闲车位总数请求参数:"+JSONObject.toJSONString(freeBerthsMap)); 95 logger.info("特殊处理-针对水岸天街左右更新空闲车位总数请求参数:"+JSONObject.toJSONString(freeBerthsMap));
96 if(freeBerthsMap==null||freeBerthsMap.isEmpty()){ 96 if(freeBerthsMap==null||freeBerthsMap.isEmpty()){
97 return new BizResultVO<Boolean>().setData(true); 97 return new BizResultVO<Boolean>().setData(true);
98 } 98 }
99 - for (Entry<String, Integer> entry : freeBerthsMap.entrySet()) { 99 + for (Entry<String, Object> entry : freeBerthsMap.entrySet()) {
100 //更新空闲车位数 100 //更新空闲车位数
101 UpdateFreeBerthRequest updaterequest=new UpdateFreeBerthRequest(); 101 UpdateFreeBerthRequest updaterequest=new UpdateFreeBerthRequest();
102 - updaterequest.setFreeBerths(entry.getValue()); 102 + updaterequest.setFreeBerths((Integer)entry.getValue());
103 updaterequest.setPlNo(entry.getKey()); 103 updaterequest.setPlNo(entry.getKey());
104 updaterequest.setFromType(2); 104 updaterequest.setFromType(2);
105 updaterequest.setSysCode(sysCode); 105 updaterequest.setSysCode(sysCode);