فهرست منبع

Merge branch 'dev' of GameCenter/game-center into master

zhimo 1 سال پیش
والد
کامیت
fdae935e8e

+ 17 - 11
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/RoleManageServiceImpl.java

@@ -85,25 +85,31 @@ public class RoleManageServiceImpl implements IRoleManageService {
             criA.where().andEquals("is_change_game_type", dto.getIsChange());
         }
         if (StringUtils.isNotBlank(dto.getWeChatCompany())) {
-            criA.where().andLike("we_chat_company", dto.getWeChatCompany());
+            //企业微信号
+            criA.where().andLike("add_corp_user_id", dto.getWeChatCompany());
         }
         if (StringUtils.isNotBlank(dto.getWeChat())) {
-            criA.where().andLike("we_chat", dto.getWeChat());
+            //客户微信
+            criA.where().andLike("user_wechat", dto.getWeChat());
         }
         if (StringUtils.isNotBlank(dto.getPhone())) {
-            criA.where().andEquals("phone", dto.getPhone());
+            //客户手机号
+            criA.where().andEquals("user_phone", dto.getPhone());
         }
         if (dto.getGsId() != null) {
             criA.where().andEquals("gs_id", dto.getGsId());
         }
         if (dto.getPitcherId() != null) {
-            criA.where().andEquals("pitcher_id", dto.getPitcherId());
+            //投手
+            criA.where().andEquals("put_user_id", dto.getPitcherId());
         }
         if (dto.getOperatorId() != null) {
-            criA.where().andEquals("operator_id", dto.getOperatorId());
+            //运营
+            criA.where().andEquals("oper_user_id", dto.getOperatorId());
         }
         if (dto.getCustomerServerId() != null) {
-            criA.where().andEquals("customer_server_id", dto.getCustomerServerId());
+            //客服
+            criA.where().andEquals("customer_service_id", dto.getCustomerServerId());
         }
         //给充值时间查询条件
         Criteria criTodayAmount = Cnd.cri();
@@ -667,16 +673,16 @@ public class RoleManageServiceImpl implements IRoleManageService {
                 		i.user_pay_time as user_pay_time, -- 玩家最近充值时间
                 		TIMESTAMPDIFF(SECOND, i.user_create_time, i.user_pay_time) as user_reg_pay_time, -- 玩家注册充值时间差(秒)
                 		TIMESTAMPDIFF(SECOND, i.user_pay_time, NOW()) as user_pay_until_now, -- 玩家最近充值距今(秒)
-                		j.is_send_mail as is_send_mail, -- 是否发送邮件
+                		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, -- 礼包名
-                		j.is_change_game_type as is_change_game_type, -- 是否转端 1-是;0-否
-                		j.is_add_corp_wechat as is_add_corp_wechat, -- 是否添加企微 1-是; 0-否
+                		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.add_corp_user_id as add_corp_user_id, -- 企微号
                 		j.user_wechat as user_wechat, -- 客户微信号
                 		j.user_phone as user_phone, -- 客户手机号
-                		j.is_remove_game as is_remove_game, -- 是否退游 1-是;0-否
-                		j.is_wake_up as is_wake_up, -- 是否唤醒 1-是;0-否
+                		IFNULL(j.is_remove_game, 0) as is_remove_game, -- 是否退游 1-是;0-否
+                		IFNULL(j.is_wake_up, 0) 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

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -21,7 +21,7 @@ public class ManageApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <新增获取全量区服接口3> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <新增获取全量区服接口4> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 1 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/GameServerServiceImpl.java

@@ -132,6 +132,7 @@ public class GameServerServiceImpl extends ServiceImpl<GameServerMapper, GameSer
                 .le(param.getEndTime() != null, GameServer::getStartTime, param.getEndTime() == null ? null : LocalDateTime.of(param.getEndTime(), LocalTime.MAX))
                 .eq(param.getIsSourceServer() != null, GameServer::getIsSourceServer, param.getIsSourceServer())
                 .orderByDesc(GameServer::getStartTime)
+                .orderByDesc(GameServer::getCreateTime)
         ).convert(this::toVo);
     }