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
d44a24cb
Commit
d44a24cb
authored
Aug 18, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的团队 数量
parent
5fc637e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
UserModule.cs
Mall.Module.User/UserModule.cs
+9
-0
RB_Distributor_InfoRepository.cs
Mall.Repository/User/RB_Distributor_InfoRepository.cs
+1
-1
No files found.
Mall.Module.User/UserModule.cs
View file @
d44a24cb
...
...
@@ -3868,11 +3868,20 @@ namespace Mall.Module.User
string
fxgradeIds
=
string
.
Join
(
","
,
disList
.
Select
(
x
=>
x
.
FXGradeId
));
fxList
=
distributor_FXGradeRepository
.
GetList
(
new
RB_Distributor_FXGrade_Extend
()
{
GradeIds
=
fxgradeIds
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
});
fxList
=
fxList
.
OrderByDescending
(
x
=>
x
.
Grade
).
ToList
();
//倒序 最大的拍前面
foreach
(
var
item
in
fxList
)
{
var
dismodel
=
disList
.
Where
(
x
=>
x
.
FXGradeId
==
item
.
Id
).
FirstOrDefault
();
item
.
GradeName
+=
" ("
+
(
dismodel
?.
OneNum
??
0
)
+
")"
;
}
}
else
{
//增加一个 普通会员等级
fxList
=
distributor_FXGradeRepository
.
GetList
(
new
RB_Distributor_FXGrade_Extend
()
{
IsGuest
=
1
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
});
foreach
(
var
item
in
fxList
)
{
item
.
GradeName
+=
" (0)"
;
}
}
return
fxList
.
Select
(
x
=>
new
{
...
...
Mall.Repository/User/RB_Distributor_InfoRepository.cs
View file @
d44a24cb
...
...
@@ -190,7 +190,7 @@ where {where} order by di.CreateDate desc";
where
+=
$@" and di.
{
nameof
(
RB_Distributor_Info
.
Name
)}
like '%
{
dmodel
.
Name
}
%'"
;
}
string
sql
=
$@"select di.FXGradeId 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 where
{
where
}
group by di.FXGradeId"
;
return
Get
<
RB_Distributor_Info_Extend
>(
sql
).
ToList
();
}
...
...
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