fix: 纸管重量保存失败

This commit is contained in:
2024-06-03 15:59:24 +08:00
parent 1395078a48
commit e51fd6577a

View File

@@ -209,10 +209,9 @@ public class SlitterServiceImpl implements SlitterService {
} }
// 分切计划设置纸卷重量 // 分切计划设置纸卷重量
for (PdmBiSlittingproductionplan plan : plans) { for (PdmBiSlittingproductionplan plan : plans) {
if (ObjectUtil.isNotEmpty(material1) && material1.equals(plan.getContainer_name())) { if (SlitterConstant.SLITTER_SUB_VOLUME_LEFT.equals(plan.getLeft_or_right())) {
plan.setPaper_weight(weight1); plan.setPaper_weight(weight1);
} } else {
if (ObjectUtil.isNotEmpty(material2) && material2.equals(plan.getContainer_name())) {
plan.setPaper_weight(weight2); plan.setPaper_weight(weight2);
} }
TaskUtils.updateOptMessageBySlitterPlan(plan); TaskUtils.updateOptMessageBySlitterPlan(plan);