二车间fix

This commit is contained in:
psh
2024-06-26 13:35:58 +08:00
parent 9dfb9e7d76
commit b940bd5db9

View File

@@ -204,6 +204,22 @@ public class BPSLTask extends AbstractTask {
point.setUpdate_time(DateUtil.now()); point.setUpdate_time(DateUtil.now());
point.setIng_task_code(""); point.setIng_task_code("");
pointService.update(point); pointService.update(point);
//二车间三层得单独找
SchBaseVehiclematerialgroup one = vehiclematerialgroupService.getOne(new LambdaQueryWrapper<SchBaseVehiclematerialgroup>()
.eq(SchBaseVehiclematerialgroup::getVehicle_code, point.getVehicle_code())
.eq(SchBaseVehiclematerialgroup::getGroup_bind_material_status,
GroupBindMaterialStatusEnum.BOUND.getValue()));
if (ObjectUtil.isNotEmpty(one)) {
one.setTask_code(taskObj.getTask_code());
one.setPoint_code(endPointObj.getPoint_code()); // 当前位置
one.setPoint_name(endPointObj.getPoint_name());
one.setMove_way(one.getMove_way() == null ? "" : (one.getMove_way() + " -> ") + endPointObj.getPoint_code());
one.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue());
one.setUpdate_id(GeneralDefinition.ACS_ID);
one.setUpdate_name(GeneralDefinition.ACS_NAME);
one.setUpdate_time(DateUtil.now());
vehiclematerialgroupService.updateById(one);
}
} }
} }
// if (!startPointObj.getPoint_code().startsWith("ZJBDJW")) { // if (!startPointObj.getPoint_code().startsWith("ZJBDJW")) {