rev:软费组桶校验

This commit is contained in:
zhangzq
2024-12-02 10:03:33 +08:00
parent fd856ba6b2
commit c505e4f8ab

View File

@@ -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+"");