Pārlūkot izejas kodu

角色充值排行榜添加超父

Letianhua 1 gadu atpakaļ
vecāks
revīzija
41c4d1c828

+ 7 - 1
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/pojo/dto/RoleRechargeRankingDTO.java

@@ -43,7 +43,13 @@ public class RoleRechargeRankingDTO extends BasePage {
      * 父游戏ID
      */
     @ApiModelProperty(value = "父游戏ID")
-    private List<Long> parentGameId;
+    private List<Long> parentGameIds;
+
+    /**
+     * 超父游戏ID
+     */
+    @ApiModelProperty(value = "超父游戏ID")
+    private Long superGameId;
 
     /**
      * 区服ID(列表)

+ 6 - 2
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/RoleManageServiceImpl.java

@@ -58,9 +58,13 @@ public class RoleManageServiceImpl implements IRoleManageService {
             //角色注册子游戏
             criA.where().andInList("role_reg_game_id", dto.getGameId());
         }
-        if (CollectionUtils.isNotEmpty(dto.getParentGameId())) {
+        if (CollectionUtils.isNotEmpty(dto.getParentGameIds())) {
             //角色注册父游戏
-            criA.where().andInList("role_reg_parent_game_id", dto.getParentGameId());
+            criA.where().andInList("role_reg_parent_game_id", dto.getParentGameIds());
+        }
+        if (dto.getSuperGameId() != null) {
+            //角色注册超父游戏
+            criA.where().andEquals("role_reg_super_game_id", dto.getSuperGameId());
         }
         if (StringUtils.isNotBlank(dto.getSourceSystem())) {
             criA.where().andEquals("source_system", dto.getSourceSystem());