Browse Source

扩展接口查询条件

dos 3 months ago
parent
commit
7224a51f92

+ 2 - 2
game-business/src/main/java/com/game/business/dto/AppAgentTeamDto.java

@@ -31,8 +31,8 @@ public class AppAgentTeamDto implements Serializable {
     @ApiModelProperty(value = "结束时间 格式yyyy-MM-dd")
     private String endTime;
 
-    @JsonIgnore
-    private long pid;
+    @ApiModelProperty(value = "上级id")
+    private Long pid;
 
     /** 当前记录起始索引 */
     @ApiModelProperty(value = "页数")

+ 3 - 1
game-business/src/main/java/com/game/business/service/impl/AppUserAgentServiceImpl.java

@@ -189,7 +189,9 @@ public class AppUserAgentServiceImpl extends ServiceImpl<AppUserAgentMapper, App
 
     @Override
     public List<AppAgentTeamVo> teamList(AppAgentTeamDto teamDto) {
-        teamDto.setPid(SecurityUtils.getUserId());
+        if(null == teamDto.getPid()) {
+            teamDto.setPid(SecurityUtils.getUserId());
+        }
         List<AppAgentTeamVo> list = appUserAgentMapper.teamList(teamDto);
         if(null != list && list.size() > 0){
             List<Long> ids = list.stream().map(e->{return e.getUserId();}).collect(Collectors.toList());