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
94eb1ea2
Commit
94eb1ea2
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6ae33ba0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
6 deletions
+37
-6
RB_BackClass_Protocol_ViewModel.cs
...del/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
+5
-0
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+29
-6
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+3
-0
No files found.
Edu.Model/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
View file @
94eb1ea2
...
...
@@ -101,5 +101,10 @@ namespace Edu.Model.ViewModel.Contract
/// 退还账号
/// </summary>
public
string
BackAccount
{
get
;
set
;
}
/// <summary>
/// 合同章图片
/// </summary>
public
string
GroupSealImg
{
get
;
set
;
}
}
}
Edu.Module.Course/EducationContractModule.cs
View file @
94eb1ea2
using
Edu.Cache.User
;
using
Edu.AOP.CustomerAttribute
;
using
Edu.Cache.User
;
using
Edu.Common
;
using
Edu.Common.API
;
using
Edu.Common.Enum
;
...
...
@@ -687,6 +688,8 @@ namespace Edu.Module.Course
var
backModel
=
student_BackClassRepository
.
GetEntity
(
extModel
.
BackId
);
extModel
.
BackAccountName
=
backModel
?.
BackAccountName
??
""
;
extModel
.
BackAccount
=
backModel
?.
BackAccount
??
""
;
var
gmodel
=
groupRepository
.
GetEntity
(
extModel
.
Group_Id
);
extModel
.
GroupSealImg
=
gmodel
?.
SealImage
??
""
;
}
return
extModel
;
}
...
...
@@ -714,13 +717,33 @@ namespace Edu.Module.Course
/// <param name="Id">协议编号</param>
/// <param name="IsSure">是否销售确认(1-是)</param>
/// <returns></returns>
public
bool
SetBackClassProtocolSureModule
(
int
Id
,
int
IsSure
)
[
TransactionCallHandler
]
public
virtual
bool
SetBackClassProtocolSureModule
(
int
Id
,
int
IsSure
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
bool
flag
=
false
;
var
extModel
=
backClass_ProtocolRepository
.
GetEntity
<
RB_BackClass_Protocol_ViewModel
>(
Id
);
if
(
extModel
!=
null
&&
extModel
.
Id
>
0
)
{
{
nameof
(
RB_BackClass_Protocol_ViewModel
.
IsSure
),
IsSure
},
};
return
backClass_ProtocolRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_BackClass_Protocol_ViewModel
.
Id
),
Id
));
var
backModel
=
student_BackClassRepository
.
GetEntity
(
extModel
.
BackId
);
var
orderModel
=
orderRepository
.
GetEntity
(
backModel
.
OrderId
);
#
region
销售退课确认,重新计算订单应收:订单应收
-
学员合同费用总计
(实收
-
应退)
var
newPreferPrice
=
orderModel
.
PreferPrice
-
backModel
.
RealityBackMoney
;
Dictionary
<
string
,
object
>
orderFileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Order_ViewModel
.
PreferPrice
),
newPreferPrice
}
};
flag
=
orderRepository
.
Update
(
orderFileds
,
new
WhereHelper
(
nameof
(
RB_Order_ViewModel
.
OrderId
),
backModel
.
OrderId
));
#
endregion
}
if
(
flag
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_BackClass_Protocol_ViewModel
.
IsSure
),
IsSure
},
};
flag
=
backClass_ProtocolRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_BackClass_Protocol_ViewModel
.
Id
),
Id
));
}
return
flag
;
}
}
}
\ No newline at end of file
Edu.WebApi/Controllers/Course/EducationContractController.cs
View file @
94eb1ea2
...
...
@@ -473,6 +473,7 @@ namespace Edu.WebApi.Controllers.Course
IsStuSign
=
!
string
.
IsNullOrEmpty
(
x
.
PartyASign
)
?
1
:
0
,
x
.
IsCompanySeal
,
x
.
IsSure
,
x
.
PartyASign
,
});
return
ApiResult
.
Success
(
""
,
pageModel
);
}
...
...
@@ -481,6 +482,8 @@ namespace Edu.WebApi.Controllers.Course
/// 获取退课协议详情
/// </summary>
/// <returns></returns>
[
AllowAnonymous
]
[
HttpPost
]
public
ApiResult
GetBackClassProtocol
()
{
int
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
...
...
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