【代码修复】CRM:获取已回款金额查询中审批状态标识问题
parent
0081f07a6b
commit
618eb0c21d
|
@ -92,7 +92,7 @@ public interface CrmReceivableMapper extends BaseMapperX<CrmReceivableDO> {
|
||||||
List<Map<String, Object>> result = selectMaps(new QueryWrapper<CrmReceivableDO>()
|
List<Map<String, Object>> result = selectMaps(new QueryWrapper<CrmReceivableDO>()
|
||||||
.select("contract_id, SUM(price) AS total_price")
|
.select("contract_id, SUM(price) AS total_price")
|
||||||
.in("audit_status", CrmAuditStatusEnum.DRAFT.getStatus(), // 草稿 + 审批中 + 审批通过
|
.in("audit_status", CrmAuditStatusEnum.DRAFT.getStatus(), // 草稿 + 审批中 + 审批通过
|
||||||
CrmAuditStatusEnum.PROCESS, CrmAuditStatusEnum.APPROVE.getStatus())
|
CrmAuditStatusEnum.PROCESS.getStatus(), CrmAuditStatusEnum.APPROVE.getStatus())
|
||||||
.groupBy("contract_id")
|
.groupBy("contract_id")
|
||||||
.in("contract_id", contractIds));
|
.in("contract_id", contractIds));
|
||||||
// 获得金额
|
// 获得金额
|
||||||
|
|
Loading…
Reference in New Issue