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
109fdae5
Commit
109fdae5
authored
Jun 30, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ca52ab5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
65 deletions
+75
-65
UserModule.cs
Mall.Module.User/UserModule.cs
+75
-65
No files found.
Mall.Module.User/UserModule.cs
View file @
109fdae5
...
...
@@ -1981,6 +1981,8 @@ namespace Mall.Module.User
{
//所有未提现的 返佣
var
clist
=
goods_OrderCommissionRepository
.
GetUserCommissionRemit
(
remitModel
.
UserId
??
0
);
if
(
clist
.
Any
())
{
//获取订单列表
string
OrderIds
=
string
.
Join
(
","
,
clist
.
Select
(
x
=>
x
.
OrderId
).
Distinct
());
var
olist
=
goods_OrderRepository
.
GetOrderList
(
new
RB_Goods_Order_Extend
()
{
OrderIds
=
OrderIds
});
...
...
@@ -1998,7 +2000,7 @@ namespace Mall.Module.User
foreach
(
var
qitem
in
chlist
)
{
TMoney
-=
(
qitem
.
Commission
??
0
);
CommMoney
+=
(
qitem
.
Commission
??
0
);
CommMoney
+=
(
qitem
.
Commission
??
0
);
Dictionary
<
string
,
object
>
keyValues2
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderCommission_Extend
.
IsRemit
),
1
}
};
...
...
@@ -2040,6 +2042,7 @@ namespace Mall.Module.User
distributor_RemitRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
#
endregion
//提现审核通过 自动生成财务单据
...
...
@@ -3214,6 +3217,8 @@ namespace Mall.Module.User
if
(
demodel
.
TenantId
==
1
)
{
//所有未提现的 返佣
var
clist
=
goods_OrderCommissionRepository
.
GetUserCommissionRemit
(
demodel
.
UserId
??
0
);
if
(
clist
.
Any
())
{
//获取订单列表
string
OrderIds
=
string
.
Join
(
","
,
clist
.
Select
(
x
=>
x
.
OrderId
).
Distinct
());
var
olist
=
goods_OrderRepository
.
GetOrderList
(
new
RB_Goods_Order_Extend
()
{
OrderIds
=
OrderIds
});
...
...
@@ -3222,7 +3227,8 @@ namespace Mall.Module.User
string
OrderNos
=
""
;
decimal
TMoney
=
(
demodel
.
AppliedMoney
??
0
);
//开始递减金额 订单不足的 给与提示
foreach
(
var
item
in
olist
)
{
foreach
(
var
item
in
olist
)
{
if
(
TMoney
>
0
)
{
decimal
CommMoney
=
0
;
...
...
@@ -3247,14 +3253,17 @@ namespace Mall.Module.User
OrderIdList
.
Add
(
item
.
OrderId
);
}
}
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
{
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
{
OrderNos
=
OrderNos
[
0.
.^
1
];
}
if
(
TMoney
>
0
)
{
if
(
TMoney
>
0
)
{
OrderNos
+=
" 余额"
+
TMoney
+
"尚未找到相关订单"
;
}
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
{
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Distributor_Remit_Extend
.
ReOrderNos
),
OrderNos
},
{
nameof
(
RB_Distributor_Remit_Extend
.
ReOrderIds
),
JsonConvert
.
SerializeObject
(
OrderIdList
)},
...
...
@@ -3269,6 +3278,7 @@ namespace Mall.Module.User
distributor_RemitRepository
.
Update
(
keyValues1
,
wheres1
,
trans
);
}
}
}
#
endregion
}
distributor_RemitRepository
.
DBSession
.
Commit
();
...
...
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