Commit d5c19bde97e0b67fbb722b366359d1af3dbf5f00
Merge branch 'branch_0808' of http://192.168.1.195:9998/ZTEITS-Developers/zteits…
…-bcp-portal.git into branch_0808
Showing
5 changed files
with
13 additions
and
7 deletions
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/areamanage/AreaManageController.java
| @@ -5,6 +5,7 @@ import java.util.List; | @@ -5,6 +5,7 @@ import java.util.List; | ||
| 5 | import javax.servlet.http.HttpSession; | 5 | import javax.servlet.http.HttpSession; |
| 6 | 6 | ||
| 7 | import com.clouds.common.utils.ResultUtils; | 7 | import com.clouds.common.utils.ResultUtils; |
| 8 | +import com.clouds.common.web.SessionCommUtil; | ||
| 8 | import com.clouds.common.web.vo.BizResultVO; | 9 | import com.clouds.common.web.vo.BizResultVO; |
| 9 | import com.clouds.common.web.vo.EasyUIDataGridVO; | 10 | import com.clouds.common.web.vo.EasyUIDataGridVO; |
| 10 | import com.zteits.clouds.api.apibase.bean.BaseRequest; | 11 | import com.zteits.clouds.api.apibase.bean.BaseRequest; |
| @@ -18,6 +19,7 @@ import com.zteits.clouds.api.service.park.ParkingLotService; | @@ -18,6 +19,7 @@ import com.zteits.clouds.api.service.park.ParkingLotService; | ||
| 18 | import com.zteits.clouds.api.service.sys.TbAreaService; | 19 | import com.zteits.clouds.api.service.sys.TbAreaService; |
| 19 | import io.swagger.annotations.Api; | 20 | import io.swagger.annotations.Api; |
| 20 | import io.swagger.annotations.ApiOperation; | 21 | import io.swagger.annotations.ApiOperation; |
| 22 | +import jdk.nashorn.internal.objects.annotations.Property; | ||
| 21 | import org.slf4j.Logger; | 23 | import org.slf4j.Logger; |
| 22 | import org.slf4j.LoggerFactory; | 24 | import org.slf4j.LoggerFactory; |
| 23 | import org.springframework.beans.factory.annotation.Autowired; | 25 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -52,6 +54,9 @@ public class AreaManageController { | @@ -52,6 +54,9 @@ public class AreaManageController { | ||
| 52 | @Autowired | 54 | @Autowired |
| 53 | private ParkingLotService parkingLotService; | 55 | private ParkingLotService parkingLotService; |
| 54 | 56 | ||
| 57 | + @Autowired | ||
| 58 | + private SessionCommUtil sessionCommUtil; | ||
| 59 | + | ||
| 55 | @ApiOperation("根据归属组织ID查询区域与区块树") | 60 | @ApiOperation("根据归属组织ID查询区域与区块树") |
| 56 | @PostMapping("/queryAreaAndBlockTree") | 61 | @PostMapping("/queryAreaAndBlockTree") |
| 57 | public BizResultVO<EasyUIDataGridVO<AreaTreeDTO>> queryAreaAndBlockTree(@RequestBody BaseRequest baseRequest) { | 62 | public BizResultVO<EasyUIDataGridVO<AreaTreeDTO>> queryAreaAndBlockTree(@RequestBody BaseRequest baseRequest) { |
| @@ -60,8 +65,7 @@ public class AreaManageController { | @@ -60,8 +65,7 @@ public class AreaManageController { | ||
| 60 | EasyUIDataGridVO<AreaTreeDTO> easyUIDataGridVO = new EasyUIDataGridVO<>(); | 65 | EasyUIDataGridVO<AreaTreeDTO> easyUIDataGridVO = new EasyUIDataGridVO<>(); |
| 61 | AreaBlockByOrgIdQueryRequest request = new AreaBlockByOrgIdQueryRequest(); | 66 | AreaBlockByOrgIdQueryRequest request = new AreaBlockByOrgIdQueryRequest(); |
| 62 | request.setSysCode(baseRequest.getSysCode()); | 67 | request.setSysCode(baseRequest.getSysCode()); |
| 63 | - // TODO 此处orgId 从当前登录操作人中取,现在先不限制 | ||
| 64 | - request.setOrgId(1L); | 68 | + request.setOrgId(sessionCommUtil.getUserInfo().getOrgId()); |
| 65 | BizResult<List<AreaTreeDTO>> result = tbAreaService.queryAreaBlockByOrgId(request); | 69 | BizResult<List<AreaTreeDTO>> result = tbAreaService.queryAreaBlockByOrgId(request); |
| 66 | if (ResultUtils.isSuccess(result)) { | 70 | if (ResultUtils.isSuccess(result)) { |
| 67 | easyUIDataGridVO.setRows(result.getData()); | 71 | easyUIDataGridVO.setRows(result.getData()); |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/BerthManageController.java
| @@ -135,6 +135,8 @@ public class BerthManageController extends BizController { | @@ -135,6 +135,8 @@ public class BerthManageController extends BizController { | ||
| 135 | BerthManageRequest request = new BerthManageRequest(); | 135 | BerthManageRequest request = new BerthManageRequest(); |
| 136 | request.setSysCode(sysCode); | 136 | request.setSysCode(sysCode); |
| 137 | request.setPlNos(plNos); | 137 | request.setPlNos(plNos); |
| 138 | + request.setParkTypes(parkTypes); | ||
| 139 | + request.setParkAreaCodes(parkAreaCodes); | ||
| 138 | request.setBaseRequest(new BaseInfo(1, 1000)); | 140 | request.setBaseRequest(new BaseInfo(1, 1000)); |
| 139 | 141 | ||
| 140 | 142 |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/MonthBillManagementController.java
| @@ -255,7 +255,7 @@ public class MonthBillManagementController extends BizController { | @@ -255,7 +255,7 @@ public class MonthBillManagementController extends BizController { | ||
| 255 | throws Exception { | 255 | throws Exception { |
| 256 | // 2.调用接口查询当前登录人管辖的停车场名称 | 256 | // 2.调用接口查询当前登录人管辖的停车场名称 |
| 257 | UserInfo userInfo = sessionCommUtil.getUserInfo(); | 257 | UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 258 | - List<String> plNos = userInfo.getOrgIds(); | 258 | + List<String> plNos = userInfo.getPlNos(); |
| 259 | // UserInfo userInfo = sessionCommUtil.getUserInfo(); | 259 | // UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 260 | // List<String> plNos = new ArrayList<>(); | 260 | // List<String> plNos = new ArrayList<>(); |
| 261 | // if (userInfo != null) { | 261 | // if (userInfo != null) { |
| @@ -291,7 +291,7 @@ public class MonthBillManagementController extends BizController { | @@ -291,7 +291,7 @@ public class MonthBillManagementController extends BizController { | ||
| 291 | throws Exception { | 291 | throws Exception { |
| 292 | // 2.调用接口查询当前登录人管辖的停车场名称 | 292 | // 2.调用接口查询当前登录人管辖的停车场名称 |
| 293 | UserInfo userInfo = sessionCommUtil.getUserInfo(); | 293 | UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 294 | - List<String> plNos = userInfo.getOrgIds(); | 294 | + List<String> plNos = userInfo.getPlNos(); |
| 295 | // List<String> plNos = new ArrayList<>(); | 295 | // List<String> plNos = new ArrayList<>(); |
| 296 | // if (userInfo != null) { | 296 | // if (userInfo != null) { |
| 297 | // TdCompanyParkQueryRequest tdCompanyParkQueryRequest = new TdCompanyParkQueryRequest(); | 297 | // TdCompanyParkQueryRequest tdCompanyParkQueryRequest = new TdCompanyParkQueryRequest(); |
| @@ -441,7 +441,7 @@ public class MonthBillManagementController extends BizController { | @@ -441,7 +441,7 @@ public class MonthBillManagementController extends BizController { | ||
| 441 | billQueryRequest.setBaseRequest(new BaseInfo(1, 0)); | 441 | billQueryRequest.setBaseRequest(new BaseInfo(1, 0)); |
| 442 | // 2.调用接口查询当前登录人管辖的停车场名称 | 442 | // 2.调用接口查询当前登录人管辖的停车场名称 |
| 443 | UserInfo userInfo = sessionCommUtil.getUserInfo(); | 443 | UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 444 | - List<String> plNos = userInfo.getOrgIds(); | 444 | + List<String> plNos = userInfo.getPlNos(); |
| 445 | // // 2.调用接口查询当前登录人管辖的停车场名称 | 445 | // // 2.调用接口查询当前登录人管辖的停车场名称 |
| 446 | // UserInfo userInfo = sessionCommUtil.getUserInfo(); | 446 | // UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 447 | // List<String> plNos = new ArrayList<>(); | 447 | // List<String> plNos = new ArrayList<>(); |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/ParkLotStatisticController.java
| @@ -118,7 +118,7 @@ public class ParkLotStatisticController { | @@ -118,7 +118,7 @@ public class ParkLotStatisticController { | ||
| 118 | UserInfo userInfo = sessionCommUtil.getUserInfo(); | 118 | UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 119 | List<String> plNos=Lists.newArrayList(); | 119 | List<String> plNos=Lists.newArrayList(); |
| 120 | if(null != userInfo){ | 120 | if(null != userInfo){ |
| 121 | - plNos= userInfo.getOrgIds(); | 121 | + plNos= userInfo.getPlNos(); |
| 122 | } | 122 | } |
| 123 | // if(userInfo!=null){ | 123 | // if(userInfo!=null){ |
| 124 | // TdCompanyParkQueryRequest tdCompanyParkQueryRequest = new TdCompanyParkQueryRequest(); | 124 | // TdCompanyParkQueryRequest tdCompanyParkQueryRequest = new TdCompanyParkQueryRequest(); |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/parklotmanage/ParkLotManageController.java
| @@ -126,7 +126,7 @@ public class ParkLotManageController extends BizController{ | @@ -126,7 +126,7 @@ public class ParkLotManageController extends BizController{ | ||
| 126 | UserInfo userInfo = sessionCommUtil.getUserInfo(); | 126 | UserInfo userInfo = sessionCommUtil.getUserInfo(); |
| 127 | List<String> plNos =new ArrayList<>(); | 127 | List<String> plNos =new ArrayList<>(); |
| 128 | if(null !=userInfo){ | 128 | if(null !=userInfo){ |
| 129 | - plNos = userInfo.getOrgIds(); | 129 | + plNos = userInfo.getPlNos(); |
| 130 | } | 130 | } |
| 131 | return plNos; | 131 | return plNos; |
| 132 | } | 132 | } |