| | |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.service.IMdcProductionService; |
| | | import org.jeecg.modules.system.service.ISysDictService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private DtBoardMapper dtBoardMapper; |
| | | |
| | | @Resource |
| | | private IAndonOrderService andonOrderService; |
| | | |
| | | /** |
| | | * 车间信息 |
| | |
| | | if (equipmentIdList == null || equipmentIdList.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<EquipmentAlarm> equipmentAlarmList = equipmentAlarmService.list(new LambdaQueryWrapper<EquipmentAlarm>().in(EquipmentAlarm::getEquipmentid, equipmentIdList).orderByDesc(EquipmentAlarm::getCollecttime).isNotNull(EquipmentAlarm::getAlarmNo).last("TOP 15")); |
| | | List<EquipmentAlarm> equipmentAlarmList = equipmentAlarmService.equAlarmList(equipmentIdList); |
| | | if (equipmentAlarmList == null || equipmentAlarmList.isEmpty()) { |
| | | return null; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 设备故障 |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<EquRepair> equRepairList(String productionId) { |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 设备安灯问题 |
| | | */ |
| | | @Override |
| | | public List<EquAndon> equAndonList(String productionId) { |
| | | List<String> proIds = mdcProductionService.findChildByProId(productionId); |
| | | if (proIds == null || proIds.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<String> equipmentIdList = mdcEquipmentService.getEquIdsByProIds(proIds); |
| | | if (equipmentIdList == null || equipmentIdList.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<EquAndon> result = andonOrderService.equAndonList(equipmentIdList); |
| | | return result; |
| | | } |
| | | |
| | | } |