remove:手持绑定数据不在根据气胀轴上下轴赋值

This commit is contained in:
2024-07-09 10:44:42 +08:00
parent a231610675
commit b343a5c054

View File

@@ -1108,6 +1108,7 @@ public class SlitterServiceImpl implements SlitterService {
public JSONObject toSubvolumeBinding(JSONObject param) {
// param : container_name, point_code
String containerName = param.getString("container_name");
String pointCode1 = param.getString("point_code");
if (ObjectUtil.isEmpty(containerName)) {
throw new BadRequestException("子卷号不能为空!");
}
@@ -1116,7 +1117,7 @@ public class SlitterServiceImpl implements SlitterService {
if (plans.size() == 0) {
throw new BadRequestException("子卷号:[" + containerName + "] 的分切计划没找到,检查是否推送或者子卷号是否正确!");
}
BstIvtCutpointivt pointCode = bcutpointivtService.getPintByTrussCode(param.getString("point_code"), false);
BstIvtCutpointivt pointCode = bcutpointivtService.getPintByTrussCode(pointCode1, false);
PdmBiSlittingproductionplan demoPlan = plans.get(0);
String resourceName = demoPlan.getResource_name();
// 创建新的气胀轴编码
@@ -1128,12 +1129,12 @@ public class SlitterServiceImpl implements SlitterService {
plans.forEach(p -> {
p.setQzzno(qzzNo);
TaskUtils.updateOptMessageBySlitterPlan(p);
if ("1".equals(p.getUp_or_down())) {
pointCode.setQzz_no1(qzzNo);
} else {
pointCode.setQzz_no2(qzzNo);
}
});
if (pointCode1.endsWith("A")) {
pointCode.setQzz_no1(qzzNo);
} else {
pointCode.setQzz_no2(qzzNo);
}
pointCode.setPoint_status("3");
slittingproductionplanService.updateBatchById(plans);
bcutpointivtService.updateById(pointCode);