| | |
| | | } |
| | | |
| | | /** |
| | | * 批量查询多个销售订单下、指定审批状态的开票(财务对账报表使用,避免逐单查询) |
| | | */ |
| | | default List<CrmInvoiceDO> selectListBySaleOrderIdsAndStatus(Collection<Long> saleOrderIds, |
| | | Collection<Integer> auditStatuses) { |
| | | if (CollUtil.isEmpty(saleOrderIds)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | return selectList(new LambdaQueryWrapperX<CrmInvoiceDO>() |
| | | .in(CrmInvoiceDO::getSaleOrderId, saleOrderIds) |
| | | .in(CrmInvoiceDO::getAuditStatus, auditStatuses)); |
| | | } |
| | | |
| | | /** |
| | | * 批量查询多个销售出库单下、指定审批状态的开票(财务对账报表使用,避免逐单查询) |
| | | */ |
| | | default List<CrmInvoiceDO> selectListBySaleOutIdsAndStatus(Collection<Long> saleOutIds, |
| | | Collection<Integer> auditStatuses) { |
| | | if (CollUtil.isEmpty(saleOutIds)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | return selectList(new LambdaQueryWrapperX<CrmInvoiceDO>() |
| | | .in(CrmInvoiceDO::getSaleOutId, saleOutIds) |
| | | .in(CrmInvoiceDO::getAuditStatus, auditStatuses)); |
| | | } |
| | | |
| | | /** |
| | | * 查询合同下的全部开票(导入去重用) |
| | | */ |
| | | default List<CrmInvoiceDO> selectListByContractId(Long contractId) { |