opt:后台校验箱号

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-02-24 15:52:42 +08:00
parent 02128121d4
commit f4f18ce6f4

View File

@@ -158,6 +158,13 @@ public class ProductInstorServiceImpl implements ProductInstorService {
mst_jo.put("bill_type", "0006");
}
}
Object package_box_sn = box_map.get("package_box_sn");
//判断明细数组中箱号与扫码的箱子是否一致,不一致让客户重新扫码
if (ObjectUtil.isNotEmpty(package_box_sn)) {
if (!box_no.equals(package_box_sn)) {
throw new BadRequestException("扫码箱号:"+box_no+"与明细数据中箱号:"+package_box_sn+"不一致,请重新扫码操作!");
}
}
for (int i = 0; i < box_rows.size(); i++) {
HashMap box_row = box_rows.get(i);
sub_type = box_row.get("sub_type");