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
94d7ed62
Commit
94d7ed62
authored
Jun 30, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a3dfb996
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
UserModule.cs
Mall.Module.User/UserModule.cs
+8
-4
No files found.
Mall.Module.User/UserModule.cs
View file @
94d7ed62
...
...
@@ -1993,12 +1993,12 @@ namespace Mall.Module.User
{
if
(
TMoney
>
0
)
{
OrderNos
+=
"\""
+
item
.
OrderNo
+
"\","
;
OrderIdList
.
Add
(
item
.
OrderId
);
decimal
CommMoney
=
0
;
var
chlist
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
foreach
(
var
qitem
in
chlist
)
{
TMoney
-=
(
qitem
.
Commission
??
0
);
CommMoney
+=
(
qitem
.
Commission
??
0
);
Dictionary
<
string
,
object
>
keyValues2
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderCommission_Extend
.
IsRemit
),
1
}
};
...
...
@@ -2011,6 +2011,8 @@ namespace Mall.Module.User
};
goods_OrderCommissionRepository
.
Update
(
keyValues2
,
wheres2
);
}
OrderNos
+=
"\""
+
item
.
OrderNo
+
"\":"
+
CommMoney
+
"元,"
;
OrderIdList
.
Add
(
item
.
OrderId
);
}
}
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
...
...
@@ -3223,12 +3225,12 @@ namespace Mall.Module.User
foreach
(
var
item
in
olist
)
{
if
(
TMoney
>
0
)
{
OrderNos
+=
"\""
+
item
.
OrderNo
+
"\","
;
OrderIdList
.
Add
(
item
.
OrderId
);
decimal
CommMoney
=
0
;
var
chlist
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
foreach
(
var
qitem
in
chlist
)
{
TMoney
-=
(
qitem
.
Commission
??
0
);
CommMoney
+=
(
qitem
.
Commission
??
0
);
Dictionary
<
string
,
object
>
keyValues2
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderCommission_Extend
.
IsRemit
),
1
}
};
...
...
@@ -3241,6 +3243,8 @@ namespace Mall.Module.User
};
goods_OrderCommissionRepository
.
Update
(
keyValues2
,
wheres2
,
trans
);
}
OrderNos
+=
"\""
+
item
.
OrderNo
+
"\":"
+
CommMoney
+
"元,"
;
OrderIdList
.
Add
(
item
.
OrderId
);
}
}
if
(!
string
.
IsNullOrEmpty
(
OrderNos
))
{
...
...
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