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
4a6fc200
Commit
4a6fc200
authored
Dec 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9ed3e144
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
StudentBillModule.cs
Edu.Module.Course/StudentBillModule.cs
+14
-1
StuController.cs
Edu.WebApi/Controllers/Course/StuController.cs
+3
-1
No files found.
Edu.Module.Course/StudentBillModule.cs
View file @
4a6fc200
...
...
@@ -106,7 +106,7 @@ namespace Edu.Module.Course
/// <param name="message">返回提示信息</param>
/// <param name="BackMoney"></param>
/// <returns></returns>
public
virtual
bool
SetBackBillAduitModule
(
int
BackId
,
int
AuditStatus
,
string
Description
,
UserInfo
user
,
out
string
message
,
decimal
BackMoney
=
0
)
public
virtual
bool
SetBackBillAduitModule
(
int
BackId
,
int
AuditStatus
,
string
Description
,
UserInfo
user
,
out
string
message
,
int
SpecialNode
=
0
,
decimal
BackMoney
=
0
)
{
message
=
""
;
bool
flag
=
false
;
...
...
@@ -258,6 +258,10 @@ namespace Edu.Module.Course
{
{
nameof
(
RB_Student_BackClass_ViewModel
.
AuditStatus
),
(
int
)
BackClassAuditStatusEnum
.
Pass
}
};
if
(
SpecialNode
==
1
)
{
backFileds
.
Add
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackMoney
),
BackMoney
);
}
flag
=
student_BackClassRepository
.
Update
(
backFileds
,
new
WhereHelper
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackId
),
backModel
.
BackId
));
}
else
...
...
@@ -316,6 +320,10 @@ namespace Edu.Module.Course
{
{
nameof
(
RB_Student_BackClass_ViewModel
.
AuditStatus
),
(
int
)
BackClassAuditStatusEnum
.
Pass
}
};
if
(
SpecialNode
==
1
)
{
backFileds
.
Add
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackMoney
),
BackMoney
);
}
flag
=
student_BackClassRepository
.
Update
(
backFileds
,
new
WhereHelper
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackId
),
backModel
.
BackId
));
}
...
...
@@ -354,6 +362,10 @@ namespace Edu.Module.Course
{
{
nameof
(
RB_Student_BackClass_ViewModel
.
AuditStatus
),
(
int
)
BackClassAuditStatusEnum
.
Pass
}
};
if
(
SpecialNode
==
1
)
{
backFileds
.
Add
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackMoney
),
BackMoney
);
}
flag
=
student_BackClassRepository
.
Update
(
backFileds
,
new
WhereHelper
(
nameof
(
RB_Student_BackClass_ViewModel
.
BackId
),
backModel
.
BackId
));
}
...
...
@@ -676,6 +688,7 @@ namespace Edu.Module.Course
auditrecordList
.
Add
(
auditrecord
);
}
student_BackRecordRepository
.
InsertBatch
(
auditrecordList
);
auditRelevance
.
ToAuditId
=
string
.
Join
(
","
,
empIds
);
student_BackRelevanceRepository
.
Update
(
auditRelevance
);
}
...
...
Edu.WebApi/Controllers/Course/StuController.cs
View file @
4a6fc200
...
...
@@ -110,7 +110,9 @@ namespace Edu.WebApi.Controllers.Course
string
Description
=
base
.
ParmJObj
.
GetStringValue
(
"Description"
);
//退课金额
decimal
BackMoney
=
base
.
ParmJObj
.
GetDecimal
(
"BackMoney"
);
var
flag
=
studentBillModule
.
SetBackBillAduitModule
(
BackId
,
AuditStatus
,
Description
,
base
.
UserInfo
,
out
string
message
,
BackMoney
:
BackMoney
);
//是否是特殊节点
var
SpecialNode
=
base
.
ParmJObj
.
GetInt
(
"SpecialNode"
);
var
flag
=
studentBillModule
.
SetBackBillAduitModule
(
BackId
,
AuditStatus
,
Description
,
base
.
UserInfo
,
out
string
message
,
SpecialNode
:
SpecialNode
,
BackMoney
:
BackMoney
);
return
flag
?
ApiResult
.
Success
(
message
:
message
)
:
ApiResult
.
Failed
(
message
:
message
);
}
...
...
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