|
@@ -298,7 +298,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select
|
|
|
|
|
|
case
|
|
|
- when ifnull(b.type,-2) = -2 and a.type = 4 then 4
|
|
|
+ when ifnull(b.type,-2) = -2 and a.type = 4 and a.channel_id is null then 5
|
|
|
+ when ifnull(b.type,-2) = -2 and a.type = 4 and a.channel_id is not null 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
|
|
@@ -321,7 +322,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ifnull(sum(case when a.coin_type = 1 and a.rule_id = 0 then a.coin else 0.00 end) ,0.00) as actualDiamondCoinDownSum,
|
|
|
ifnull(sum(case when a.coin_type = 1 and a.rule_id = 0 then a.platform_service else 0.00 end) ,0.00) as platformServiceDiamondCoinDownSum
|
|
|
|
|
|
- from app_users_charge as a left join app_charge_channel as b on a.type = b.channel_no where a.status = 1
|
|
|
+ from (
|
|
|
+ SELECT
|
|
|
+ coin_type,
|
|
|
+ rule_id,
|
|
|
+ platform_service,
|
|
|
+ coin,
|
|
|
+ STATUS,
|
|
|
+ addtime,
|
|
|
+ channel_id,
|
|
|
+ type,
|
|
|
+ CASE WHEN channel_id IS NULL THEN 1 ELSE 2 END channelType
|
|
|
+ FROM
|
|
|
+ app_users_charge
|
|
|
+ ) as a left join app_charge_channel as b on a.type = b.channel_no where a.status = 1
|
|
|
|
|
|
<if test="userId != null">
|
|
|
and a.uid = #{userId}
|
|
@@ -329,7 +343,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
|
|
and (date_format(a.addtime, '%Y-%m-%d') >= #{beginTime} and date_format(a.addtime, '%Y-%m-%d') <= #{endTime})
|
|
|
</if>
|
|
|
- group by b.type
|
|
|
+ group by b.type,a.channelType
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTranList" parameterType="com.game.business.dto.FinTranDto" resultType="com.game.business.vo.FinTranVo">
|