Commit b36b6253 authored by 黄奎's avatar 黄奎

页面修改

parent 3477e1c1
......@@ -3984,15 +3984,22 @@ namespace Mall.Module.User
/// <returns></returns>
public object GerUserMyTeamTitelListForFX(AppletUserInfo userInfo,int IsDirect=1)
{
userInfo.UserId = 21382;
string UserIds = member_UserRepository.GetMemberChildIdStr(userInfo.UserId);
//获取下级所有等级
var disList = distributor_InfoRepository.GetFXGreadeListForMyTeam(new RB_Distributor_Info_Extend()
var query = new RB_Distributor_Info_Extend()
{
UserIds = UserIds,
TenantId = userInfo.TenantId,
MallBaseId = userInfo.MallBaseId,
IsDirect = IsDirect
});
};
//查询直属下线
if (IsDirect == 1)
{
query.SuperiorId = userInfo.UserId;
}
//获取下级所有等级
var disList = distributor_InfoRepository.GetFXGreadeListForMyTeam(query);
var fxList = new List<RB_Distributor_FXGrade_Extend>();
if (disList.Where(x => x.FXGradeId > 0).Any())
{
......
......@@ -179,8 +179,11 @@ where {where} order by di.CreateDate desc";
}
if (dmodel.IsDirect == 1)
{
//查找直属下级
where += $@" and u.{nameof(RB_Member_User.SuperiorId)}={dmodel.Id}";
if (dmodel.SuperiorId > 0)
{
//查找直属下级
where += $@" and u.{nameof(RB_Member_User.SuperiorId)}={dmodel.SuperiorId}";
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment