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
0e5ca11f
Commit
0e5ca11f
authored
Mar 22, 2023
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9e2a9560
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+22
-0
SellAchievementsModule.cs
Edu.Module.Course/SellAchievementsModule.cs
+3
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+7
-0
No files found.
Edu.Module.Course/OrderModule2.cs
View file @
0e5ca11f
...
...
@@ -506,5 +506,27 @@ namespace Edu.Module.Course
{
return
student_OrderGuestRepository
.
ValidataStuOrder
(
stuIds
,
group_Id
);
}
/// <summary>
/// 获取学员是否上传到访表
/// </summary>
/// <param name="stuIds"></param>
/// <returns></returns>
public
string
GetStudentVisitVoucher
(
string
stuIds
)
{
var
list
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
StuIds
=
stuIds
});
string
Rmsg
=
""
;
foreach
(
var
item
in
list
)
{
if
(
string
.
IsNullOrEmpty
(
item
.
FileVoucher
)
&&
item
.
CreateTime
>=
Convert
.
ToDateTime
(
"2023-03-22"
))
{
Rmsg
+=
"、"
+
item
.
StuName
;
}
}
if
(!
string
.
IsNullOrEmpty
(
Rmsg
))
{
Rmsg
=
Rmsg
.
Substring
(
1
,
Rmsg
.
Length
)
+
" 未上传到访表,请至我的学员详情里上传该学生到访表后方可报名"
;
}
return
Rmsg
;
}
}
}
\ No newline at end of file
Edu.Module.Course/SellAchievementsModule.cs
View file @
0e5ca11f
...
...
@@ -215,6 +215,9 @@ namespace Edu.Module.Course
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
SchoolIds
),
demodel
.
SchoolIds
},
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
UpdateBy
),
demodel
.
UpdateBy
},
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
UpdateTime
),
demodel
.
UpdateTime
},
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
SendType
),
demodel
.
SendType
},
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
PeopleMoney
),
demodel
.
PeopleMoney
},
{
nameof
(
RB_Sell_Achievements_Rule_ViewModel
.
ExtraMoney
),
demodel
.
ExtraMoney
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
0e5ca11f
...
...
@@ -601,6 +601,13 @@ namespace Edu.WebApi.Controllers.Course
{
return
ApiResult
.
ParamIsNull
(
"客人数量不正确"
);
}
//ld 2023-03-22 强验证 学生的到访表
string
rmsg
=
orderModule
.
GetStudentVisitVoucher
(
demodel
.
StuIds
);
if
(
rmsg
!=
""
)
{
return
ApiResult
.
Failed
(
rmsg
);
}
}
demodel
.
Group_Id
=
userInfo
.
Group_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