代码更新

This commit is contained in:
2023-02-27 09:36:13 +08:00
parent 0b0b7e62bf
commit 4a853a80cb

View File

@@ -603,8 +603,11 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
data.put("box_width", box_width);
data.put("box_high", box_high);
String bundle_times_num = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("bundle_times_num").getValue();
Double box_length_value = Double.valueOf(box_length);
if (box_length_value >= 772) {
Double box_bundle_times_num = Double.valueOf(bundle_times_num);
if (box_length_value >= box_bundle_times_num) {
data.put("bundle_times", 3);
} else {
data.put("bundle_times", 2);