| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public WmsBaseResponse<WmsBaseDataResponse> orderPlatformBind(PlatformJob job) { |
| | | public WmsBaseResponse<WmsBaseDataResponse> orderPlatformBind(PlatformJob job,int optType) { |
| | | if(StringUtils.isBlank(job.getBillCode()) || StringUtils.isBlank(job.getPlatformWmsCode())){ |
| | | return null; |
| | | } |
| | |
| | | String url = type == 0?systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_INBOUND_PLATFROM_URL).getCode(): |
| | | systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_OUTBOUND_PLATFROM_URL).getCode();; |
| | | String name = type ==0?"【WMS】入库作业单分配月台":"【WMS】出库作业的分配月台"; |
| | | if(optType == 0){ |
| | | name = type ==0?"【WMS】入库作业单清空月台":"【WMS】出库作业的清空月台"; |
| | | } |
| | | // int sendSuccess = 0; |
| | | // int sendError = 0; |
| | | List<String> errorMassge = new ArrayList<>(); |
| | |
| | | WmsOrderPlatformInfoRequest o = new WmsOrderPlatformInfoRequest(); |
| | | o.setCarrierBillCode(platformWmsDetail.getIocode()); |
| | | o.setRailwayNo(job.getPlatformWmsCode()); |
| | | o.setOptionType(optType); |
| | | param.getData().add(o); |
| | | response = sendHttpRequest(url,name,JSONObject.toJSONString(param),new TypeReference< WmsBaseResponse<WmsBaseDataResponse>>(){}); |
| | | if(response!=null && response.getData() !=null |