| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R allocateLocation(LocationAllocateParams params) { |
| | | log.info("========== 开始申请入库任务,分配库位 =========="); |
| | | log.info("料箱码:{},入库站点:{},入库类型:{}", params.getBarcode(), params.getStaNo(), params.getType()); |
| | | log.info("料箱码:{},入库站点:{},入库类型:{},重量:{}", params.getBarcode(), params.getStaNo(), params.getType(), params.getWeight()); |
| | | |
| | | // 调用WMS server内部接口进行库位分配 |
| | | String wmsUrl = getWmsBaseUrl() + "/rsf-server/wcs/allocate/location"; |
| | |
| | | requestParams.put("staNo", params.getStaNo()); |
| | | requestParams.put("type", params.getType()); |
| | | requestParams.put("full", params.getFull()); |
| | | if (params.getWeight() != null) { |
| | | requestParams.put("weight", params.getWeight()); |
| | | } |
| | | log.info("请求参数:{}", requestParams.toJSONString()); |
| | | |
| | | HttpHeaders headers = new HttpHeaders(); |