|
@@ -285,13 +285,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="getRechargeByDateSum" resultType="java.util.Map" parameterType="com.game.business.dto.FinTranRecordDTO">
|
|
<select id="getRechargeByDateSum" resultType="java.util.Map" parameterType="com.game.business.dto.FinTranRecordDTO">
|
|
select
|
|
select
|
|
|
|
|
|
- case ifnull(b.type,-2)
|
|
|
|
- when -2 then 4
|
|
|
|
- when 1 then 8085
|
|
|
|
- when 2 then 8086
|
|
|
|
- when 3 then 8087
|
|
|
|
- when 4 then 8084
|
|
|
|
- when 5 then 8088
|
|
|
|
|
|
+ case
|
|
|
|
+ when ifnull(b.type,-2) = -2 and a.type = 4 then 4
|
|
|
|
+ when ifnull(b.type,-2) = 1 then 8085
|
|
|
|
+ when ifnull(b.type,-2) = 2 then 8086
|
|
|
|
+ when ifnull(b.type,-2) = 3 then 8087
|
|
|
|
+ when ifnull(b.type,-2) = 4 then 8084
|
|
|
|
+ when ifnull(b.type,-2) = 5 then 8088
|
|
else -1
|
|
else -1
|
|
end as type,
|
|
end as type,
|
|
|
|
|