| | |
| | | |
| | | import com.ld.igds.constant.RespCodeEnum; |
| | | import com.ld.igds.data.PageResponse; |
| | | import com.ld.igds.inout.dto.InoutApiData; |
| | | import com.ld.igds.inout.dto.ApiInoutData; |
| | | import com.ld.igds.inout.dto.InoutCameraDto; |
| | | import com.ld.igds.inout.dto.InoutSnapImgDto; |
| | | import com.ld.igds.inout.manager.InoutDeviceManager; |
| | |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/flush-lpr") |
| | | public PageResponse<InoutApiData> flushPlate(@RequestBody InoutApiData param) { |
| | | public PageResponse<ApiInoutData> flushPlate(@RequestBody ApiInoutData param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | param.setErrorMsg("当前车牌识别未配置通讯协议,无法执行"); |
| | |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/ic-card-num") |
| | | public PageResponse<InoutApiData> getIcCardNum(@RequestBody InoutApiData param) { |
| | | public PageResponse<ApiInoutData> getIcCardNum(@RequestBody ApiInoutData param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | param.setErrorMsg("当前智慧卡未配置通讯协议,无法执行"); |
| | |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), param.getErrorMsg()); |
| | | } |
| | | |
| | | /** |
| | | * 重新连接系统-车牌识别 |
| | | * |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/reset-lpr") |
| | | public PageResponse<String> resetLpr(@RequestBody InoutApiData param) { |
| | | |
| | | |
| | | String result = "执行完成"; |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | result = "当前车牌识别未配置通讯协议,无法执行"; |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), result); |
| | | } |
| | | |
| | | if (null == param.getIp()) { |
| | | result = "出入库配置中没有配置如入登记的车牌识别"; |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), result); |
| | | } |
| | | |
| | | |
| | | result = inoutDeviceManager.reConnectLpr(param); |
| | | |
| | | if (null == result) { |
| | | return new PageResponse<String>(RespCodeEnum.CODE_0000, "执行成功"); |
| | | } |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), result); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 出入库视频 |
| | | * |
| | |
| | | */ |
| | | @RequestMapping("/notice-weight-done") |
| | | public @ResponseBody |
| | | PageResponse<String> noticeWeightDone(@RequestBody InoutApiData param) { |
| | | PageResponse<String> noticeWeightDone(@RequestBody ApiInoutData param) { |
| | | |
| | | String msg = inoutDeviceManager.noticeWeightDone(param); |
| | | |