diff --git a/yudao-module-erp/src/main/resources/mapper/statistics/ErpPurchaseStatisticsMapper.xml b/yudao-module-erp/src/main/resources/mapper/statistics/ErpPurchaseStatisticsMapper.xml
index a88fb3a..2dce510 100644
--- a/yudao-module-erp/src/main/resources/mapper/statistics/ErpPurchaseStatisticsMapper.xml
+++ b/yudao-module-erp/src/main/resources/mapper/statistics/ErpPurchaseStatisticsMapper.xml
@@ -13,7 +13,8 @@
AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getTenantId()}
- AND deleted = 0) -
+ AND deleted = 0
+ AND status = 20) -
(SELECT IFNULL(SUM(total_price), 0)
FROM erp_purchase_return
WHERE return_time >= #{beginTime}
@@ -23,7 +24,8 @@
AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getTenantId()}
- AND deleted = 0)
+ AND deleted = 0
+ AND status = 20)
\ No newline at end of file
diff --git a/yudao-module-erp/src/main/resources/mapper/statistics/ErpSaleStatisticsMapper.xml b/yudao-module-erp/src/main/resources/mapper/statistics/ErpSaleStatisticsMapper.xml
index 3e04ee7..db89efa 100644
--- a/yudao-module-erp/src/main/resources/mapper/statistics/ErpSaleStatisticsMapper.xml
+++ b/yudao-module-erp/src/main/resources/mapper/statistics/ErpSaleStatisticsMapper.xml
@@ -13,7 +13,8 @@
AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getTenantId()}
- AND deleted = 0) -
+ AND deleted = 0
+ AND status = 20) -
(SELECT IFNULL(SUM(total_price), 0)
FROM erp_sale_return
WHERE return_time >= #{beginTime}
@@ -23,7 +24,8 @@
AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getTenantId()}
- AND deleted = 0)
+ AND deleted = 0
+ AND status = 20)
\ No newline at end of file