|
|
@ -145,6 +145,7 @@ public class ResourceRepairTaskServiceImpl extends ServiceImpl<ResourceRepairTas
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ResourceRepairTask selOrStartRepairTask(ResourceRepairTask resourceRepairTask) {
|
|
|
|
public ResourceRepairTask selOrStartRepairTask(ResourceRepairTask resourceRepairTask) {
|
|
|
|
|
|
|
|
String user = CommonMethods.getUser();
|
|
|
|
// 根据HANDLE查询维修任务
|
|
|
|
// 根据HANDLE查询维修任务
|
|
|
|
String handle = resourceRepairTask.getHandle();
|
|
|
|
String handle = resourceRepairTask.getHandle();
|
|
|
|
String stopMachine = resourceRepairTask.getStopMachine();
|
|
|
|
String stopMachine = resourceRepairTask.getStopMachine();
|
|
|
@ -166,7 +167,9 @@ public class ResourceRepairTaskServiceImpl extends ServiceImpl<ResourceRepairTas
|
|
|
|
if (stopMachine != null && status.equals("501")){
|
|
|
|
if (stopMachine != null && status.equals("501")){
|
|
|
|
repairTask.setStatus("501");
|
|
|
|
repairTask.setStatus("501");
|
|
|
|
repairTask.setActualStartDate(LocalDateTime.now());
|
|
|
|
repairTask.setActualStartDate(LocalDateTime.now());
|
|
|
|
repairTask.setRepairUsers(CommonMethods.getUser());
|
|
|
|
repairTask.setRepairUsers(user);
|
|
|
|
|
|
|
|
NwaUser userByUserName = nwaUserService.findUserByUserName(user);
|
|
|
|
|
|
|
|
repairTask.setRepairUserName(userByUserName.getFullName());
|
|
|
|
resourceRepairTaskService.updateById(repairTask);
|
|
|
|
resourceRepairTaskService.updateById(repairTask);
|
|
|
|
// 修改设备状态---若stopMachie=Y,则状态改为非预定停机
|
|
|
|
// 修改设备状态---若stopMachie=Y,则状态改为非预定停机
|
|
|
|
if (stopMachine.equals("Y")){
|
|
|
|
if (stopMachine.equals("Y")){
|
|
|
|