Forráskód Böngészése

feat : 推广渠道接口调试修改

bilingfeng 2 éve
szülő
commit
3a7fcb2b66

+ 6 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/domain/vo/PromoChannelListVO.java

@@ -101,6 +101,12 @@ public class PromoChannelListVO {
      * 推广账号类型
      */
     @ApiModelProperty(notes = "推广账号类型")
+    private Integer accountType;
+
+    /**
+     * 推广账号类型名称
+     */
+    @ApiModelProperty(notes = "推广账号类型名称")
     private String accountTypeName;
 
     /**

+ 3 - 2
game-module/game-manage/src/main/java/com/zanxiang/manage/service/Impl/PromoChannelServiceImpl.java

@@ -95,6 +95,7 @@ public class PromoChannelServiceImpl extends ServiceImpl<PromoChannelMapper, Pro
             promoChannelListVO.setPitcherGroupId(promoAccountDTO.getPitcherGroupId());
             promoChannelListVO.setPitcherGroupName(promoAccountDTO.getPitcherGroupName());
             promoChannelListVO.setAccountName(promoAccountDTO.getName());
+            promoChannelListVO.setAccountType(promoAccountDTO.getAccountType());
             promoChannelListVO.setAccountTypeName(PromoAccountTypeEnum.getNameByType(promoAccountDTO.getAccountType()));
         }
         PromoMediaDTO promoMediaDTO = promoMediaMap.get(promoChannelListVO.getMediaId());
@@ -107,10 +108,10 @@ public class PromoChannelServiceImpl extends ServiceImpl<PromoChannelMapper, Pro
             promoChannelListVO.setPlateSite(promoSiteDTO.getPlateSite());
         }
         GameDTO gameDTO = gameMap.get(promoChannelListVO.getGameId());
-        if (gameDTO != null){
+        if (gameDTO != null) {
             promoChannelListVO.setGameName(gameDTO.getName());
             GameCategoryDTO gameCategoryDTO = gameCategoryMap.get(gameDTO.getCategory());
-            if (gameCategoryDTO != null){
+            if (gameCategoryDTO != null) {
                 promoChannelListVO.setGameCategory(gameCategoryDTO.getId());
                 promoChannelListVO.setGameCategoryName(gameCategoryDTO.getName());
             }