公司信息分页查询:丰富查询到的信息

master
yangxiaozhong 3 weeks ago
parent f2caaf3dcf
commit 78d601eba1

@ -99,7 +99,16 @@ public class DustCompanyinfoController {
@PreAuthorize("@ss.hasPermission('system:dust-companyinfo:query')")
public CommonResult<PageResult<DustCompanyinfoRespVO>> getDustCompanyinfoPage(@Valid DustCompanyinfoPageReqVO pageReqVO) {
PageResult<DustCompanyinfoDO> pageResult = dustCompanyinfoService.getDustCompanyinfoPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, DustCompanyinfoRespVO.class));
PageResult<DustCompanyinfoRespVO> result = BeanUtils.toBean(pageResult, DustCompanyinfoRespVO.class);
List<DustCompanyinfoRespVO> resultList = result.getList();
for (DustCompanyinfoRespVO vo : resultList) {
DustDustinfoDO dustDustinfo = dustDustinfoService.getDustDustinfo(vo.getId());
List<String> list = Arrays.stream(dustDustinfo.getDustTechnology().split(",")).toList();
DustDustinfoRespVO dustinfoRespVO = BeanUtils.toBean(dustDustinfo, DustDustinfoRespVO.class);
dustinfoRespVO.setDustTechnology(list);
vo.setDustDustinfo(dustinfoRespVO);
}
return success(result);
}
@GetMapping("/export-excel")

Loading…
Cancel
Save