Commit 6f07c3fa5736743067944c670249bc826ae5c067
1 parent
b5172f84
tijiao
Showing
1 changed file
with
26 additions
and
2 deletions
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/RealTimeMonitorController.java
... | ... | @@ -30,8 +30,10 @@ import com.zteits.clouds.api.apibase.exception.BizException; |
30 | 30 | import com.zteits.clouds.api.dto.clouds.param.RealTimeMonitoringRequest; |
31 | 31 | import com.zteits.clouds.api.dto.park.dto.BerthsDTO; |
32 | 32 | import com.zteits.clouds.api.dto.park.dto.ParkOccupancyRateDTO; |
33 | +import com.zteits.clouds.api.dto.park.dto.ParkingLotDTO; | |
33 | 34 | import com.zteits.clouds.api.dto.park.dto.TpPEqpLogDTO; |
34 | 35 | import com.zteits.clouds.api.dto.park.param.QueryBerthForPageRequest; |
36 | +import com.zteits.clouds.api.dto.park.param.QueryParkingLotByParkRequest; | |
35 | 37 | import com.zteits.clouds.api.dto.sys.SysOpDTO; |
36 | 38 | import com.zteits.clouds.api.dto.sys.SysOrgDTO; |
37 | 39 | import com.zteits.clouds.api.dto.sys.SysRoleDTO; |
... | ... | @@ -42,6 +44,7 @@ import com.zteits.clouds.api.dto.sys.param.SysOrgPageQueryRequest; |
42 | 44 | import com.zteits.clouds.api.dto.sys.param.SysRolePageQueryRequest; |
43 | 45 | import com.zteits.clouds.api.service.park.BerthManageService; |
44 | 46 | import com.zteits.clouds.api.service.park.EqpBerthsService; |
47 | +import com.zteits.clouds.api.service.park.ParkingLotQueryService; | |
45 | 48 | |
46 | 49 | import io.swagger.annotations.Api; |
47 | 50 | import io.swagger.annotations.ApiOperation; |
... | ... | @@ -72,6 +75,8 @@ public class RealTimeMonitorController extends BizController { |
72 | 75 | private EqpBerthsService eqpBerthsService; |
73 | 76 | @Autowired |
74 | 77 | private BerthManageService berthManageService; |
78 | + @Autowired | |
79 | + private ParkingLotQueryService parkingLotQueryService; | |
75 | 80 | |
76 | 81 | |
77 | 82 | /** |
... | ... | @@ -111,7 +116,7 @@ public class RealTimeMonitorController extends BizController { |
111 | 116 | } |
112 | 117 | logger.info("调用分组查询停车场占用率dubbo服务入参:request={}"+JSONObject.toJSONString(request)); |
113 | 118 | BizResult<List<ParkOccupancyRateDTO>> result = eqpBerthsService.queryParkOccupancyRate(request); |
114 | - logger.info("调用分组查询停车场占用率dubbo服务返回信息:request={}"+JSONObject.toJSONString(result)); | |
119 | + logger.info("调用分组查询停车场占用率dubbo服务返回信息:response={}"+JSONObject.toJSONString(result)); | |
115 | 120 | return new BizResultVO<List<ParkOccupancyRateDTO>>(result); |
116 | 121 | } |
117 | 122 | |
... | ... | @@ -151,7 +156,26 @@ public class RealTimeMonitorController extends BizController { |
151 | 156 | throws Exception { |
152 | 157 | logger.info("调用分组查询停车场占用率dubbo服务入参:request={}"+JSONObject.toJSONString(request)); |
153 | 158 | BizResult<List<ParkOccupancyRateDTO>> result = berthManageService.queryParkOccupancyRate(request); |
154 | - logger.info("调用分组查询停车场占用率dubbo服务返回信息:request={}"+JSONObject.toJSONString(result)); | |
159 | + logger.info("调用分组查询停车场占用率dubbo服务返回信息:response={}"+JSONObject.toJSONString(result)); | |
155 | 160 | return new BizResultVO<List<ParkOccupancyRateDTO>>(result); |
156 | 161 | } |
162 | + | |
163 | + /** | |
164 | + * 通过停车场集合查询停车场信息 | |
165 | + * | |
166 | + * @param request | |
167 | + * @return | |
168 | + * @throws Exception | |
169 | + * langlw 2017-9-1 | |
170 | + */ | |
171 | + @ApiOperation("通过停车场集合查询停车场信息") | |
172 | + @PostMapping("/queryParkingLotGeoByPlNos") | |
173 | + public BizResultVO<List<ParkingLotDTO>> queryParkingLotGeoByPlNos( | |
174 | + @RequestBody QueryParkingLotByParkRequest request) | |
175 | + throws Exception { | |
176 | + logger.info("通过停车场集合查询停车场信息dubbo服务入参:request={}"+JSONObject.toJSONString(request)); | |
177 | + BizResult<List<ParkingLotDTO>> result = parkingLotQueryService.queryParkingLotGeoByPlNos(request); | |
178 | + logger.info("通过停车场集合查询停车场信息dubbo服务返回信息:response={}"+JSONObject.toJSONString(result)); | |
179 | + return new BizResultVO<List<ParkingLotDTO>>(result); | |
180 | + } | |
157 | 181 | } | ... | ... |