|
|
@ -110,11 +110,13 @@ public class PmsPurchasePayService extends MybatisBaseService<PmsPurchasePayMapp |
|
|
|
String filePath = pmsPurchasePay.getFilePath(); |
|
|
|
String[] filePaths = filePath.split(","); |
|
|
|
List<PmsPurchasePayFile> urlPahts = new ArrayList<>(); |
|
|
|
for (String path : filePaths) { |
|
|
|
String url = fileUploadComponent.getUrlPrefix() + path; |
|
|
|
PmsPurchasePayFile pmsPurchasePayFile = new PmsPurchasePayFile(); |
|
|
|
pmsPurchasePayFile.setUrl(url); |
|
|
|
urlPahts.add(pmsPurchasePayFile); |
|
|
|
if (filePaths.length > 0){ |
|
|
|
for (String path : filePaths) { |
|
|
|
String url = fileUploadComponent.getUrlPrefix() + path; |
|
|
|
PmsPurchasePayFile pmsPurchasePayFile = new PmsPurchasePayFile(); |
|
|
|
pmsPurchasePayFile.setUrl(url); |
|
|
|
urlPahts.add(pmsPurchasePayFile); |
|
|
|
} |
|
|
|
} |
|
|
|
pmsPurchasePayDetailsVo.setFilePaths(urlPahts); |
|
|
|
return pmsPurchasePayDetailsVo; |
|
|
|