| | |
| | | import org.jeecg.modules.mdc.service.IMdcDriveTypeParamConfigService; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentService; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentWorkLineService; |
| | | import org.jeecg.modules.mdc.service.IMdcTorqueConfigService; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdc.vo.MdcWorkChartVo; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Resource |
| | | private EquipmentWorklineMapper equipmentWorklineMapper; |
| | | |
| | | @Resource |
| | | private IMdcTorqueConfigService mdcTorqueConfigService; |
| | | |
| | | /** |
| | | * 查找指定日期的数据 |
| | |
| | | return null; |
| | | } |
| | | List<EquipmentMachingDto> result = this.getWorkLineList(saveTableName, mdcDriveTypeParamConfigs, mdcWorkChartVo, startTime, endTime); |
| | | // 查找扭矩和进给参数 |
| | | List<EquipmentMachingDto> torqueList = mdcTorqueConfigService.getWorkLineList(mdcWorkChartVo.getEquipmentId(), startTime, endTime); |
| | | if (torqueList != null && !torqueList.isEmpty()) { |
| | | result.addAll(torqueList); |
| | | result = result.stream().sorted(Comparator.comparing(EquipmentMachingDto::getCollectTime)).collect(Collectors.toList()); |
| | | } |
| | | if (result == null || result.isEmpty()) { |
| | | return null; |
| | | } |