|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|