From dbe16afddfa61fe868a8518d031f341b3d8b4802 Mon Sep 17 00:00:00 2001 From: sdif <xiaoping_0000@163.com> Date: Tue, 10 Oct 2023 19:53:45 +0800 Subject: [PATCH] 修改统计条件 --- pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml b/pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml index 14572a7..bb08db5 100644 --- a/pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml +++ b/pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml @@ -100,7 +100,7 @@ <select id="selectOrderQuantity" resultType="com.pz.system.domain.vo.DataOrderVo"> SELECT count(total_order.id) as dataSum FROM total_order left join employees on employees.id = total_order.em_id left join company on company.id = employees.company_id - WHERE total_order.`status` != 0 and total_order.refund_amount = 0 and total_order.em_id !=0 + WHERE total_order.`status` != 0 <if test="dataViewBo.userId != null"> and company.uid = #{dataViewBo.userId} </if> -- libgit2 0.26.0