|
|
@ -177,6 +177,16 @@ public class AsSaleinvoiceapplyService extends MybatisBaseService<AsSaleinvoicea |
|
|
|
); |
|
|
|
IPage<AsSaleinvoiceapply> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<AsSaleinvoiceapplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
for (AsSaleinvoiceapplyVo record : pagging.getRecords()) { |
|
|
|
List<AsAppendix> asAppendices = asAppendixService.fetchByLinkSid(record.getSid()); |
|
|
|
List<String> files = new ArrayList<>(); |
|
|
|
for (AsAppendix asAppendix : asAppendices) { |
|
|
|
AsSaleinvoiceapplyFile asSaleinvoiceapplyFile = new AsSaleinvoiceapplyFile(); |
|
|
|
String url = fileUploadComponent.getUrlPrefix() + asAppendix.getFilePath(); |
|
|
|
files.add(url); |
|
|
|
} |
|
|
|
record.setFiles(files); |
|
|
|
} |
|
|
|
PagerVo<AsSaleinvoiceapplyVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return p; |
|
|
|
} |
|
|
|