|
@@ -105,7 +105,7 @@ public class CPayableAccountsServiceImpl implements CPayableAccountsService {
|
|
|
PayableAccountsDetail payableAccountsDetail = new PayableAccountsDetail();
|
|
|
BusinessRelateFile businessRelateFile = businessRelateFileBaseService.getByCondition(payableAccounts.getId(),
|
|
|
BillingConstant.PAYMENT_VOUCHER, FileTypeEnum.PAYABLE_ACCOUNTS.getCode());
|
|
|
- if (businessRelateFile != null) {
|
|
|
+ if (businessRelateFile != null && businessRelateFile.getFileId() != null) {
|
|
|
FileAbstractDto payableAccountsFile = new FileAbstractDto(
|
|
|
fileStorageService.getFileStorageById(businessRelateFile.getFileId()));
|
|
|
payableAccountsDetail.setPayableAccountsFile(payableAccountsFile);
|