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
26cdc915
Commit
26cdc915
authored
Feb 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
73227a3d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
14 deletions
+45
-14
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+11
-10
CustomerModule.cs
Edu.Module.Customer/CustomerModule.cs
+30
-2
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+3
-0
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+1
-1
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+0
-1
No files found.
Edu.Module.Course/OrderModule.cs
View file @
26cdc915
...
...
@@ -740,12 +740,13 @@ namespace Edu.Module.Course
else
if
((
demodel
.
JoinType
==
OrderJoinTypeEnum
.
Normal
||
demodel
.
JoinType
==
OrderJoinTypeEnum
.
InsertClass
)
&&
demodel
.
OrderIdentify
!=
2
)
{
//默认都是首次报名优惠
decimal
DiscountMoney
=
coursePrice
*
(
courseModel
.
B2CRatio
/
100
);
if
(
demodel
.
DiscountMoney
!=
DiscountMoney
*
demodel
.
GuestNum
)
{
message
=
"优惠金额不正确"
;
return
false
;
}
//HK 2022-02-08 修改
//decimal DiscountMoney = coursePrice * (courseModel.B2CRatio / 100);
//if (demodel.DiscountMoney != DiscountMoney * demodel.GuestNum)
//{
// message = "优惠金额不正确";
// return false;
//}
}
else
if
(
demodel
.
OrderIdentify
==
2
&&
demodel
.
OrderId
==
0
)
{
...
...
@@ -783,15 +784,15 @@ namespace Edu.Module.Course
decimal
dmoney
=
coursePrice
*
(
courseModel
.
B2CRatio
/
100
)
*
NormalNum
+
coursePrice
*
(
courseModel
.
B2CReNewRatio
/
100
)
*
RenewNum
;
if
(
demodel
.
DiscountMoney
!=
dmoney
)
{
message
=
"优惠金额不正确"
;
return
false
;
//
message = "优惠金额不正确";
//
return false;
}
}
else
if
(
demodel
.
OrderIdentify
==
2
&&
demodel
.
OrderId
>
0
)
{
//直接验证优惠金额
if
(
demodel
.
DiscountMoney
!=
orderModel
.
DiscountMoney
)
{
message
=
"优惠金额有误"
;
return
false
;
//
message = "优惠金额有误";
//
return false;
}
}
...
...
Edu.Module.Customer/CustomerModule.cs
View file @
26cdc915
...
...
@@ -4,6 +4,7 @@ using Edu.Common.Enum.Customer;
using
Edu.Common.Plugin
;
using
Edu.Model.CacheModel
;
using
Edu.Model.ViewModel.Customer
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.Customer
;
using
Edu.Repository.Log
;
using
Edu.Repository.System
;
...
...
@@ -498,7 +499,34 @@ namespace Edu.Module.Customer
var
list
=
customer_CategoryRepository
.
GetCustomerCategoryPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
string
Ids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
CategoryId
));
List
<
RB_Customer_Extend
>
customerLinkList
=
new
List
<
RB_Customer_Extend
>();
List
<
RB_Student_ViewModel
>
studentList
=
new
List
<
RB_Student_ViewModel
>();
if
(!
string
.
IsNullOrEmpty
(
Ids
))
{
//联系人
customerLinkList
=
customerRepository
.
GetCustomerListRepository
(
new
RB_Customer_Extend
()
{
});
//客户数量
studentList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
});
//订单数量
}
foreach
(
var
item
in
list
)
{
var
tempLinkList
=
customerLinkList
;
item
.
LinkManCount
=
tempLinkList
?.
Count
()
??
0
;
var
tempStuList
=
studentList
;
item
.
OrderCount
=
0
;
item
.
StudentCount
=
tempStuList
?.
Count
()
??
0
;
}
}
return
list
;
}
...
...
Edu.Module.Customer/CustomerStudentModule.cs
View file @
26cdc915
...
...
@@ -638,6 +638,8 @@ namespace Edu.Module.Customer
#
region
学员订单和合同
/// <summary>
/// 获取学员关联订单分页列表
/// </summary>
...
...
@@ -673,6 +675,7 @@ namespace Edu.Module.Customer
return
list
;
}
/// <summary>
/// 获取学员关联订单合同分页列表
/// </summary>
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
26cdc915
...
...
@@ -765,7 +765,7 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState <>2
/// <returns></returns>
public
List
<
RB_Student_ViewModel
>
GetCustomerStuStageStatistics
(
int
customerId
,
int
group_Id
)
{
string
sql
=
$@"SELECT StuStage,COUNT(0)
as
OrderCount FROM rb_student WHERE Group_Id =
{
group_Id
}
and CustomerId =
{
customerId
}
GROUP BY StuStage"
;
string
sql
=
$@"SELECT StuStage,COUNT(0)
AS
OrderCount FROM rb_student WHERE Group_Id =
{
group_Id
}
and CustomerId =
{
customerId
}
GROUP BY StuStage"
;
return
Get
<
RB_Student_ViewModel
>(
sql
).
ToList
();
}
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
26cdc915
...
...
@@ -452,7 +452,6 @@ namespace Edu.WebApi.Controllers.Customer
[
HttpPost
]
public
ApiResult
SetStudentAssist
()
{
//var AssistList = new List<RB_Student_Assist_Extend>();
var
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
);
var
model
=
new
RB_Student_Assist_Extend
()
{
...
...
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