|
@@ -82,15 +82,21 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
//角色创建时间
|
|
|
criA.where().andBetween("DATE(role_create_time)", dto.getCreateRoleBeginDate(), dto.getCreateRoleEndDate());
|
|
|
}
|
|
|
- if (dto.getVipLevel() != null) {
|
|
|
- criA.where().andEquals("vip_level", dto.getVipLevel());
|
|
|
+ if (CollectionUtils.isNotEmpty(dto.getVipLevel())) {
|
|
|
+ //角色vip等级
|
|
|
+ criA.where().andInList("vip_level", dto.getVipLevel());
|
|
|
}
|
|
|
if (dto.getIsSendMail() != null) {
|
|
|
criA.where().andEquals("is_send_mail", dto.getIsSendMail());
|
|
|
}
|
|
|
if (dto.getIsChange() != null) {
|
|
|
- //是否转端
|
|
|
- criA.where().andEquals("is_change_game_type", dto.getIsChange());
|
|
|
+ if (dto.getIsChange() == 2) {
|
|
|
+ //是否转端
|
|
|
+ criA.where().andIsNull("is_change_game_type");
|
|
|
+ } else {
|
|
|
+ //是否转端
|
|
|
+ criA.where().andEquals("is_change_game_type", dto.getIsChange());
|
|
|
+ }
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getWeChatCompany())) {
|
|
|
//企业微信号
|
|
@@ -128,20 +134,35 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
criA.where().andLTE("amount", dto.getTotalRechargeMax());
|
|
|
}
|
|
|
if (dto.getIsRemoveGame() != null) {
|
|
|
- //是否退游
|
|
|
- criA.where().andEquals("is_remove_game", dto.getIsRemoveGame());
|
|
|
+ if (dto.getIsRemoveGame() == 2) {
|
|
|
+ //是否退游
|
|
|
+ criA.where().andIsNull("is_remove_game");
|
|
|
+ } else {
|
|
|
+ //是否退游
|
|
|
+ criA.where().andEquals("is_remove_game", dto.getIsRemoveGame());
|
|
|
+ }
|
|
|
}
|
|
|
if (dto.getIsRemoveGameForSystem() != null) {
|
|
|
//是否退游(系统判定)
|
|
|
criA.where().andEquals("is_remove_game_for_system", dto.getIsRemoveGameForSystem());
|
|
|
}
|
|
|
if (dto.getIsWakeUp() != null) {
|
|
|
- //是否唤醒
|
|
|
- criA.where().andEquals("is_wake_up", dto.getIsWakeUp());
|
|
|
+ if (dto.getIsWakeUp() == 2) {
|
|
|
+ //是否唤醒
|
|
|
+ criA.where().andIsNull("is_wake_up");
|
|
|
+ } else {
|
|
|
+ //是否唤醒
|
|
|
+ criA.where().andEquals("is_wake_up", dto.getIsWakeUp());
|
|
|
+ }
|
|
|
}
|
|
|
if (dto.getIsAddCorpWechat() != null) {
|
|
|
- //是否添加企微
|
|
|
- criA.where().andEquals("is_add_corp_wechat", dto.getIsAddCorpWechat());
|
|
|
+ if (dto.getIsAddCorpWechat() == 2) {
|
|
|
+ //是否添加企微
|
|
|
+ criA.where().andIsNull("is_add_corp_wechat");
|
|
|
+ } else {
|
|
|
+ //是否添加企微
|
|
|
+ criA.where().andEquals("is_add_corp_wechat", dto.getIsAddCorpWechat());
|
|
|
+ }
|
|
|
}
|
|
|
//给充值时间查询条件
|
|
|
Criteria criTodayAmount = Cnd.cri();
|