rev: 木箱高度精度修改

This commit is contained in:
2023-05-11 15:47:55 +08:00
parent bb5f841d9e
commit 22bcfc1e54

View File

@@ -56,7 +56,8 @@ public class SendOutTask extends AbstractAcsTask {
JSONObject jsonSub = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + json.getString("vehicle_code") + "'").uniqueResult(0);
String box_high_ext = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("box_high_ext").getValue();
next_high = String.valueOf(NumberUtil.add(jsonSub.getDoubleValue("box_high"),Double.parseDouble(box_high_ext)));
double box_high = NumberUtil.add(jsonSub.getDoubleValue("box_high"), Double.parseDouble(box_high_ext));
next_high = String.valueOf(NumberUtil.round(box_high, 0));
} else {
next_high = "0";
}