|
|
@@ -566,20 +566,6 @@
|
|
|
sum(if(a.sales_type=3,1,0 ))channelSignNumber,sum(if(a.sales_type > 5,1,0 ))repeatSignNumber
|
|
|
from t_order_new a left join user b on b.id=a.buyer_id
|
|
|
where a.process_status >4 and b.share_type =2 and a.delete_sign in(0,2)
|
|
|
- <if test="amountType != null">
|
|
|
- <if test="amountType == 1">
|
|
|
- and a.total_amount < 10
|
|
|
- </if>
|
|
|
- <if test="amountType == 2">
|
|
|
- and a.total_amount BETWEEN 10 and 20
|
|
|
- </if>
|
|
|
- <if test="amountType == 3">
|
|
|
- and a.total_amount BETWEEN 20 and 30
|
|
|
- </if>
|
|
|
- <if test="amountType == 4">
|
|
|
- and a.total_amount > 30
|
|
|
- </if>
|
|
|
- </if>
|
|
|
<if test="signTimeStart != null and signTimeEnd!=null">
|
|
|
and a.sign_time BETWEEN #{signTimeStart} and #{signTimeEnd}
|
|
|
</if>
|
|
|
@@ -591,6 +577,20 @@
|
|
|
<if test="depId != null">
|
|
|
and a.department_id = #{depId}
|
|
|
</if>
|
|
|
+ <if test="amountType != null">
|
|
|
+ <if test="amountType == 1">
|
|
|
+ and totalAmount < 10
|
|
|
+ </if>
|
|
|
+ <if test="amountType == 2">
|
|
|
+ and totalAmount BETWEEN 10 and 20
|
|
|
+ </if>
|
|
|
+ <if test="amountType == 3">
|
|
|
+ and totalAmount BETWEEN 20 and 30
|
|
|
+ </if>
|
|
|
+ <if test="amountType == 4">
|
|
|
+ and totalAmount > 30
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|