|
|
@ -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; |
|
|
|
} |
|
|
@ -184,7 +194,7 @@ public class AsSaleinvoiceapplyService extends MybatisBaseService<AsSaleinvoicea |
|
|
|
public String saveOrUpdateDto(AsSaleinvoiceapplyDto dto){ |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
List<AsSaleinvoiceapplyFile> files = dto.getFiles(); |
|
|
|
List<AsSaleinvoiceapplyDetailDto> saleinvoiceapplyDetailList = dto.getSaleinvoiceapplyDetailList(); |
|
|
|
List<AsSaleinvoiceapplyDetailDto> saleinvoiceapplyDetailList = dto.getSaleOrderList(); |
|
|
|
String deptSid = dto.getDeptSid(); |
|
|
|
SysOrganizationVo deptVo = sysOrganizationFeign.fetchBySid(deptSid).getData(); |
|
|
|
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(deptVo.getOrgSidPath()).getData(); |
|
|
@ -268,7 +278,7 @@ public class AsSaleinvoiceapplyService extends MybatisBaseService<AsSaleinvoicea |
|
|
|
} |
|
|
|
vo.setFiles(asSaleinvoiceapplyFiles); |
|
|
|
List<AsSaleinvoiceapplyDetailDetailsVo> asSaleinvoiceapplyDetailDetailsVos = asSaleinvoiceapplyDetailService.fetchByMainSid(sid); |
|
|
|
vo.setSaleinvoiceapplyDetailList(asSaleinvoiceapplyDetailDetailsVos); |
|
|
|
vo.setSaleOrderList(asSaleinvoiceapplyDetailDetailsVos); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|