| | |
| | | import com.ruoyi.account.mapper.sales.AccountSalesCollectionMapper; |
| | | import com.ruoyi.account.pojo.sales.AccountInvoiceApplication; |
| | | import com.ruoyi.account.pojo.sales.AccountSalesCollection; |
| | | import com.ruoyi.basic.dto.StorageAttachmentDTO; |
| | | import com.ruoyi.basic.enums.ApplicationTypeEnum; |
| | | import com.ruoyi.basic.enums.RecordTypeEnum; |
| | | import com.ruoyi.basic.mapper.CustomerMapper; |
| | |
| | | resultDto.setProductData(products); |
| | | resultDto.setSalesLedgerFiles(salesLedgerFiles); |
| | | } |
| | | |
| | | StorageAttachmentDTO attachmentQuery = new StorageAttachmentDTO(); |
| | | attachmentQuery.setApplication(ApplicationTypeEnum.FILE.getType()); |
| | | attachmentQuery.setRecordType(RecordTypeEnum.SALES_LEDGER.getType()); |
| | | attachmentQuery.setRecordId(salesLedger.getId()); |
| | | resultDto.setStorageBlobVOs(fileUtil.getStorageBlobVOsByApplicationAndRecordTypeAndRecordId(attachmentQuery)); |
| | | return resultDto; |
| | | } |
| | | |
| | |
| | | result.put("ledger", ledger); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public Map<Long, SalesLedgerEditFlagDto> getEditFlags(List<Long> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return new HashMap<>(); |
| | | } |
| | | List<SalesLedgerEditFlagDto> flags = salesLedgerMapper.selectEditFlags(ids); |
| | | return flags.stream().collect(Collectors.toMap( |
| | | SalesLedgerEditFlagDto::getSalesLedgerId, |
| | | Function.identity(), |
| | | (existing, replacement) -> existing)); |
| | | } |
| | | } |