| | |
| | | import cn.iocoder.yudao.module.crm.controller.admin.receivable.vo.receivable.CrmReceivableSaveReqVO; |
| | | import cn.iocoder.yudao.module.crm.dal.dataobject.customer.CrmCustomerDO; |
| | | import cn.iocoder.yudao.module.crm.dal.dataobject.receivable.CrmReceivableDO; |
| | | import cn.iocoder.yudao.module.crm.dal.dataobject.receivable.CrmReceivableItemDO; |
| | | import jakarta.validation.Valid; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | void updateReceivable(@Valid CrmReceivableSaveReqVO updateReqVO); |
| | | |
| | | /** |
| | | * 更新回款流程审批结果 |
| | | * 更新回款的状态(审核/反审核) |
| | | * |
| | | * @param id 回款编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | * @param id 编号 |
| | | * @param status 状态 |
| | | */ |
| | | void updateReceivableAuditStatus(Long id, Integer bpmResult); |
| | | void updateReceivableStatus(Long id, Integer status); |
| | | |
| | | /** |
| | | * 删除回款 |
| | |
| | | * @param id 编号 |
| | | */ |
| | | void deleteReceivable(Long id); |
| | | |
| | | /** |
| | | * 发起回款审批流程 |
| | | * |
| | | * @param id 回款编号 |
| | | * @param userId 用户编号 |
| | | */ |
| | | void submitReceivable(Long id, Long userId); |
| | | |
| | | /** |
| | | * 获得回款 |
| | |
| | | * @return 回款列表 |
| | | */ |
| | | List<CrmReceivableDO> getReceivableList(Collection<Long> ids); |
| | | |
| | | /** |
| | | * 获得回款的核销明细 |
| | | * |
| | | * @param receivableId 回款编号 |
| | | * @return 核销明细列表 |
| | | */ |
| | | List<CrmReceivableItemDO> getReceivableItemList(Long receivableId); |
| | | |
| | | /** |
| | | * 获得客户下全部回款的核销明细 |
| | | * |
| | | * @param customerId 客户编号 |
| | | * @return 核销明细列表(按回款倒序) |
| | | */ |
| | | List<CrmReceivableItemDO> getReceivableItemListByCustomerId(Long customerId); |
| | | |
| | | /** |
| | | * 获得回款 Map |
| | |
| | | Map<Long, BigDecimal> getReceivablePriceMapByContractId(Collection<Long> contractIds); |
| | | |
| | | /** |
| | | * 获得开票已回款金额 Map(草稿 + 审批中 + 审批通过) |
| | | * |
| | | * @param invoiceIds 开票编号 |
| | | * @return 已回款金额 Map |
| | | */ |
| | | Map<Long, BigDecimal> getReceivablePriceMapByInvoiceId(Collection<Long> invoiceIds); |
| | | |
| | | /** |
| | | * 根据合同编号查询回款数量 |
| | | * |
| | | * @param contractId 合同编号 |