|
@@ -20,6 +20,7 @@ import com.zanxiang.game.module.manage.pojo.enums.AccountTypeEnum;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.AgentAddParam;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.AgentListParam;
|
|
|
import com.zanxiang.game.module.manage.pojo.vo.AgentAccountChoiceVO;
|
|
|
+import com.zanxiang.game.module.manage.pojo.vo.AgentChoiceVO;
|
|
|
import com.zanxiang.game.module.manage.pojo.vo.AgentVO;
|
|
|
import com.zanxiang.game.module.manage.pojo.vo.GameInfoVO;
|
|
|
import com.zanxiang.game.module.manage.service.IAgentService;
|
|
@@ -214,4 +215,11 @@ public class AgentServiceImpl extends ServiceImpl<AgentMapper, Agent> implements
|
|
|
.eq(!SecurityUtil.isManager(), Agent::getCreateBy, SecurityUtil.getUserId())
|
|
|
).stream().map(agent -> BeanUtil.copy(agent, AgentAccountChoiceVO.class)).collect(Collectors.toList());
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<AgentChoiceVO> agentChoiceList() {
|
|
|
+ return super.list(new LambdaQueryWrapper<Agent>()
|
|
|
+ .eq(!SecurityUtil.isManager(), Agent::getCreateBy, SecurityUtil.getUserId())
|
|
|
+ ).stream().map(agent -> BeanUtil.copy(agent, AgentChoiceVO.class)).collect(Collectors.toList());
|
|
|
+ }
|
|
|
}
|