| | |
| | | @ResponseBody |
| | | @RequestMapping("/get-plateNum") |
| | | public PageResponse<ApiInoutData> getPlateNum(@RequestBody ApiInoutData param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | param.setErrorMsg("当前车牌识别未配置通讯协议,无法执行"); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007, param); |
| | | |
| | | if (null == param.getIp()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "出入库配置中没有配置如入登记的车牌识别"); |
| | | } |
| | | |
| | | if (null == param.getIp()) { |
| | | param.setErrorMsg("出入库配置中没有配置如入登记的车牌识别"); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007, param); |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "当前车牌识别未配置通讯协议,无法执行"); |
| | | } |
| | | |
| | | param = inoutDeviceManager.getPlateNum(param); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取车牌识别信息 |
| | | * 获取智慧卡信息 |
| | | * |
| | | * @param param 车牌识别数据信息 |
| | | * @param param 获取智慧卡信息 |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | |
| | | public PageResponse<ApiInoutData> getIcCardNum(@RequestBody ApiInoutData param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | param.setErrorMsg("当前智慧卡未配置通讯协议,无法执行"); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007, param); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "当前智慧卡未配置通讯协议,无法执行"); |
| | | } |
| | | |
| | | if (null == param.getIp()) { |
| | | param.setErrorMsg("出入库配置中没有配置智慧卡信息"); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007, param); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "出入库配置中没有配置智慧卡信息"); |
| | | } |
| | | |
| | | param = inoutDeviceManager.getIcCardNum(param); |