Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
b36b6253
Commit
b36b6253
authored
Sep 10, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3477e1c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
UserModule.cs
Mall.Module.User/UserModule.cs
+10
-3
RB_Distributor_InfoRepository.cs
Mall.Repository/User/RB_Distributor_InfoRepository.cs
+5
-2
No files found.
Mall.Module.User/UserModule.cs
View file @
b36b6253
...
...
@@ -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
())
{
...
...
Mall.Repository/User/RB_Distributor_InfoRepository.cs
View file @
b36b6253
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment