[Y] fix bd prize bug

master
taylor.dang 5 years ago
parent ee863ce2f1
commit c86d277cf0

@ -64,8 +64,8 @@
<![CDATA[ <![CDATA[
SELECT ifnull(sum(if(l.transaction_type = 'Credit',l.clearing_amount,-l.clearing_amount)), 0) SELECT ifnull(sum(if(l.transaction_type = 'Credit',l.clearing_amount,-l.clearing_amount)), 0)
FROM pmt_transactions l FROM pmt_transactions l
INNER JOIN pmt_orders o ON o.order_id = l.order_id AND c.create_time >= #{begin} AND INNER JOIN pmt_orders o ON o.order_id = l.order_id AND o.create_time >= #{begin} AND
c.create_time <= #{end} o.create_time <= #{end}
WHERE (l.transaction_type = 'Credit' or l.refund_id is not null) WHERE (l.transaction_type = 'Credit' or l.refund_id is not null)
]]> ]]>
<if test="client_ids!=null"> <if test="client_ids!=null">
@ -1081,4 +1081,4 @@
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save