| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | product.setExpressNumber(shippingInfo.getExpressNumber()); |
| | | } |
| | | } |
| | | // 过滤只保留发货记录 |
| | | products = products.stream().filter(product -> "审核通过".equals(product.getShippingStatus())).collect(Collectors.toList()); |
| | | // 过滤只保留已发货记录 |
| | | products = products.stream().filter(product -> "审核通过".equals(product.getShippingStatus()) || "已发货".equals(product.getShippingStatus())).collect(Collectors.toList()); |
| | | if (!products.isEmpty()) { |
| | | salesLedger.setHasChildren(true); |
| | | salesLedger.setProductData(products); |