Commit bb695383 authored by liu_cheng_jiu's avatar liu_cheng_jiu

init

parent c8f99abc
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment