|
@@ -17,6 +17,7 @@ import com.ruoyi.zdsz.domain.bo.ZEngineeringIndustryBo;
|
|
|
import com.ruoyi.zdsz.domain.bo.ZEngineeringNodeBo;
|
|
|
import com.ruoyi.zdsz.domain.bo.ZFileBo;
|
|
|
import com.ruoyi.zdsz.domain.vo.ZEngiineeringPhotoVo;
|
|
|
+import com.ruoyi.zdsz.domain.vo.ZEngineeringIndustryTypeVo;
|
|
|
import com.ruoyi.zdsz.domain.vo.ZEngineeringIndustryVo;
|
|
|
import com.ruoyi.zdsz.mapper.ZEngineeringIndustryMapper;
|
|
|
import com.ruoyi.zdsz.service.IZEngiineeringPhotoService;
|
|
@@ -242,21 +243,20 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public TableDataInfo<ZEngineeringIndustryVo> queryNameByType(ZEngineeringIndustryBo bo, PageQuery pageQuery) {
|
|
|
+ public TableDataInfo<ZEngineeringIndustryTypeVo> queryNameByType(ZEngineeringIndustryBo bo, PageQuery pageQuery) {
|
|
|
QueryWrapper<ZEngineeringIndustry> zEngineeringIndustryQueryWrapper = buildListByType(bo);
|
|
|
|
|
|
IPage<ZEngineeringIndustry> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());
|
|
|
IPage<ZEngineeringIndustry> result = baseMapper.selectPage(page, zEngineeringIndustryQueryWrapper);
|
|
|
|
|
|
- List<ZEngineeringIndustryVo> voList = result.getRecords().stream()
|
|
|
+ List<ZEngineeringIndustryTypeVo> voList = result.getRecords().stream()
|
|
|
.map(record -> {
|
|
|
- ZEngineeringIndustryVo vo = new ZEngineeringIndustryVo();
|
|
|
+ ZEngineeringIndustryTypeVo vo = new ZEngineeringIndustryTypeVo();
|
|
|
vo.setId(record.getId());
|
|
|
- vo.setEnginName(record.getEnginName());
|
|
|
+ vo.setName(record.getEnginName());
|
|
|
return vo;
|
|
|
})
|
|
|
.collect(Collectors.toList());
|
|
|
-
|
|
|
return new TableDataInfo<>(voList, (int)result.getTotal());
|
|
|
}
|
|
|
|