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
ba10cf30
Commit
ba10cf30
authored
Apr 12, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a9e327e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
RB_Goods_OrderRepository.cs
Mall.Repository/Product/RB_Goods_OrderRepository.cs
+2
-2
No files found.
Mall.Repository/Product/RB_Goods_OrderRepository.cs
View file @
ba10cf30
...
...
@@ -907,7 +907,7 @@ GROUP BY o.OrderId
SELECT o.OrderId,SUM(oc.Commission) FROM rb_goods_order o
INNER JOIN rb_goods_ordercommission oc on o.OrderId =oc.OrderId
WHERE o.MallBaseId =
{
mallBaseId
}
and o.OrderStatus in(2,3,4,5,6) and o.Recycled=2 and o.`Status`=0
and oc.UserId =
{
userId
}
and o.CreateDate >= '
{
startTime
}
' AND o.CreateDate <= '
{
endTime
}
23:59:59
'
and oc.UserId =
{
userId
}
and o.CreateDate >= '
{
startTime
}
' AND o.CreateDate <= '
{
endTime
}
'
GROUP BY o.OrderId)t"
;
var
obj
=
ExecuteScalar
(
sql
);
return
obj
!=
null
?
Convert
.
ToInt32
(
obj
)
:
0
;
...
...
@@ -926,7 +926,7 @@ GROUP BY o.OrderId)t";
string
sql
=
$@"SELECT SUM(oc.Commission) FROM rb_goods_order o
INNER JOIN rb_goods_ordercommission oc on o.OrderId =oc.OrderId
WHERE o.MallBaseId =
{
mallBaseId
}
and o.OrderStatus in(2,3,4,5,6) and o.Recycled=2 and o.`Status`=0
and oc.UserId =
{
userId
}
and o.CreateDate >= '
{
startTime
}
' AND o.CreateDate <= '
{
endTime
}
23:59:59
'"
;
and oc.UserId =
{
userId
}
and o.CreateDate >= '
{
startTime
}
' AND o.CreateDate <= '
{
endTime
}
'"
;
var
obj
=
ExecuteScalar
(
sql
);
return
obj
!=
null
?
Convert
.
ToDecimal
(
obj
)
:
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