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