Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
cbbf226a
Commit
cbbf226a
authored
Dec 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
de2faba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
RB_OrderRepository.cs
Edu.Repository/Sell/RB_OrderRepository.cs
+34
-1
No files found.
Edu.Repository/Sell/RB_OrderRepository.cs
View file @
cbbf226a
using
Edu.Common.Enum.Sale
;
using
Edu.Common.Enum.Course
;
using
Edu.Common.Enum.Sale
;
using
Edu.Model.Entity.Course
;
using
Edu.Model.Entity.Grade
;
using
Edu.Model.Entity.Sell
;
...
...
@@ -6,6 +7,7 @@ using Edu.Model.ViewModel.Sell;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Sell
{
...
...
@@ -1167,5 +1169,36 @@ group by o.OrderId
return
Get
<
RB_Order_ViewModel
>(
sql
).
ToList
();
}
#
endregion
/// <summary>
/// 获取所有人头奖金的订单列表
/// </summary>
/// <param name="group_Id">集团编号</param>
/// <param name="eDate">结束日期</param>
/// <returns></returns>
public
List
<
RB_Order_ViewModel
>
GetAllBonusOrderListRepository
(
int
group_Id
,
string
eDate
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT o.*
FROM rb_order o
WHERE 1=1
"
);
builder
.
AppendFormat
(
" AND o.OrderState IN({0},{1}) "
,
(
int
)
OrderStateEnum
.
Normal
,
(
int
)
OrderStateEnum
.
DropOut
);
builder
.
AppendFormat
(
" AND o.{0}={1} "
,
nameof
(
RB_Order_ViewModel
.
OrderType
),
(
int
)
OrderTypeEnum
.
CourseOrder
);
//builder.AppendFormat(" AND o.CreateTime >= '2021-12-01' ");
//帐平
builder
.
AppendFormat
(
" AND o.PreferPrice = (o.Income - o.Refund + o.DiscountMoney + o.PlatformTax) "
);
if
(
group_Id
>
0
)
{
builder
.
AppendFormat
(
" o.Group_Id ={0} "
,
group_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
eDate
))
{
builder
.
AppendFormat
(
" AND o.CreateTime <= '{0} 23:59:59' "
,
eDate
);
}
builder
.
AppendFormat
(
" GROUP BY o.OrderId "
);
return
Get
<
RB_Order_ViewModel
>(
builder
.
ToString
()).
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