Commit dbe16afd by sdif

修改统计条件

parent cc4b5bd5
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<select id="selectOrderQuantity" resultType="com.pz.system.domain.vo.DataOrderVo"> <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 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 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"> <if test="dataViewBo.userId != null">
and company.uid = #{dataViewBo.userId} and company.uid = #{dataViewBo.userId}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment