代码更新

This commit is contained in:
2023-02-21 14:49:39 +08:00
parent 7c97a94a82
commit 642cecc8a6

View File

@@ -395,6 +395,18 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
if (ObjectUtil.isEmpty(sub_jo)) {
throw new BadRequestException("未查询到该木箱对应的包装关系!");
}
// 校验木箱长度类型
double box_length = sub_jo.getDoubleValue("box_length");
if (522 <= box_length && box_length <= 614) {
device_code = device_code + "_1";
} else if (672 <= box_length && box_length <= 814) {
device_code = device_code + "_2";
} else {
device_code = device_code + "_3";
}
String sale_order_name = sub_jo.getString("sale_order_name");
//查询是否存在可用的空位