|
|
@ -1997,14 +1997,15 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
|
|
|
|
|
|
|
|
distributionStockService.saveBatch(list1); |
|
|
|
distributionStockService.saveBatch(list1); |
|
|
|
//备货库位上架
|
|
|
|
//备货库位上架
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
// if (!Func.isEmpty(stockupDTO.getStockupAllocationId())){
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
// JSONObject jsonObject = new JSONObject();
|
|
|
|
jsonObject.put("code", stockupDTO.getTrayBarCode()); |
|
|
|
// jsonObject.put("warehouseId", myCurrentWarehouse.getId());
|
|
|
|
// jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId());
|
|
|
|
// jsonObject.put("code", stockupDTO.getTrayBarCode());
|
|
|
|
jsonObject.put("type", 4); |
|
|
|
// jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId());
|
|
|
|
jsonObject.put("num", list1.size()); |
|
|
|
// jsonObject.put("type", 4);
|
|
|
|
// TODO
|
|
|
|
// jsonObject.put("num", list1.size());
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
// warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject);
|
|
|
|
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
int i = list1.isEmpty() ? 0 : list1.size(); |
|
|
|
int i = list1.isEmpty() ? 0 : list1.size(); |
|
|
|
return Resp.scanSuccess("整托拣货" + i + "件", "整托拣货" + i + "件"); |
|
|
|
return Resp.scanSuccess("整托拣货" + i + "件", "整托拣货" + i + "件"); |
|
|
@ -2526,10 +2527,10 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
return Resp.scanFail("请输入正确备货数量 !", "请输入正确备货数量 !"); |
|
|
|
return Resp.scanFail("请输入正确备货数量 !", "请输入正确备货数量 !"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (ObjectUtils.isNull(stockupDTO.getStockupAllocationId())) { |
|
|
|
// if (ObjectUtils.isNull(stockupDTO.getStockupAllocationId())) {
|
|
|
|
log.error(method + "零担备货参数缺失AllocationId", stockupDTO); |
|
|
|
// log.error(method + "零担备货参数缺失AllocationId", stockupDTO);
|
|
|
|
return R.fail(3002, "请扫描备货库位!"); |
|
|
|
// return R.fail(3002, "请扫描备货库位!");
|
|
|
|
} |
|
|
|
// }
|
|
|
|
//查询预约
|
|
|
|
//查询预约
|
|
|
|
DistributionReservationEntity reservationEntity = distributionReservationService.getById(stockupDTO.getReservationId()); |
|
|
|
DistributionReservationEntity reservationEntity = distributionReservationService.getById(stockupDTO.getReservationId()); |
|
|
|
if (Func.isEmpty(reservationEntity)) { |
|
|
|
if (Func.isEmpty(reservationEntity)) { |
|
|
@ -2623,7 +2624,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
stockEntity.setMarketId(stockArticleEntity.getMallId()); |
|
|
|
stockEntity.setMarketId(stockArticleEntity.getMallId()); |
|
|
|
stockEntity.setReservationCode(reservationEntity.getReservationCode()); |
|
|
|
stockEntity.setReservationCode(reservationEntity.getReservationCode()); |
|
|
|
stockEntity.setStockupArea(stockupDTO.getStockupAllocationName()); |
|
|
|
stockEntity.setStockupArea(stockupDTO.getStockupAllocationName()); |
|
|
|
stockEntity.setStockupAreaId(stockupDTO.getStockupAllocationId()); |
|
|
|
// stockEntity.setStockupAreaId(stockupDTO.getStockupAllocationId());
|
|
|
|
if (Func.isNotEmpty(stockupDTO.getAllocationId())) { |
|
|
|
if (Func.isNotEmpty(stockupDTO.getAllocationId())) { |
|
|
|
log.info(method + "库位备货"); |
|
|
|
log.info(method + "库位备货"); |
|
|
|
//查询库位零担
|
|
|
|
//查询库位零担
|
|
|
@ -2692,16 +2693,16 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
log.info(method + "无库位无托盘备货"); |
|
|
|
log.info(method + "无库位无托盘备货"); |
|
|
|
} |
|
|
|
} |
|
|
|
distributionStockService.save(stockEntity); |
|
|
|
distributionStockService.save(stockEntity); |
|
|
|
if (!Func.isEmpty(stockupDTO.getStockupAllocationId())){ |
|
|
|
// if (!Func.isEmpty(stockupDTO.getStockupAllocationId())){
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
// JSONObject jsonObject = new JSONObject();
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
// jsonObject.put("warehouseId", myCurrentWarehouse.getId());
|
|
|
|
jsonObject.put("code", stockArticleEntity.getOrderCode()); |
|
|
|
// jsonObject.put("code", stockArticleEntity.getOrderCode());
|
|
|
|
jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId()); |
|
|
|
// jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId());
|
|
|
|
jsonObject.put("type", 3); |
|
|
|
// jsonObject.put("type", 3);
|
|
|
|
jsonObject.put("num", stockupDTO.getNum()); |
|
|
|
// jsonObject.put("num", stockupDTO.getNum());
|
|
|
|
//备货库位上架
|
|
|
|
// //备货库位上架
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
// warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
return Resp.scanSuccess("备货成功", "本次成功备货" + stockupDTO.getNum() + "件"); |
|
|
|
return Resp.scanSuccess("备货成功", "本次成功备货" + stockupDTO.getNum() + "件"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|