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
83376389
Commit
83376389
authored
Dec 25, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
cf7eb99c
cae6eb91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
25 deletions
+8
-25
StudentBillModule.cs
Edu.Module.Course/StudentBillModule.cs
+4
-14
StuController.cs
Edu.WebApi/Controllers/Course/StuController.cs
+4
-11
No files found.
Edu.Module.Course/StudentBillModule.cs
View file @
83376389
...
...
@@ -839,8 +839,8 @@ namespace Edu.Module.Course
/// 退课一键制单
/// </summary>
/// <param name="backClassId"></param>
/// <param name="
i
sPublic"></param>
/// <param name="
c
urrencyId"></param>
/// <param name="
I
sPublic"></param>
/// <param name="
C
urrencyId"></param>
/// <param name="clientType"></param>
/// <param name="clientId"></param>
/// <param name="userInfo"></param>
...
...
@@ -869,7 +869,7 @@ namespace Edu.Module.Course
}
};
var
classModel
=
classRepository
.
GetEntity
(
backModel
.
ClassId
);
string
Remark
=
"【"
+
(
classModel
?.
ClassName
??
""
)
+
"】下订单"
+
backModel
.
OrderId
+
" 客人退课"
;
string
Remark
=
"【"
+
(
classModel
?.
ClassName
??
""
)
+
"】下
,
订单"
+
backModel
.
OrderId
+
" 客人退课"
;
var
financeObj
=
new
{
IsPublic
,
...
...
@@ -912,16 +912,7 @@ namespace Edu.Module.Course
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Student_BackClass
.
FinanceId
),
frid
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Teaching_Perf_ViewModel
.
Id
),
FiledValue
=
backModel
.
BackId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
bool
flag
=
student_BackClassRepository
.
Update
(
keyValues
,
wheres
);
bool
flag
=
student_BackClassRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_Student_BackClass
.
BackId
),
backModel
.
BackId
));
if
(
flag
)
{
//记录日志
...
...
@@ -945,7 +936,6 @@ namespace Edu.Module.Course
msg
+=
backModel
.
BackId
+
"创建财务单据失败;"
;
}
#
endregion
return
msg
;
}
}
...
...
Edu.WebApi/Controllers/Course/StuController.cs
View file @
83376389
...
...
@@ -85,6 +85,7 @@ namespace Edu.WebApi.Controllers.Course
AuditStatusName
=
item
.
AuditStatus
.
ToName
(),
item
.
SpecialNode
,
item
.
RealityBackMoney
,
item
.
FinanceId
,
});
}
pageModel
.
Count
=
rowsCount
;
...
...
@@ -157,22 +158,14 @@ namespace Edu.WebApi.Controllers.Course
int
ClientId
=
parms
.
GetInt
(
"ClientId"
,
0
);
if
(
BackClassId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
(
message
:
"请传递退课编号!"
);
}
if
(
ClientId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
(
message
:
"请传递客户编号!"
);
}
string
msg
=
studentBillModule
.
SetStudentBackFinance
(
BackClassId
,
IsPublic
,
CurrencyId
,
ClientType
,
ClientId
,
userInfo
);
if
(
msg
==
""
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
(
msg
);
}
return
string
.
IsNullOrEmpty
(
msg
)
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
(
msg
);
}
}
}
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