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
7dcf1383
Commit
7dcf1383
authored
Apr 27, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
43b1932e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
ClassController.cs
Edu.WebApi/Controllers/Course/ClassController.cs
+21
-2
No files found.
Edu.WebApi/Controllers/Course/ClassController.cs
View file @
7dcf1383
...
@@ -10,6 +10,7 @@ using Edu.Module.Course;
...
@@ -10,6 +10,7 @@ using Edu.Module.Course;
using
Edu.WebApi.Filter
;
using
Edu.WebApi.Filter
;
using
Microsoft.AspNetCore.Cors
;
using
Microsoft.AspNetCore.Cors
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json.Linq
;
namespace
Edu.WebApi.Controllers.Course
namespace
Edu.WebApi.Controllers.Course
{
{
...
@@ -651,7 +652,26 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -651,7 +652,26 @@ namespace Edu.WebApi.Controllers.Course
/// <returns></returns>
/// <returns></returns>
public
ApiResult
AddClassCheck
()
public
ApiResult
AddClassCheck
()
{
{
List
<
RB_Class_Check_ViewModel
>
list
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
RB_Class_Check_ViewModel
>>(
RequestParm
.
Msg
.
ToString
());
List
<
RB_Class_Check_ViewModel
>
list
=
new
List
<
RB_Class_Check_ViewModel
>();
JArray
array
=
JArray
.
Parse
(
RequestParm
.
Msg
.
ToString
());
if
(
array
!=
null
&&
array
.
Count
>
0
)
{
foreach
(
var
jItem
in
array
)
{
JObject
obj
=
JObject
.
Parse
(
jItem
.
ToString
());
list
.
Add
(
new
RB_Class_Check_ViewModel
()
{
CheckStatus
=
obj
.
GetInt
(
"CheckStatus"
),
ClassDate
=
obj
.
GetDateTime
(
"ClassDate"
),
ClassRoomId
=
obj
.
GetInt
(
"ClassRoomId"
),
OrderGuestId
=
obj
.
GetInt
(
"OrderGuestId"
),
School_Id
=
obj
.
GetInt
(
"School_Id"
),
StudyNum
=
obj
.
GetInt
(
"StudyNum"
),
TeacherId
=
obj
.
GetInt
(
"TeacherId"
),
ClassId
=
obj
.
GetInt
(
"classId"
),
});
}
}
if
(
list
==
null
||
!
list
.
Any
())
if
(
list
==
null
||
!
list
.
Any
())
{
{
return
ApiResult
.
ParamIsNull
(
""
);
return
ApiResult
.
ParamIsNull
(
""
);
...
@@ -684,7 +704,6 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -684,7 +704,6 @@ namespace Edu.WebApi.Controllers.Course
if
(
signModel
!=
null
&&
signModel
.
ClassCheckId
>
0
)
if
(
signModel
!=
null
&&
signModel
.
ClassCheckId
>
0
)
{
{
item
.
ClassCheckId
=
signModel
.
ClassCheckId
;
item
.
ClassCheckId
=
signModel
.
ClassCheckId
;
//item.StudyNum = signModel.StudyNum;
item
.
Group_Id
=
signModel
.
Group_Id
;
item
.
Group_Id
=
signModel
.
Group_Id
;
item
.
CreateTime
=
signModel
.
CreateTime
;
item
.
CreateTime
=
signModel
.
CreateTime
;
item
.
CreateBy
=
base
.
UserInfo
.
Id
;
item
.
CreateBy
=
base
.
UserInfo
.
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