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
de408b19
Commit
de408b19
authored
Jul 21, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
238cdb17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
106 deletions
+125
-106
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+110
-102
UserModule.cs
Mall.Module.User/UserModule.cs
+6
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+9
-4
No files found.
Mall.Module.Product/OrderModule.cs
View file @
de408b19
This diff is collapsed.
Click to expand it.
Mall.Module.User/UserModule.cs
View file @
de408b19
...
...
@@ -2987,10 +2987,14 @@ namespace Mall.Module.User
//分销商等级
string
GradeName
=
"默认等级"
;
int
HpEnabled
=
2
;
int
IsVip
=
2
;
if
((
basicsModel
?.
IsEnableFXGrade
??
0
)
==
1
)
{
var
gmodel
=
distributor_FXGradeRepository
.
GetEntity
(
model
.
FXGradeId
);
GradeName
=
gmodel
?.
GradeName
??
"默认等级"
;
if
(
gmodel
.
IsGuest
==
3
)
{
IsVip
=
1
;
}
}
else
{
...
...
@@ -3097,6 +3101,8 @@ namespace Mall.Module.User
RemitMoney
=
remitMoney
,
ReferralsNum
=
(
basicsModel
?.
IsEnableFXGrade
??
0
)
==
1
?
fxNum
:
(
oneNum
+
twoNum
+
threeNum
),
IsEnableFXGrade
=
(
basicsModel
?.
IsEnableFXGrade
??
0
),
IsVip
,
VipExpiryDate
=
model
.
VipExpiryDate
.
HasValue
?
model
.
VipExpiryDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
,
VipBuyCommission
}
};
...
...
Mall.WindowsService/Module/FinanceModule.cs
View file @
de408b19
...
...
@@ -884,11 +884,16 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
{
if
(
item
.
PresentFXGrade
>
0
)
{
//
有赠送粉象等级
GradeList
.
Add
(
item
.
PresentFXGrade
??
0
);
if
(
item
.
PresentFXGrade
==
(
VIPModel
?.
Id
??
0
))
//
查询是否有申请退款
var
afterSaleList
=
goods_OrderAfterSaleRepository
.
GetList
(
new
RB_Goods_OrderAfterSale_Extend
()
{
OrderDetialId
=
item
.
Id
,
Type
=
1
,
MallBaseId
=
demodel
.
MallBaseId
,
TenantId
=
demodel
.
TenantId
}
);
if
(
!
afterSaleList
.
Any
(
))
{
VIPMonths
+=
(
item
.
PresentFXMonth
??
0
)
*
(
item
.
Number
??
0
);
//有赠送粉象等级
GradeList
.
Add
(
item
.
PresentFXGrade
??
0
);
if
(
item
.
PresentFXGrade
==
(
VIPModel
?.
Id
??
0
))
{
VIPMonths
+=
(
item
.
PresentFXMonth
??
0
)
*
(
item
.
Number
??
0
);
}
}
}
}
...
...
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