fix: 补齐签名导入待审通知并展示通道组成本
This commit is contained in:
@@ -439,13 +439,17 @@ pendingAudits(tenantId?: string) {
|
||||
this.prisma.smsDrainageInfo.count({ where: { tenantId, auditStatus: 'pending' } }),
|
||||
this.prisma.enterpriseCertification.count({ where: { tenantId, status: 'pending' } }),
|
||||
this.prisma.smsSendTask.count({ where: { tenantId, status: 'pending_review' } }),
|
||||
]).then(([templates, signatures, drainageInfos, enterpriseCertifications, smsAudits]) => ({
|
||||
this.prisma.reportMaterialImportItem.count({
|
||||
where: { reportType: 'signature', status: 'pending_review', batch: { tenantId } },
|
||||
}),
|
||||
]).then(([templates, signatures, drainageInfos, enterpriseCertifications, smsAudits, signatureImports]) => ({
|
||||
templates,
|
||||
signatures,
|
||||
drainageInfos,
|
||||
enterpriseCertifications,
|
||||
smsAudits,
|
||||
total: templates + signatures + drainageInfos + enterpriseCertifications + smsAudits,
|
||||
signatureImports,
|
||||
total: templates + signatures + drainageInfos + enterpriseCertifications + smsAudits + signatureImports,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user