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
02590079
Commit
02590079
authored
May 13, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增删除考试,月度总结方法
parent
b73438b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+15
-1
ScrollController.cs
Edu.WebApi/Controllers/Course/ScrollController.cs
+12
-1
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
02590079
...
@@ -3701,7 +3701,11 @@ namespace Edu.Module.Course
...
@@ -3701,7 +3701,11 @@ namespace Edu.Module.Course
return
Rlist
;
return
Rlist
;
}
}
/// <summary>
/// 新增修改学习情况
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
SetStuStudy
(
RB_Student_Study_ViewModel
model
)
public
bool
SetStuStudy
(
RB_Student_Study_ViewModel
model
)
{
{
bool
flag
=
false
;
bool
flag
=
false
;
...
@@ -3727,6 +3731,16 @@ namespace Edu.Module.Course
...
@@ -3727,6 +3731,16 @@ namespace Edu.Module.Course
return
flag
;
return
flag
;
}
}
/// <summary>
/// 删除学习情况
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
public
bool
DeleteStuStudy
(
int
Id
)
{
bool
flag
=
studentStudyRepository
.
Delete
(
Id
)
>
0
;
return
flag
;
}
/// <summary>
/// <summary>
/// 获取学员学习情况
/// 获取学员学习情况
...
...
Edu.WebApi/Controllers/Course/ScrollController.cs
View file @
02590079
...
@@ -1324,10 +1324,21 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -1324,10 +1324,21 @@ namespace Edu.WebApi.Controllers.Course
}
}
demodel
.
UpdateTime
=
DateTime
.
Now
;
demodel
.
UpdateTime
=
DateTime
.
Now
;
demodel
.
UpdateBy
=
userInfo
.
Id
;
demodel
.
UpdateBy
=
userInfo
.
Id
;
var
result
=
scrollClassModule
.
SetStuStudy
(
demodel
);
var
result
=
scrollClassModule
.
SetStuStudy
(
demodel
);
return
result
?
ApiResult
.
Success
(
""
)
:
ApiResult
.
Failed
(
"操作失败"
);
return
result
?
ApiResult
.
Success
(
""
)
:
ApiResult
.
Failed
(
"操作失败"
);
}
}
/// <summary>
/// 删除学习情况
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
RemoveStuStudyInfo
()
{
int
StudyID
=
base
.
ParmJObj
.
GetInt
(
"StudyID"
);
bool
flag
=
scrollClassModule
.
DeleteStuStudy
(
StudyID
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
endregion
...
...
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