|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
SUM(pay_amount) AS total,
|
|
|
|
|
SUM(refund_amount) AS refund_fee
|
|
|
|
|
FROM statistics_bd_sales
|
|
|
|
|
WHERE isOrg = 1
|
|
|
|
|
WHERE isOrg = 1 AND org_id!=1
|
|
|
|
|
<if test="org_id != null">
|
|
|
|
|
AND org_id = #{org_id}
|
|
|
|
|
</if>
|
|
|
|
@ -59,8 +59,8 @@
|
|
|
|
|
AND org_id in
|
|
|
|
|
<foreach collection="org_ids" item="org_id" open="(" close=")" separator=",">#{org_id}</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
GROUP BY bd_id
|
|
|
|
|
ORDER BY total DESC
|
|
|
|
|
GROUP BY org_id
|
|
|
|
|
ORDER BY clearing_amount DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByBDIdAndLogDate" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|