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
cc5d7ed9
Commit
cc5d7ed9
authored
Apr 22, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名统计
parent
dff5b95e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
126 additions
and
0 deletions
+126
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+126
-0
No files found.
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
cc5d7ed9
...
...
@@ -1033,6 +1033,132 @@ namespace Edu.WebApi.Controllers.Course
return
ApiResult
.
Success
(
""
,
pageModel
);
}
/// <summary>
/// 获取订单列表统计
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetOrderPageListStatistics
()
{
var
userInfo
=
base
.
UserInfo
;
ResultPageModel
pageModel
=
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
RB_Order_ViewModel
demodel
=
new
RB_Order_ViewModel
()
{
OrderId
=
base
.
ParmJObj
.
GetInt
(
"OrderId"
),
GuestName
=
base
.
ParmJObj
.
GetStringValue
(
"GuestName"
),
ClassName
=
base
.
ParmJObj
.
GetStringValue
(
"ClassName"
),
CouseId
=
base
.
ParmJObj
.
GetInt
(
"CouseId"
),
StartTime
=
base
.
ParmJObj
.
GetStringValue
(
"StartTime"
),
EndTime
=
base
.
ParmJObj
.
GetStringValue
(
"EndTime"
),
OPStartTime
=
base
.
ParmJObj
.
GetStringValue
(
"OPStartTime"
),
OPEndTime
=
base
.
ParmJObj
.
GetStringValue
(
"OPEndTime"
),
Q_NotCollect
=
base
.
ParmJObj
.
GetInt
(
"Q_NotCollect"
),
OrderState
=
(
OrderStateEnum
)
base
.
ParmJObj
.
GetInt
(
"OrderState"
),
Q_OrderState
=
base
.
ParmJObj
.
GetInt
(
"Q_OrderState"
),
Q_OrderBy
=
base
.
ParmJObj
.
GetInt
(
"Q_OrderBy"
),
PlatformTax
=
base
.
ParmJObj
.
GetDecimal
(
"PlatformTax"
),
EnterID
=
base
.
ParmJObj
.
GetInt
(
"EnterID"
)
};
demodel
.
Group_Id
=
userInfo
.
Group_Id
;
var
orderList
=
orderModule
.
GetMyOrderPageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
count
,
demodel
);
var
orderS
=
orderModule
.
GetMyOrderStatistics
(
demodel
);
pageModel
.
Count
=
Convert
.
ToInt32
(
count
);
var
obj
=
new
{
Statistics
=
new
{
PreferPrice
=
orderS
?.
PreferPrice
??
0
,
Income
=
orderS
?.
Income
??
0
,
DueInMoney
=
orderS
?.
DueInMoney
??
0
,
GuestNum
=
orderS
?.
GuestNum
??
0
,
CancelNum
=
orderS
?.
CancelNum
??
0
,
CommissionMoney
=
orderS
?.
CommissionMoney
??
0
,
ExtraRewardMoney
=
orderS
?.
ExtraRewardMoney
??
0
},
List
=
orderList
?.
Select
(
x
=>
new
{
x
.
OrderId
,
x
.
ClassId
,
x
.
OrderType
,
x
.
SourceId
,
x
.
ClassSchoolId
,
x
.
ClassName
,
x
.
TradeWay
,
x
.
Class_Price
,
x
.
Unit_Price
,
x
.
GuestNum
,
x
.
PreferPrice
,
x
.
Income
,
x
.
Refund
,
x
.
DiscountMoney
,
x
.
PlatformTax
,
DueInMoney
=
x
.
PreferPrice
-
(
x
.
Income
-
x
.
Refund
+
x
.
PlatformTax
+
x
.
DiscountMoney
),
x
.
OrderState
,
OrderStateName
=
x
.
OrderState
.
ToName
(),
x
.
EnterID
,
EnterName
=
UserReidsCache
.
GetUserLoginInfo
(
x
.
EnterID
)?.
AccountName
??
""
,
x
.
CommissionMoney
,
x
.
ExtraRewardMoney
,
x
.
ExtraDeductMoney
,
x
.
IsCommissionGive
,
CreateTime
=
x
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
SaleRemark
=
x
?.
SaleRemark
??
""
,
TeacherRemark
=
x
?.
TeacherRemark
??
""
,
RectorRemark
=
x
?.
RectorRemark
??
""
,
DirectorRemark
=
x
?.
DirectorRemark
??
""
,
x
.
OfferId
,
SaleRemarkList
=
x
?.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
Content
,
CreateBy
=
z
.
CreateByName
,
CreateTime
=
z
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
}),
TeacherRemarkList
=
x
?.
TeacherRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
Content
,
CreateBy
=
z
.
CreateByName
,
CreateTime
=
z
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
}),
RectorRemarkList
=
x
?.
RectorRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
Content
,
CreateBy
=
z
.
CreateByName
,
CreateTime
=
z
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
}),
DirectorRemarkList
=
x
?.
DirectorRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
Content
,
CreateBy
=
z
.
CreateByName
,
CreateTime
=
z
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
}),
GuestList
=
x
?.
GuestList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
GuestName
,
z
.
GuestState
,
z
.
ContractId
,
z
.
ContractNo
,
z
.
ContractStatus
,
z
.
ContractStatusStr
,
}),
ContractList
=
x
?.
ContractList
.
Select
(
z
=>
new
{
z
.
Id
,
z
.
StudentName
,
z
.
ContractNo
,
z
.
GuestId
,
z
.
Status
})
})
};
pageModel
.
PageData
=
obj
;
return
ApiResult
.
Success
(
""
,
pageModel
);
}
/// <summary>
/// 获取我的留学就业订单列表
...
...
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