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
da7e9a63
Commit
da7e9a63
authored
Jun 17, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销订单 佣金合并
parent
6ea00c15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1
-1
RB_Goods_OrderCommissionRepository.cs
....Repository/Product/RB_Goods_OrderCommissionRepository.cs
+1
-1
No files found.
Mall.Module.Product/OrderModule.cs
View file @
da7e9a63
...
...
@@ -4228,7 +4228,7 @@ namespace Mall.Module.Product
}
var
arealist
=
destinationRepository
.
GetDictvalueListForIds
(
areaIds
);
//分销情况
;
var
oclist
=
goods_OrderCommissionRepository
.
GetList
(
new
RB_Goods_OrderCommission_Extend
()
{
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
,
OrderIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
OrderId
))
});
var
oclist
=
goods_OrderCommissionRepository
.
GetListGroupByUser
(
new
RB_Goods_OrderCommission_Extend
()
{
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
,
OrderIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
OrderId
))
});
if
(
oclist
.
Any
())
{
//获取用户
...
...
Mall.Repository/Product/RB_Goods_OrderCommissionRepository.cs
View file @
da7e9a63
...
...
@@ -79,7 +79,7 @@ where {where} order by oc.Id asc";
where
+=
$@" and oc.
{
nameof
(
RB_Goods_OrderCommission
.
OrderId
)}
in(
{
dmodel
.
OrderIds
}
)"
;
}
string
sql
=
$@"SELECT oc.OrderId,oc.UserId,oc.Grade,oc.Type,SUM(oc.Commission) as Commission FROM RB_Goods_OrderCommission oc
string
sql
=
$@"SELECT oc.OrderId,oc.UserId,oc.Grade,oc.Type,
oc.CommissionState,
SUM(oc.Commission) as Commission FROM RB_Goods_OrderCommission oc
left join rb_goods_orderaftersale oa on oc.OrderDetailId= oa.OrderDetialId and oa.Type=1 and oa.Status=0 and oa.ReOrderStatus in (2,3,4,5)
where
{
where
}
group by oc.OrderId,oc.UserId,oc.Grade,oc.Type order by oc.Grade asc"
;
return
Get
<
RB_Goods_OrderCommission_Extend
>(
sql
).
ToList
();
...
...
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