| | |
| | | import org.jeecg.common.system.base.entity.SysUploadRela; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.StrUtils; |
| | | import org.jeecg.modules.eam.entity.Equipment; |
| | | import org.jeecg.modules.eam.entity.MaintenanceStandardDetail; |
| | | import org.jeecg.modules.eam.model.MaintenanceCycleVo; |
| | | import org.jeecg.modules.eam.model.MaintenanceModeVo; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.service.IMaintenanceStandardDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Autowired |
| | | private ISysBaseAPI sysBaseApi; |
| | | |
| | | @Autowired |
| | | private IEamEquipmentService equipmentService; |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 周期性保养 根据设备台账ABC标识获取三保保养周期 |
| | | * @return |
| | | */ |
| | | @GetMapping("getPeriodicMaintenanceCycle") |
| | | public Result<?> getPeriodicMaintenanceCycle(@RequestParam("equipmentId") String equipmentId) { |
| | | Equipment equipment = equipmentService.getById(equipmentId); |
| | | List<MaintenanceCycleVo> maintenanceCycles = maintenanceStandardDetailService.getPeriodicMaintenanceCycle(equipment.getEquipmentImportanceId()); |
| | | return Result.ok(maintenanceCycles); |
| | | } |
| | | |
| | | /** |
| | | * 保养方式 |
| | | * qsw 2023-5-5 |
| | | */ |