周末fix
This commit is contained in:
@@ -210,11 +210,7 @@ public class TBXMLTask extends AbstractTask {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // 2 没有对应的固化室、没有同工艺号的固化室、没有计划方案对应的固化室,就找新的固化室
|
||||
if (points.size() == 0) {
|
||||
points = tbxMapper.getEmptyPoint(nextRegionStr, vehicle_type, workorder.getMaterial_id());
|
||||
}
|
||||
SchBasePoint schBasePoint =new SchBasePoint();
|
||||
SchBasePoint schBasePoint =null;
|
||||
for(SchBasePoint temp:points){
|
||||
for(String ghs:ghsList) {
|
||||
if (ghs.equals(temp.getParent_point_code())) {
|
||||
@@ -223,10 +219,23 @@ public class TBXMLTask extends AbstractTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (schBasePoint != null) {
|
||||
schBasePoint.setCan_material_type(workorder.getMaterial_id());
|
||||
pointService.updateById(schBasePoint);
|
||||
// // 2 没有对应的固化室、没有同工艺号的固化室、没有计划方案对应的固化室,就找新的固化室
|
||||
if (ObjectUtil.isEmpty(schBasePoint)) {
|
||||
points = tbxMapper.getEmptyPoint(nextRegionStr, vehicle_type, workorder.getMaterial_id());
|
||||
for(SchBasePoint temp:points){
|
||||
for(String ghs:ghsList) {
|
||||
if (ghs.equals(temp.getParent_point_code())) {
|
||||
schBasePoint=temp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if (schBasePoint != null) {
|
||||
// schBasePoint.setCan_material_type(workorder.getMaterial_id());
|
||||
// pointService.updateById(schBasePoint);
|
||||
// }
|
||||
return schBasePoint;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user