fix: 绑定子卷
This commit is contained in:
@@ -545,19 +545,6 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
PdmBiSlittingproductionplan nextUpPlan = nextPlans.stream().filter(p -> "1".equals(p.getUp_or_down())).findFirst().orElse(null);
|
||||
PdmBiSlittingproductionplan nextDownPlan = nextPlans.stream().filter(p -> "2".equals(p.getUp_or_down())).findFirst().orElse(null);
|
||||
// 找到该分切计划的点位
|
||||
// LambdaQueryWrapper<BstIvtCutpointivt> newCutLam = new QueryWrapper<BstIvtCutpointivt>().lambda();
|
||||
// newCutLam.eq(BstIvtCutpointivt::getPoint_type, "3").eq(BstIvtCutpointivt::getPoint_status, "2")
|
||||
// .eq(BstIvtCutpointivt::getIs_used, "1");
|
||||
// if (nextUpPlan != null) {
|
||||
// newCutLam.eq(BstIvtCutpointivt::getQzz_no1, nextUpPlan.getQzzno());
|
||||
// }
|
||||
// if (nextDownPlan != null) {
|
||||
// newCutLam.eq(BstIvtCutpointivt::getQzz_no2, nextDownPlan.getQzzno());
|
||||
// }
|
||||
// BstIvtCutpointivt newCutPoint = bcutpointivtService.getOne(newCutLam, false);
|
||||
// if (ObjectUtil.isEmpty(newCutPoint)) {
|
||||
// throw new BadRequestException("分切机【" + device.getExt_code() + "】的下一组分切计划未配送完毕!😊");
|
||||
// }
|
||||
BstIvtCutpointivt newCutPoint = cutPointList.get(0);
|
||||
String binaryExpress = TaskUtils.binaryConvertExpress(currentUpPlan, currentDownPlan, nextUpPlan, nextDownPlan);
|
||||
switch (binaryExpress) {
|
||||
@@ -1143,6 +1130,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
pointCode.setQzz_no2(qzzNo);
|
||||
}
|
||||
});
|
||||
pointCode.setPoint_status("3");
|
||||
slittingproductionplanService.updateBatchById(plans);
|
||||
bcutpointivtService.updateById(pointCode);
|
||||
JSONObject res = new JSONObject();
|
||||
|
||||
Reference in New Issue
Block a user