|
@@ -127,6 +127,10 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
//累计充值金额最大值
|
|
|
criA.where().andLTE("amount", dto.getTotalRechargeMax());
|
|
|
}
|
|
|
+ if (dto.getIsRemoveGame() != null) {
|
|
|
+ //是否退游
|
|
|
+ criA.where().andEquals("is_remove_game", dto.getIsRemoveGame());
|
|
|
+ }
|
|
|
//给充值时间查询条件
|
|
|
Criteria criTodayAmount = Cnd.cri();
|
|
|
//查询充值成功的
|
|
@@ -545,6 +549,10 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
dao.execute(countSql);
|
|
|
pager.setRecordCount(countSql.getInt());
|
|
|
//排序条件
|
|
|
+ if ("min_server_start_days".equals(dto.getSortFiled())) {
|
|
|
+ //原始区服没有 最小区服排序条件
|
|
|
+ dto.setSortFiled(null);
|
|
|
+ }
|
|
|
if (StringUtils.isBlank(dto.getSortType())) {
|
|
|
dto.setSortType(OrderByEnum.DESC.getOrderType());
|
|
|
}
|
|
@@ -826,6 +834,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
IF(i.agent_id = 0 , '自然量', i.agent_name) as agent_name, -- 玩家注册渠道名
|
|
|
i.put_user_id as put_user_id, -- 投手id
|
|
|
i.user_active_time as user_active_time, -- 玩家最近活跃时间
|
|
|
+ TIMESTAMPDIFF(SECOND, i.user_active_time, NOW()) as user_active_until_now, -- 玩家最近活跃距今(秒)
|
|
|
i.user_last_recharge_game_id as user_last_recharge_game_id, -- 玩家最近充值游戏id
|
|
|
i.user_last_recharge_game_name as user_last_recharge_game_name, -- 玩家最近充值游戏名
|
|
|
i.user_pay_time as user_pay_time, -- 玩家最近充值时间
|
|
@@ -834,13 +843,15 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
IFNULL(j.is_send_mail, 0) as is_send_mail, -- 是否发送邮件
|
|
|
j.send_gift_id as send_gift_id, -- 最新发送礼包id
|
|
|
k.gift_name as gift_name, -- 礼包名
|
|
|
- IFNULL(j.is_change_game_type, 0) as is_change_game_type, -- 是否转端 1-是;0-否
|
|
|
- IFNULL(j.is_add_corp_wechat, 0) as is_add_corp_wechat, -- 是否添加企微 1-是; 0-否
|
|
|
+ j.is_change_game_type as is_change_game_type, -- 是否转端 1-是;0-否
|
|
|
+ j.is_add_corp_wechat as is_add_corp_wechat, -- 是否添加企微 1-是; 0-否
|
|
|
j.add_corp_user_id as add_corp_user_id, -- 企微号
|
|
|
j.user_wechat as user_wechat, -- 客户微信号
|
|
|
j.user_phone as user_phone, -- 客户手机号
|
|
|
- IFNULL(j.is_remove_game, 0) as is_remove_game, -- 是否退游 1-是;0-否
|
|
|
- IFNULL(j.is_wake_up, 0) as is_wake_up, -- 是否唤醒 1-是;0-否
|
|
|
+ IFNULL(j.is_remove_game,
|
|
|
+ IF(TIMESTAMPDIFF(HOUR, g.update_time, NOW()) > 72,
|
|
|
+ IF(TIMESTAMPDIFF(HOUR, f.pay_time, NOW()) < 72 , NULL, 1) , NULL)) as is_remove_game, -- 是否退游 1-是;0-否;NULL-未操作过的数据(也代表未退游)
|
|
|
+ j.is_wake_up as is_wake_up, -- 是否唤醒 1-是;0-否
|
|
|
j.remark as remark, -- 备注
|
|
|
j.gs_id as gs_id, -- GS_ID
|
|
|
j.customer_service_id as customer_service_id, -- 客服ID
|
|
@@ -1197,6 +1208,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
IF(i.agent_id = 0 , '自然量', i.agent_name) as agent_name, -- 玩家注册渠道名
|
|
|
i.put_user_id as put_user_id, -- 投手id
|
|
|
i.user_active_time as user_active_time, -- 玩家最近活跃时间
|
|
|
+ TIMESTAMPDIFF(SECOND, i.user_active_time, NOW()) as user_active_until_now, -- 玩家最近活跃距今(秒)
|
|
|
i.user_last_recharge_game_id as user_last_recharge_game_id, -- 玩家最近充值游戏id
|
|
|
i.user_last_recharge_game_name as user_last_recharge_game_name, -- 玩家最近充值游戏名
|
|
|
i.user_pay_time as user_pay_time, -- 玩家最近充值时间
|
|
@@ -1205,13 +1217,15 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
IFNULL(j.is_send_mail, 0) as is_send_mail, -- 是否发送邮件
|
|
|
j.send_gift_id as send_gift_id, -- 最新发送礼包id
|
|
|
k.gift_name as gift_name, -- 礼包名
|
|
|
- IFNULL(j.is_change_game_type, 0) as is_change_game_type, -- 是否转端 1-是;0-否
|
|
|
- IFNULL(j.is_add_corp_wechat, 0) as is_add_corp_wechat, -- 是否添加企微 1-是; 0-否
|
|
|
+ j.is_change_game_type as is_change_game_type, -- 是否转端 1-是;0-否
|
|
|
+ j.is_add_corp_wechat as is_add_corp_wechat, -- 是否添加企微 1-是; 0-否
|
|
|
j.add_corp_user_id as add_corp_user_id, -- 企微号
|
|
|
j.user_wechat as user_wechat, -- 客户微信号
|
|
|
j.user_phone as user_phone, -- 客户手机号
|
|
|
- IFNULL(j.is_remove_game, 0) as is_remove_game, -- 是否退游 1-是;0-否
|
|
|
- IFNULL(j.is_wake_up, 0) as is_wake_up, -- 是否唤醒 1-是;0-否
|
|
|
+ IFNULL(j.is_remove_game,
|
|
|
+ IF(TIMESTAMPDIFF(HOUR, g.update_time, NOW()) > 72,
|
|
|
+ IF(TIMESTAMPDIFF(HOUR, f.pay_time, NOW()) < 72 , NULL, 1) , NULL)) as is_remove_game, -- 是否退游 1-是;0-否;-1-未操作过的数据(也代表未退游)
|
|
|
+ j.is_wake_up as is_wake_up, -- 是否唤醒 1-是;0-否
|
|
|
j.remark as remark, -- 备注
|
|
|
j.gs_id as gs_id, -- GS_ID
|
|
|
j.customer_service_id as customer_service_id, -- 客服ID
|