| | |
| | | import org.jeecg.modules.mdc.entity.MdcEquipmentMonitor; |
| | | import org.jeecg.modules.mdc.mapper.EquipmentAlarmMapper; |
| | | import org.jeecg.modules.screen.dto.MdcProductDayscheduleDto; |
| | | import org.jeecg.modules.screen.dto.ToolLifeDto; |
| | | import org.jeecg.modules.screen.mapper.MdcSubLargeScreenMapper; |
| | | import org.jeecg.modules.screen.service.MdcSubLargeScreenService; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | String endDate = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.of(LocalDate.now(), LocalTime.MIN).plusDays(1)); |
| | | return equipmentAlarmMapper.equipmentAlarm(productionId, startDate, endDate); |
| | | } |
| | | |
| | | /** |
| | | * 刀具寿命管理 |
| | | * |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ToolLifeDto> toolLifeList(String productionId) { |
| | | List<ToolLifeDto> toolLifeList = mdcSubLargeScreenMapper.toolLifeList(productionId); |
| | | if (toolLifeList != null && !toolLifeList.isEmpty()) { |
| | | for (ToolLifeDto toolLifeDto : toolLifeList) { |
| | | toolLifeDto.setTId("T" + toolLifeDto.getTId()); |
| | | } |
| | | } |
| | | return toolLifeList; |
| | | } |
| | | } |