|
|
|
@ -403,15 +403,15 @@ public class WarehouseUpdownTypeApiController {
|
|
|
|
|
public R downZeroOrder(@RequestBody UpdownTypeDTO updownTypeDTO ) { |
|
|
|
|
String method = "###########downZeroOrder: "; |
|
|
|
|
log.info(method + "下架零担 updownTypeDTO={}", updownTypeDTO); |
|
|
|
|
List<UpShelfZeroOrderDTO> upShelfPackageList = updownTypeDTO.getUpShelfZeroOrderList(); |
|
|
|
|
List<UpShelfZeroOrderDTO> upShelfZeroOrderList = updownTypeDTO.getUpShelfZeroOrderList(); |
|
|
|
|
try{ |
|
|
|
|
int size = upShelfPackageList.size(); |
|
|
|
|
int size = upShelfZeroOrderList.size(); |
|
|
|
|
if(size == 0 ){ |
|
|
|
|
log.warn(method+"没有处理的数据"); |
|
|
|
|
return R.fail(403,"无处理数据"); |
|
|
|
|
} |
|
|
|
|
//查询该库位的货物信息
|
|
|
|
|
return warehouseUpdownTypeService.downZeroOrder(upShelfPackageList); |
|
|
|
|
return warehouseUpdownTypeService.downZeroOrder(upShelfZeroOrderList); |
|
|
|
|
}catch (CustomerException e){ |
|
|
|
|
log.warn(e.message); |
|
|
|
|
return R.fail(e.code,e.message); |
|
|
|
@ -645,10 +645,10 @@ public class WarehouseUpdownTypeApiController {
|
|
|
|
|
@ResponseBody |
|
|
|
|
@PostMapping("/moveAllocationByTrayCode") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "移库通过托盘", notes = "传入trayTypeDTO") |
|
|
|
|
@ApiOperation(value = "移库托盘", notes = "传入trayTypeDTO") |
|
|
|
|
public R moveAllocationByTrayCode(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
String method = "###########moveAllocationByTrayCode: "; |
|
|
|
|
log.info(method + "移库通过托盘 updownTypeDTO={}", updownTypeDTO); |
|
|
|
|
log.info(method + "移库托盘 updownTypeDTO={}", updownTypeDTO); |
|
|
|
|
String trayCode = updownTypeDTO.getTrayCode(); |
|
|
|
|
Long allocationId = updownTypeDTO.getAllocationId(); |
|
|
|
|
try{ |
|
|
|
|