| | |
| | | import com.ld.igds.camera.data.ApiCameraData; |
| | | import com.ld.igds.camera.data.ApiCameraResp; |
| | | import com.ld.igds.camera.data.ApiSnapReq; |
| | | import com.ld.igds.data.SnapImgDto; |
| | | import com.ld.igds.file.CoreFileService; |
| | | import com.ld.igds.inout.ApiInoutManager; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.ApiInoutData; |
| | | import com.ld.igds.inout.dto.InoutCameraDto; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutSnapImgDto; |
| | | import com.ld.igds.inout.ApiInoutService; |
| | | import com.ld.igds.io.constant.ProtocolEnum; |
| | | import com.ld.igds.m.service.InoutCommonService; |
| | |
| | | |
| | | ApiInoutService inoutApiService = apiInoutManager.getApiService(conf.getProtocol()); |
| | | |
| | | // return inoutApiService.noticeWeightDone(apiData); TODO |
| | | // return inoutApiService.noticeWeightDone(apiData); TODO |
| | | return null; |
| | | } |
| | | |
| | |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public InoutSnapImgDto snapImg(InoutSnapImgDto param) { |
| | | public SnapImgDto snapImg(SnapImgDto param) { |
| | | try { |
| | | InoutConf conf; |
| | | |
| | |
| | | * |
| | | * @param snapImgDto |
| | | */ |
| | | private void noticeGatewayWeightInfo(InoutSnapImgDto snapImgDto) { |
| | | private void noticeGatewayWeightInfo(SnapImgDto snapImgDto) { |
| | | |
| | | log.debug("-------------用户确认称重----通知称重网关----{}", snapImgDto.getWeight()); |
| | | InoutConf conf = this.getWeightGateway(snapImgDto.getCompanyId(), snapImgDto.getDeptId(), snapImgDto.getSort()); |
| | |
| | | * |
| | | * @param imgDto |
| | | */ |
| | | private void noticeGatewayAddWhitePlate(InoutSnapImgDto imgDto) { |
| | | private void noticeGatewayAddWhitePlate(SnapImgDto imgDto) { |
| | | |
| | | List<InoutConf> list = this.getWeightGateway(imgDto.getCompanyId(), imgDto.getDeptId()); |
| | | |
| | |
| | | for (InoutConf conf : list) { |
| | | apiData = new ApiInoutData(conf); |
| | | apiData.setPlateNum(imgDto.getPlateNum()); |
| | | // inoutApiService.addWhitePlate(apiData); |
| | | // inoutApiService.addWhitePlate(apiData); |
| | | } |
| | | } |
| | | |
| | |
| | | apiData = new ApiInoutData(conf); |
| | | apiData.setPlateNum(data.getPlateNum()); |
| | | |
| | | // inoutApiService.delWhitePlate(apiData); TODO |
| | | // inoutApiService.delWhitePlate(apiData); TODO |
| | | } |
| | | } |
| | | |
| | |
| | | * @param snapSer |
| | | * @return |
| | | */ |
| | | private String snapImgByConf(InoutConf conf, InoutSnapImgDto param, SnapSer snapSer) { |
| | | private String snapImgByConf(InoutConf conf, SnapImgDto param, SnapSer snapSer) { |
| | | if (null == conf) return null; |
| | | |
| | | if (null == conf.getSnapType()) { |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据出入库信息,控制出入库控制器 |
| | | * |
| | | * @param data |
| | | * @param curProgress |
| | | * @param nextProgress |
| | | */ |
| | | public void controlWeight(InoutData data, String curProgress, String nextProgress) { |
| | | |
| | | //TODO |
| | | |
| | | } |
| | | } |