| | |
| | | */ |
| | | package org.sxkj.gd.airesults.service.impl; |
| | | |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.sxkj.gd.airesults.entity.GdAiResultsEntity; |
| | | import org.sxkj.gd.airesults.param.GdAiResultsPageParam; |
| | | import org.sxkj.gd.airesults.vo.GdAiResultsVO; |
| | | import org.sxkj.gd.airesults.excel.GdAiResultsExcel; |
| | | import org.sxkj.gd.airesults.mapper.GdAiResultsMapper; |
| | | import org.sxkj.gd.airesults.service.IGdAiResultsService; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.stereotype.Service; |
| | | import org.sxkj.common.config.MinioConfig; |
| | | import org.sxkj.gd.airesults.entity.GdAiResultsEntity; |
| | | import org.sxkj.gd.airesults.excel.GdAiResultsExcel; |
| | | import org.sxkj.gd.airesults.mapper.GdAiResultsMapper; |
| | | import org.sxkj.gd.airesults.param.GdAiResultsPageParam; |
| | | import org.sxkj.gd.airesults.service.IGdAiResultsService; |
| | | import org.sxkj.gd.airesults.vo.GdAiResultsVO; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class GdAiResultsServiceImpl extends BaseServiceImpl<GdAiResultsMapper, GdAiResultsEntity> implements IGdAiResultsService { |
| | | |
| | | @Resource |
| | | private MinioConfig minioConfig; |
| | | |
| | | /** |
| | | * 自定义分页查询 |
| | | * |
| | | * @param page 分页对象 |
| | | * @param page 分页对象 |
| | | * @param gdAiResults 查询参数 |
| | | * @return AI成果分页结果 |
| | | */ |
| | | @Override |
| | | public IPage<GdAiResultsVO> selectGdAiResultsPage(IPage<GdAiResultsVO> page, GdAiResultsPageParam gdAiResults) { |
| | | return page.setRecords(baseMapper.selectGdAiResultsPage(page, gdAiResults)); |
| | | List<GdAiResultsVO> gdAiResultsVOS = baseMapper.selectGdAiResultsPage(page, gdAiResults); |
| | | gdAiResultsVOS.forEach(gdAiResultsVO -> { |
| | | gdAiResultsVO.setOrgAttUrl(minioConfig.getPath() + gdAiResultsVO.getOrgAttUrl()); |
| | | }); |
| | | return page.setRecords(gdAiResultsVOS); |
| | | } |
| | | |
| | | /** |