rev:软费组桶校验
This commit is contained in:
@@ -559,6 +559,9 @@ public class PdaBucketServiceImpl implements PdaBucketService {
|
||||
if (splitArr.length<1) {
|
||||
throw new BadRequestException("袋码内容为空!");
|
||||
}
|
||||
if (splitArr.length<8) {
|
||||
throw new BadRequestException("袋码内容不正确");
|
||||
}
|
||||
// 截取桶码
|
||||
String bucketunique_bag = splitArr[7];
|
||||
// 截取袋码
|
||||
@@ -588,11 +591,11 @@ public class PdaBucketServiceImpl implements PdaBucketService {
|
||||
throw new BadRequestException("当前桶码与二维码桶码不一致,二维码桶码为【"+bucketunique_bag+"】");
|
||||
}
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(pcsn)){
|
||||
if (!pcsn_bag.equals(pcsn)) {
|
||||
throw new BadRequestException("当前批次与二维码批次不一致,二维码批次为【"+pcsn_bag+"】");
|
||||
}
|
||||
}
|
||||
// if (ObjectUtil.isNotEmpty(pcsn)){
|
||||
// if (!pcsn_bag.equals(pcsn)) {
|
||||
// throw new BadRequestException("当前批次与二维码批次不一致,二维码批次为【"+pcsn_bag+"】");
|
||||
// }
|
||||
// }
|
||||
if ( ObjectUtil.isNotEmpty(material_code)) {
|
||||
if (!jsonMater.getString("material_code").equals(material_code)) {
|
||||
throw new BadRequestException("当前物料与二维码物料不一致,二维码物料为【"+material_code+"】");
|
||||
|
||||
Reference in New Issue
Block a user