Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
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
liuchengjiu
engine-class-work
Commits
bb695383
Commit
bb695383
authored
Jan 27, 2022
by
liu_cheng_jiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
c8f99abc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
StudentInfoService.java
...xploring/engine/server/db/service/StudentInfoService.java
+14
-0
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/service/StudentInfoService.java
View file @
bb695383
package
cn
.
exploring
.
engine
.
server
.
db
.
service
;
package
cn
.
exploring
.
engine
.
server
.
db
.
service
;
import
cn.exploring.engine.server.db.dao.SpecialSqlMapper
;
import
cn.exploring.engine.server.db.dao.StudentInfoMapper
;
import
cn.exploring.engine.server.db.dao.StudentInfoMapper
;
import
cn.exploring.engine.server.db.domain.StudentInfo
;
import
cn.exploring.engine.server.db.domain.StudentInfo
;
import
cn.exploring.engine.server.db.domain.StudentInfoExample
;
import
cn.exploring.engine.server.db.domain.StudentInfoExample
;
...
@@ -9,6 +10,7 @@ import org.springframework.util.StringUtils;
...
@@ -9,6 +10,7 @@ import org.springframework.util.StringUtils;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Service
public
class
StudentInfoService
{
public
class
StudentInfoService
{
...
@@ -16,6 +18,9 @@ public class StudentInfoService {
...
@@ -16,6 +18,9 @@ public class StudentInfoService {
@Resource
@Resource
StudentInfoMapper
studentInfoMapper
;
StudentInfoMapper
studentInfoMapper
;
@Resource
SpecialSqlMapper
specialSqlMapper
;
/**
/**
* 添加
* 添加
* @param studentInfo
* @param studentInfo
...
@@ -29,6 +34,15 @@ public class StudentInfoService {
...
@@ -29,6 +34,15 @@ public class StudentInfoService {
return
"添加成功"
;
return
"添加成功"
;
}
}
/**
* 随机选取一个 学生数据
* @param classId
* @return
*/
public
Map
selectStudentInfo
(
Integer
classId
)
{
return
specialSqlMapper
.
selectRandomStudentInfo
(
classId
);
}
/**
/**
* 更新数据
* 更新数据
* @param studentInfo
* @param studentInfo
...
...
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