| | |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.eam.entity.*; |
| | | import org.jeecg.modules.eam.service.IDailyMaintenanceOrderService; |
| | | import org.jeecg.modules.eam.service.IPrecisionInspectionDetailService; |
| | | import org.jeecg.modules.eam.service.IPrecisionInspectionService; |
| | | import org.jeecg.modules.eam.service.IPrecisionParametersService; |
| | | import org.jeecg.modules.eam.service.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | |
| | | |
| | | @Autowired |
| | | private IPrecisionParametersService precisionParametersService; |
| | | |
| | | @Autowired |
| | | private IEamEquipmentService equipmentService; |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | |
| | | PrecisionInspection preInspection = precisionInspectionService.getById(precisionInspection.getId()); |
| | | DailyMaintenanceOrder maintenanceOrder = dailyMaintenanceOrderService.getById(preInspection.getMaintenanceOrderId()); |
| | | Equipment equipment = equipmentService.getById(maintenanceOrder.getEquipmentId()); |
| | | String precisionInspectionStatus = maintenanceOrder.getPrecisionInspectionStatus(); |
| | | |
| | | if ("0".equals(precisionInspectionStatus)){ |
| | |
| | | |
| | | maintenanceOrder.setPrecisionInspectionStatus("5"); |
| | | // maintenanceOrder.setStatus("8"); |
| | | //更新设备技术状态 |
| | | equipment.setTechnologyStatus(precisionInspection.getJudgmentResult()); |
| | | } |
| | | |
| | | preInspection.setRemark(precisionInspection.getRemark()); |
| | | dailyMaintenanceOrderService.updateById(maintenanceOrder); |
| | | precisionInspectionService.updateById(preInspection); |
| | | |
| | | equipmentService.updateById(equipment); |
| | | return Result.OK("审批成功!"); |
| | | } |
| | | |