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
c1137338
Commit
c1137338
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fd4ccea0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+1
-1
StudentBillModule.cs
Edu.Module.Course/StudentBillModule.cs
+14
-3
RB_BackClass_ProtocolRepository.cs
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
+8
-2
No files found.
Edu.Module.Course/OrderModule.cs
View file @
c1137338
...
@@ -2615,7 +2615,7 @@ namespace Edu.Module.Course
...
@@ -2615,7 +2615,7 @@ namespace Edu.Module.Course
//{
//{
// item.UseClassHours = (int)Math.Ceiling(Convert.ToDecimal(stuModel?.MinutesNum ?? 0) / configModel.BasicMinutes);// 已上课时 (暂时向上取整)
// item.UseClassHours = (int)Math.Ceiling(Convert.ToDecimal(stuModel?.MinutesNum ?? 0) / configModel.BasicMinutes);// 已上课时 (暂时向上取整)
//}
//}
item
.
UseClassHours
=
Convert
.
ToInt32
(
stuModel
?.
CurrentDeductionHours
??
0
);
item
.
UseClassHours
=
(
stuModel
?.
CurrentDeductionHours
??
0
);
item
.
Unit_Price
=
0
;
item
.
Unit_Price
=
0
;
item
.
UseCourseFee
=
0
;
item
.
UseCourseFee
=
0
;
if
(
item
.
TotalClassHours
>
0
)
if
(
item
.
TotalClassHours
>
0
)
...
...
Edu.Module.Course/StudentBillModule.cs
View file @
c1137338
...
@@ -7,12 +7,14 @@ using Edu.Common.Plugin;
...
@@ -7,12 +7,14 @@ using Edu.Common.Plugin;
using
Edu.Model.CacheModel
;
using
Edu.Model.CacheModel
;
using
Edu.Model.Entity.BackClass
;
using
Edu.Model.Entity.BackClass
;
using
Edu.Model.Entity.Course
;
using
Edu.Model.Entity.Course
;
using
Edu.Model.ViewModel.Contract
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Model.ViewModel.Finance
;
using
Edu.Model.ViewModel.Finance
;
using
Edu.Model.ViewModel.Grade
;
using
Edu.Model.ViewModel.Grade
;
using
Edu.Model.ViewModel.Sell
;
using
Edu.Model.ViewModel.Sell
;
using
Edu.Model.ViewModel.User
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.BackClass
;
using
Edu.Repository.BackClass
;
using
Edu.Repository.Contract
;
using
Edu.Repository.Course
;
using
Edu.Repository.Course
;
using
Edu.Repository.Finance
;
using
Edu.Repository.Finance
;
using
Edu.Repository.Flow
;
using
Edu.Repository.Flow
;
...
@@ -89,6 +91,11 @@ namespace Edu.Module.Course
...
@@ -89,6 +91,11 @@ namespace Edu.Module.Course
/// </summary>
/// </summary>
private
readonly
RB_Course_PreferentialRepository
course_PreferentialRepository
=
new
RB_Course_PreferentialRepository
();
private
readonly
RB_Course_PreferentialRepository
course_PreferentialRepository
=
new
RB_Course_PreferentialRepository
();
/// <summary>
/// 退课协议仓储层对象
/// </summary>
private
readonly
RB_BackClass_ProtocolRepository
backClass_ProtocolRepository
=
new
RB_BackClass_ProtocolRepository
();
/// <summary>
/// <summary>
/// 计算学员退课金额
/// 计算学员退课金额
/// </summary>
/// </summary>
...
@@ -140,6 +147,10 @@ namespace Edu.Module.Course
...
@@ -140,6 +147,10 @@ namespace Edu.Module.Course
public
string
SetStudentBackFinance
(
int
backClassId
,
int
IsPublic
,
int
CurrencyId
,
int
clientType
,
int
clientId
,
UserInfo
userInfo
)
public
string
SetStudentBackFinance
(
int
backClassId
,
int
IsPublic
,
int
CurrencyId
,
int
clientType
,
int
clientId
,
UserInfo
userInfo
)
{
{
var
backModel
=
student_BackClassRepository
.
GetEntity
(
backClassId
);
var
backModel
=
student_BackClassRepository
.
GetEntity
(
backClassId
);
var
BackClassProtocolModel
=
backClass_ProtocolRepository
.
GetBackClassProtocolListRepository
(
new
RB_BackClass_Protocol_ViewModel
()
{
BackId
=
backClassId
})?.
FirstOrDefault
();
if
(
backModel
==
null
||
backModel
.
AuditStatus
!=
WFRrocessStatus
.
AuditThrough
)
{
return
"退课流程未审核通过"
;
}
if
(
backModel
==
null
||
backModel
.
AuditStatus
!=
WFRrocessStatus
.
AuditThrough
)
{
return
"退课流程未审核通过"
;
}
if
(
backModel
.
FinanceId
>
0
)
{
return
"已制单,无法再次生成财务单据"
;
}
if
(
backModel
.
FinanceId
>
0
)
{
return
"已制单,无法再次生成财务单据"
;
}
var
guestModel
=
order_GuestRepository
.
GetEntity
(
backModel
.
GuestId
);
var
guestModel
=
order_GuestRepository
.
GetEntity
(
backModel
.
GuestId
);
...
@@ -164,6 +175,9 @@ namespace Edu.Module.Course
...
@@ -164,6 +175,9 @@ namespace Edu.Module.Course
string
Remark
=
backModel
.
ApplyReason
+
"【"
+
(
classModel
?.
ClassName
??
""
)
+
"】下,订单"
+
backModel
.
OrderId
+
" 客人退课"
;
string
Remark
=
backModel
.
ApplyReason
+
"【"
+
(
classModel
?.
ClassName
??
""
)
+
"】下,订单"
+
backModel
.
OrderId
+
" 客人退课"
;
var
financeObj
=
new
var
financeObj
=
new
{
{
OtherType
=
28
,
ReFinanceId
=
backClassId
,
ReFinanceId2
=
BackClassProtocolModel
?.
Id
??
0
,
IsPublic
,
IsPublic
,
ClientType
=
clientType
,
ClientType
=
clientType
,
ClientID
=
clientId
,
ClientID
=
clientId
,
...
@@ -174,8 +188,6 @@ namespace Edu.Module.Course
...
@@ -174,8 +188,6 @@ namespace Edu.Module.Course
OrderSource
=
17
,
OrderSource
=
17
,
OrderID
=
backModel
.
OrderId
,
OrderID
=
backModel
.
OrderId
,
TCIDList
=
new
List
<
int
>()
{
backModel
.
ClassId
},
TCIDList
=
new
List
<
int
>()
{
backModel
.
ClassId
},
OtherType
=
28
,
ReFinanceId
=
backModel
.
BackId
,
Remark
,
Remark
,
detailList
,
detailList
,
CreateBy
=
userInfo
.
Id
,
CreateBy
=
userInfo
.
Id
,
...
@@ -193,7 +205,6 @@ namespace Edu.Module.Course
...
@@ -193,7 +205,6 @@ namespace Edu.Module.Course
{
{
msg
=
sign
msg
=
sign
};
};
string
apiResult
=
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"PaymentFinanceApi"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
);
string
apiResult
=
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"PaymentFinanceApi"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
);
JObject
parmsJob
=
JObject
.
Parse
(
apiResult
);
JObject
parmsJob
=
JObject
.
Parse
(
apiResult
);
string
resultCode
=
parmsJob
.
GetStringValue
(
"resultCode"
);
string
resultCode
=
parmsJob
.
GetStringValue
(
"resultCode"
);
...
...
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
View file @
c1137338
...
@@ -29,7 +29,13 @@ WHERE 1=1
...
@@ -29,7 +29,13 @@ WHERE 1=1
"
);
"
);
if
(
query
!=
null
)
if
(
query
!=
null
)
{
{
if
(
query
.
BackId
>
0
)
{
if
(
query
.
QCreateBy
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
BackId
),
query
.
BackId
);
}
}
}
}
return
Get
<
RB_BackClass_Protocol_ViewModel
>(
builder
.
ToString
()).
ToList
();
return
Get
<
RB_BackClass_Protocol_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