remove:手持绑定数据不在根据气胀轴上下轴赋值
This commit is contained in:
@@ -1108,6 +1108,7 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
public JSONObject toSubvolumeBinding(JSONObject param) {
|
public JSONObject toSubvolumeBinding(JSONObject param) {
|
||||||
// param : container_name, point_code
|
// param : container_name, point_code
|
||||||
String containerName = param.getString("container_name");
|
String containerName = param.getString("container_name");
|
||||||
|
String pointCode1 = param.getString("point_code");
|
||||||
if (ObjectUtil.isEmpty(containerName)) {
|
if (ObjectUtil.isEmpty(containerName)) {
|
||||||
throw new BadRequestException("子卷号不能为空!");
|
throw new BadRequestException("子卷号不能为空!");
|
||||||
}
|
}
|
||||||
@@ -1116,7 +1117,7 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
if (plans.size() == 0) {
|
if (plans.size() == 0) {
|
||||||
throw new BadRequestException("子卷号:[" + containerName + "] 的分切计划没找到,检查是否推送或者子卷号是否正确!");
|
throw new BadRequestException("子卷号:[" + containerName + "] 的分切计划没找到,检查是否推送或者子卷号是否正确!");
|
||||||
}
|
}
|
||||||
BstIvtCutpointivt pointCode = bcutpointivtService.getPintByTrussCode(param.getString("point_code"), false);
|
BstIvtCutpointivt pointCode = bcutpointivtService.getPintByTrussCode(pointCode1, false);
|
||||||
PdmBiSlittingproductionplan demoPlan = plans.get(0);
|
PdmBiSlittingproductionplan demoPlan = plans.get(0);
|
||||||
String resourceName = demoPlan.getResource_name();
|
String resourceName = demoPlan.getResource_name();
|
||||||
// 创建新的气胀轴编码
|
// 创建新的气胀轴编码
|
||||||
@@ -1128,12 +1129,12 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
plans.forEach(p -> {
|
plans.forEach(p -> {
|
||||||
p.setQzzno(qzzNo);
|
p.setQzzno(qzzNo);
|
||||||
TaskUtils.updateOptMessageBySlitterPlan(p);
|
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");
|
pointCode.setPoint_status("3");
|
||||||
slittingproductionplanService.updateBatchById(plans);
|
slittingproductionplanService.updateBatchById(plans);
|
||||||
bcutpointivtService.updateById(pointCode);
|
bcutpointivtService.updateById(pointCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user