|
|
@@ -435,15 +435,18 @@
|
|
|
</if>
|
|
|
<if test="order.type != null and order.type == 0">
|
|
|
and o.bs_type = 'XS'
|
|
|
+ GROUP BY
|
|
|
+ o.saler_id,
|
|
|
+ o.customer_id,
|
|
|
+ DATE_FORMAT(o.busines_date,'%Y-%m')
|
|
|
</if>
|
|
|
<if test="order.type != null and order.type == 1">
|
|
|
and o.bs_type = 'CG'
|
|
|
+ GROUP BY
|
|
|
+ o.customer_id,
|
|
|
+ DATE_FORMAT(o.busines_date,'%Y-%m')
|
|
|
</if>
|
|
|
- GROUP BY
|
|
|
- o.saler_id,o.customer_id,
|
|
|
- DATE_FORMAT(
|
|
|
- o.busines_date,
|
|
|
- '%Y-%m')
|
|
|
+
|
|
|
ORDER BY o.saler_name,o.customer_name,
|
|
|
DATE_FORMAT(
|
|
|
o.busines_date,
|
|
|
@@ -498,15 +501,18 @@
|
|
|
</if>
|
|
|
<if test="order.type != null and order.type == 0">
|
|
|
and o.bs_type = 'XS'
|
|
|
+ GROUP BY
|
|
|
+ o.saler_id,
|
|
|
+ o.customer_id,
|
|
|
+ DATE_FORMAT(o.busines_date,'%Y-%m')
|
|
|
</if>
|
|
|
<if test="order.type != null and order.type == 1">
|
|
|
and o.bs_type = 'CG'
|
|
|
+ GROUP BY
|
|
|
+ o.customer_id,
|
|
|
+ DATE_FORMAT(o.busines_date,'%Y-%m')
|
|
|
</if>
|
|
|
- GROUP BY
|
|
|
- o.saler_id,o.customer_id,
|
|
|
- DATE_FORMAT(
|
|
|
- o.busines_date,
|
|
|
- '%Y-%m')
|
|
|
+
|
|
|
ORDER BY o.saler_name,o.customer_name,
|
|
|
DATE_FORMAT(
|
|
|
o.busines_date,
|