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
e41509dd
Commit
e41509dd
authored
Sep 09, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
56c1f811
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
UserModule.cs
Mall.Module.User/UserModule.cs
+9
-2
RB_Distributor_InfoRepository.cs
Mall.Repository/User/RB_Distributor_InfoRepository.cs
+15
-3
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+5
-2
No files found.
Mall.Module.User/UserModule.cs
View file @
e41509dd
...
...
@@ -3980,12 +3980,19 @@ namespace Mall.Module.User
/// 获取粉象我的团队标题列表
/// </summary>
/// <param name="userInfo"></param>
/// <param name="IsDirect">默认查询直属下线</param>
/// <returns></returns>
public
object
GerUserMyTeamTitelListForFX
(
AppletUserInfo
userInfo
)
public
object
GerUserMyTeamTitelListForFX
(
AppletUserInfo
userInfo
,
int
IsDirect
=
1
)
{
string
UserIds
=
member_UserRepository
.
GetMemberChildIdStr
(
userInfo
.
UserId
);
//获取下级所有等级
var
disList
=
distributor_InfoRepository
.
GetFXGreadeListForMyTeam
(
new
RB_Distributor_Info_Extend
()
{
UserIds
=
UserIds
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
});
var
disList
=
distributor_InfoRepository
.
GetFXGreadeListForMyTeam
(
new
RB_Distributor_Info_Extend
()
{
UserIds
=
UserIds
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
IsDirect
=
IsDirect
});
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 @
e41509dd
...
...
@@ -177,10 +177,19 @@ where {where} order by di.CreateDate desc";
{
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
AuditStatus
)}
=
{(
int
)
dmodel
.
AuditStatus
}
"
;
}
if
(
!
string
.
IsNullOrEmpty
(
dmodel
.
UserIds
)
)
if
(
dmodel
.
IsDirect
==
1
)
{
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
UserId
)}
in(
{
dmodel
.
UserIds
}
)"
;
//查找直属下级
where
+=
$@" and u.
{
nameof
(
RB_Member_User
.
SuperiorId
)}
=
{
dmodel
.
Id
}
"
;
}
else
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
UserIds
))
{
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
UserId
)}
in(
{
dmodel
.
UserIds
}
)"
;
}
}
if
(
dmodel
.
GradeId
>=
0
)
{
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
GradeId
)}
=
{
dmodel
.
GradeId
}
"
;
...
...
@@ -190,7 +199,10 @@ where {where} order by di.CreateDate desc";
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
Name
)}
like '%
{
dmodel
.
Name
}
%'"
;
}
string
sql
=
$@"select di.FXGradeId,count(0) as OneNum from RB_Distributor_Info di where
{
where
}
group by di.FXGradeId"
;
string
sql
=
$@"
select di.FXGradeId,count(0) as OneNum
from RB_Distributor_Info di LEFT JOIN rb_member_user AS u ON di.UserId=u.Id
where
{
where
}
group by di.FXGradeId"
;
return
Get
<
RB_Distributor_Info_Extend
>(
sql
).
ToList
();
}
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
e41509dd
...
...
@@ -671,8 +671,11 @@ namespace Mall.WebApi.Controllers.User
public
ApiResult
GerUserMyTeamTitelListForFX
()
{
var
userInfo
=
AppletUserInfo
;
var
obj
=
userModule
.
GerUserMyTeamTitelListForFX
(
userInfo
);
var
req
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
//是否直属
int
IsDirect
=
parms
.
GetInt
(
"IsDirect"
,
1
);
var
obj
=
userModule
.
GerUserMyTeamTitelListForFX
(
userInfo
,
IsDirect
:
IsDirect
);
return
ApiResult
.
Success
(
""
,
obj
);
}
...
...
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