| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.mdc.dto.EquipmentMachingDto; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.mdc.entity.MdcTorqueConfig; |
| | | import org.jeecg.modules.mdc.mapper.MdcTorqueConfigMapper; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentService; |
| | | import org.jeecg.modules.mdc.service.IMdcTorqueConfigService; |
| | | import org.jeecg.modules.quartz.entity.QuartzJob; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | |
| | | MdcEquipment mdcEquipment = mdcEquipmentService.findEquipmentNameByEquipmentId(equipmentId); |
| | | MdcTorqueConfig torqueConfig = new MdcTorqueConfig(); |
| | | torqueConfig.setEquipmentId(equipmentId); |
| | | torqueConfig.setFeedParameter(mdcTorqueConfig.getFeedParameter()); |
| | | torqueConfig.setEquipmentName(mdcEquipment.getEquipmentName()); |
| | | torqueConfig.setTorqueDate(mdcTorqueConfig.getTorqueDate()); |
| | | torqueConfig.setTorqueValue(mdcTorqueConfig.getTorqueValue()); |
| | |
| | | @Override |
| | | public Boolean deleteBatchTorque(String ids) { |
| | | return this.removeBatchByIds(Arrays.asList(ids.split(","))); |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcTorqueConfig> findSpindleRunningCurve(float torqueValue, String equipmentId) { |
| | | return this.baseMapper.findSpindleRunningCurve(torqueValue, equipmentId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, mdcTorqueConfigs); |
| | | return mv; |
| | | } |
| | | |
| | | @Override |
| | | public List<EquipmentMachingDto> getWorkLineList(String equipmentId, Date startTime, Date endTime) { |
| | | return this.baseMapper.getWorkLineList(equipmentId, startTime, endTime); |
| | | } |
| | | } |