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
b22f966d
Commit
b22f966d
authored
Aug 06, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返佣调整
parent
61ed4acc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
28 deletions
+73
-28
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+5
-5
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+67
-22
RB_Vip_BuyRepository.cs
Mall.Repository/User/RB_Vip_BuyRepository.cs
+1
-1
No files found.
Mall.Module.Product/OrderModule.cs
View file @
b22f966d
...
...
@@ -3704,9 +3704,9 @@ namespace Mall.Module.Product
int
MaxGrade
=
fxNumList
.
Max
(
x
=>
x
.
Grade
);
if
(
FXGModel
.
Grade
<
MaxGrade
)
{
//后面的全部不返佣
UserId
=
0
;
break
;
//后面的全部不返佣
2020-08-06 刘东 继续找下一级返佣
UserId
=
numodel
.
SuperiorId
??
0
;
continue
;
}
int
MaxGradeNum
=
fxNumList
.
Where
(
x
=>
x
.
Grade
==
FXGModel
.
Grade
).
Count
();
int
MaxGradeId
=
fxNumList
.
Where
(
x
=>
x
.
Grade
==
MaxGrade
).
FirstOrDefault
()?.
GradeId
??
0
;
...
...
@@ -3803,7 +3803,7 @@ namespace Mall.Module.Product
{
//后面的全部不返佣
UserId
=
0
;
break
;
numodel
=
n1umodel
;
//继续查找下一级 2020-08-06 刘东
}
else
if
(
FXG2Model
.
Grade
>
MaxGrade
)
{
...
...
@@ -4437,7 +4437,7 @@ namespace Mall.Module.Product
MallBaseId
=
demodel
.
MallBaseId
,
OrderDetailId
=
item
.
Id
,
OrderId
=
OrderId
,
Remark
=
"商品总额:"
+
(
item
.
Final_Price
??
0
)
*
(
item
.
Number
??
0
)
+
",总成本:"
+
(
item
.
CostMoney
??
0
)
*
(
item
.
Number
??
0
)
+
",总返佣:"
+
item
.
TCommissionMoney
+
",总利润:"
+
Profit
,
Remark
=
"商品总额:"
+
(
item
.
Final_Price
??
0
)
+
",总成本:"
+
(
item
.
CostMoney
??
0
)
*
(
item
.
Number
??
0
)
+
",总返佣:"
+
item
.
TCommissionMoney
+
",总利润:"
+
Profit
,
RemitStatus
=
2
,
TenantId
=
demodel
.
TenantId
,
Type
=
1
,
...
...
Mall.Module.User/UserCommonModule.cs
View file @
b22f966d
This diff is collapsed.
Click to expand it.
Mall.Repository/User/RB_Vip_BuyRepository.cs
View file @
b22f966d
...
...
@@ -103,7 +103,7 @@ namespace Mall.Repository.User
builder
.
Append
(
$@" SELECT a.*,b.`Name` as UserName
FROM rb_vip_buy as a
INNER JOIN rb_member_user as b on a.UserId=b.Id
INNER
JOIN rb_vipbuy_commission c on a.Id = c.OrderId
Left
JOIN rb_vipbuy_commission c on a.Id = c.OrderId
WHERE a.
{
nameof
(
RB_Vip_Buy_Extend
.
Status
)}
=0 "
);
if
(
query
!=
null
)
{
...
...
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