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
5372c441
Commit
5372c441
authored
Aug 27, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ffd573c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
UserModule.cs
Mall.Module.User/UserModule.cs
+3
-2
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+9
-2
No files found.
Mall.Module.User/UserModule.cs
View file @
5372c441
...
...
@@ -4004,8 +4004,9 @@ namespace Mall.Module.User
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="demodel"></param>
/// <param name="NewUserId"></param>
/// <returns></returns>
public
object
GetUserMyTeamPageListForFX
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Distributor_Info_Extend
demodel
)
public
object
GetUserMyTeamPageListForFX
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Distributor_Info_Extend
demodel
,
int
NewUserId
=
0
)
{
string
UserIds
=
member_UserRepository
.
GetMemberChildIdStr
(
demodel
.
UserId
??
0
);
...
...
@@ -4028,7 +4029,7 @@ namespace Mall.Module.User
//获取消费金额 + 订单数量
var
oList
=
goods_OrderRepository
.
GetUserOrderNumAndMoney
(
userIds
,
demodel
.
TenantId
,
demodel
.
MallBaseId
);
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
.
Where
(
qitem
=>
qitem
.
Id
!=
NewUserId
)
)
{
int
tgNum
=
tList
.
Where
(
x
=>
x
.
SuperiorId
==
item
.
Id
).
FirstOrDefault
()?.
ReferralsNum
??
0
;
var
orderModel
=
oList
.
Where
(
x
=>
x
.
UserId
==
item
.
Id
).
FirstOrDefault
();
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
5372c441
...
...
@@ -690,8 +690,15 @@ namespace Mall.WebApi.Controllers.User
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
UserId
=
userInfo
.
UserId
;
var
list
=
userModule
.
GetUserMyTeamPageListForFX
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
count
,
demodel
);
int
NewUserId
=
0
;
//HK 2020-08-27新增
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
if
(
parms
.
GetInt
(
"NewUserId"
)
>
0
)
{
demodel
.
UserId
=
parms
.
GetInt
(
"NewUserId"
);
NewUserId
=
parms
.
GetInt
(
"NewUserId"
);
}
var
list
=
userModule
.
GetUserMyTeamPageListForFX
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
count
,
demodel
,
NewUserId
:
NewUserId
);
pageModel
.
count
=
Convert
.
ToInt32
(
count
);
pageModel
.
pageData
=
list
;
...
...
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