2024-12-20 设备模块-维修审核问题

master
元气满满(jgy) 4 months ago
parent 386dbbb273
commit b0e278f6d0

@ -473,7 +473,7 @@ public class EquRepairWorkOrderServiceImpl implements IEquRepairWorkOrderService
//发企业微信--------------------结束
}
return success("提交成功,维修完成");
return success("提交成功");
}
//更新运行表 + 设备表
@ -564,10 +564,15 @@ public class EquRepairWorkOrderServiceImpl implements IEquRepairWorkOrderService
throw new NotLoginException("设备表中,此设备状态为空!");
}
if (equOperation.getEquStatusDes() == null || equOperation.getEquStatusDes().equals("")) {
equOperation.setEquStatusDes(formattedDate + ":" + equStatus);
} else {
equOperation.setEquStatusDes(equOperation.getEquStatusDes() + formattedDate + equStatus);//设备状态描述
if(equOperation == null){
System.out.println(equRepairWorkOrder.getEquipmentCode()+":运行记录为空");
}else{
if (StringUtils.isBlank(equOperation.getEquStatusDes())) {
equOperation.setEquStatusDes(formattedDate + ":" + equStatus);
} else {
equOperation.setEquStatusDes(equOperation.getEquStatusDes() + formattedDate + equStatus);//设备状态描述
}
equOperationMapper.updateEquOperation(equOperation);
}
if(equ.getEquipmentStatus().equals("0") || equ.getEquipmentStatus().equals("2")|| equ.getEquipmentStatus().equals("1")){
@ -576,7 +581,6 @@ public class EquRepairWorkOrderServiceImpl implements IEquRepairWorkOrderService
equEquipment.setEquipmentStatus("3");
}
equRepairWorkOrderMapper.updateEquipmentStatus(equEquipment);
equOperationMapper.updateEquOperation(equOperation);
return msg;
}

Loading…
Cancel
Save