|
|
|
@ -99,7 +99,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
@ -146,11 +146,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(orderCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderCode)){ |
|
|
|
|
log.warn(method+"订单编号不能为空 orderCode={}",orderCode); |
|
|
|
|
return R.fail(403,"订单编号不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"订单编号不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"订单编号不能为空"); |
|
|
|
|
} |
|
|
|
@ -181,15 +181,15 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode(); |
|
|
|
|
String orderPackageCode = trayTypeDTO.getOrderPackageCode();//包条码
|
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayType)){ |
|
|
|
|
if(StringUtil.isBlank(trayType)){ |
|
|
|
|
log.warn(method+"打托方式不能为空 trayType={}",trayType); |
|
|
|
|
return R.fail(403,"打托方式不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(orderPackageCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderPackageCode)){ |
|
|
|
|
log.warn(method+"包条码不能为空 orderPackageCode={}",orderPackageCode); |
|
|
|
|
return R.fail(403,"包条码不能为空"); |
|
|
|
|
} |
|
|
|
@ -223,11 +223,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
List<String> orderPackageCodes = trayTypeDTO.getOrderPackageCodes(); |
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode();//托盘码
|
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(Objects.isNull(orderPackageCodes)||orderPackageCodes.size() == 0){ |
|
|
|
|
if(Objects.isNull(orderPackageCodes)||orderPackageCodes.isEmpty()){ |
|
|
|
|
log.warn(method+"包条码不能为空 orderPackageCodes={}",orderPackageCodes); |
|
|
|
|
return R.fail(403,"包条码不能为空"); |
|
|
|
|
} |
|
|
|
@ -262,11 +262,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
String orderCode = trayTypeDTO.getOrderCode(); |
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode();//托盘码
|
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(orderCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderCode)){ |
|
|
|
|
log.warn(method+"订单号不能为空 orderCode={}",orderCode); |
|
|
|
|
return R.fail(403,"订单号不能为空"); |
|
|
|
|
} |
|
|
|
@ -345,7 +345,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
@ -388,7 +388,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"仓库信息不能为空"); |
|
|
|
|
return R.fail(403,"仓库信息不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(waybillCode)){ |
|
|
|
|
if(StringUtil.isBlank(waybillCode)){ |
|
|
|
|
log.warn(method+"运单号不能为空 waybillCode={}",waybillCode); |
|
|
|
|
return R.fail(403,"运单号不能为空"); |
|
|
|
|
} |
|
|
|
@ -420,11 +420,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘号不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘号不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayType)){ |
|
|
|
|
if(StringUtil.isBlank(trayType)){ |
|
|
|
|
log.warn(method+"打托方式不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"打托方式不能为空"); |
|
|
|
|
} |
|
|
|
@ -455,11 +455,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘号不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘号不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(orderCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderCode)){ |
|
|
|
|
log.warn(method+"订单不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"打托方式不能为空"); |
|
|
|
|
} |
|
|
|
@ -480,9 +480,12 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
public R updateZeroOrderNumByTrayCode(@RequestBody TrayTypeDTO trayTypeDTO) { |
|
|
|
|
String method = "###########updateZeroOrderNumByTrayCode: "; |
|
|
|
|
log.info(method + "更新零担订单数量 trayTypeDTO={}", trayTypeDTO); |
|
|
|
|
String orderCode = trayTypeDTO.getOrderCode();//订单自编码
|
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode();//托盘码
|
|
|
|
|
Integer num = trayTypeDTO.getNum();//数量
|
|
|
|
|
//订单自编码
|
|
|
|
|
String orderCode = trayTypeDTO.getOrderCode(); |
|
|
|
|
//托盘码
|
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode(); |
|
|
|
|
//数量
|
|
|
|
|
Integer num = trayTypeDTO.getNum(); |
|
|
|
|
try{ |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
@ -490,11 +493,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘号不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘号不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(orderCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderCode)){ |
|
|
|
|
log.warn(method+"订单不能为空 orderCode={}",orderCode); |
|
|
|
|
return R.fail(403,"订单不能为空"); |
|
|
|
|
} |
|
|
|
@ -524,10 +527,11 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
public R zeroOrderUpdateRemark(@RequestBody TrayTypeDTO trayTypeDTO) { |
|
|
|
|
String method = "###########updateZeroOrderNumByTrayCode: "; |
|
|
|
|
log.info(method + "更新零担订单数量 trayTypeDTO={}", trayTypeDTO); |
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode();//托盘码
|
|
|
|
|
//托盘码
|
|
|
|
|
String trayCode = trayTypeDTO.getTrayCode(); |
|
|
|
|
String remark = trayTypeDTO.getRemark(); |
|
|
|
|
try{ |
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘号不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘号不能为空"); |
|
|
|
|
} |
|
|
|
@ -597,7 +601,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
@ -644,15 +648,15 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayType)){ |
|
|
|
|
if(StringUtil.isBlank(trayType)){ |
|
|
|
|
log.warn(method+"打托方式不能为空 trayType={}",trayType); |
|
|
|
|
return R.fail(403,"打托方式不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(orderPackageCode)){ |
|
|
|
|
if(StringUtil.isBlank(orderPackageCode)){ |
|
|
|
|
log.warn(method+"包条码不能为空 orderPackageCode={}",orderPackageCode); |
|
|
|
|
return R.fail(403,"包条码不能为空"); |
|
|
|
|
} |
|
|
|
@ -777,7 +781,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
@ -827,7 +831,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"商场id不能为空 marketId={}",marketId); |
|
|
|
|
return R.fail(403,"商场id不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(materialCode)){ |
|
|
|
|
if(StringUtil.isBlank(materialCode)){ |
|
|
|
|
log.warn(method+"物料编码不能为空 materialCode={}",materialCode); |
|
|
|
|
return R.fail(403,"物料编码不能为空"); |
|
|
|
|
} |
|
|
|
@ -863,7 +867,7 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
log.warn(method+"商场id不能为空 marketId={}",marketId); |
|
|
|
|
return R.fail(403,"商场id不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(materialName)){ |
|
|
|
|
if(StringUtil.isBlank(materialName)){ |
|
|
|
|
log.warn(method+"物料名称不能为空 materialCode={}",materialName); |
|
|
|
|
return R.fail(403,"物料名称不能为空"); |
|
|
|
|
} |
|
|
|
@ -898,19 +902,19 @@ public class WarehouseTrayTypeApiController {
|
|
|
|
|
return R.fail(403,"仓库信息不能为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!StringUtil.hasLength(trayCode)){ |
|
|
|
|
if(StringUtil.isBlank(trayCode)){ |
|
|
|
|
log.warn(method+"托盘码不能为空 trayCode={}",trayCode); |
|
|
|
|
return R.fail(403,"托盘码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(trayType)){ |
|
|
|
|
if(StringUtil.isBlank(trayType)){ |
|
|
|
|
log.warn(method+"打托方式不能为空 trayType={}",trayType); |
|
|
|
|
return R.fail(403,"打托方式不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(materialCode)){ |
|
|
|
|
if(StringUtil.isBlank(materialCode)){ |
|
|
|
|
log.warn(method+"物料编码不能为空 materialCode={}",materialCode); |
|
|
|
|
return R.fail(403,"物料编码不能为空"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.hasLength(incomingBatch)){ |
|
|
|
|
if(StringUtil.isBlank(incomingBatch)){ |
|
|
|
|
log.warn(method+"批次号不能为空 incomingBatch={}",incomingBatch); |
|
|
|
|
return R.fail(403,"批次号不能为空"); |
|
|
|
|
} |
|
|
|
|