Commit bb695383 authored by liu_cheng_jiu's avatar liu_cheng_jiu

init

parent c8f99abc
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.domain.StudentInfo;
import cn.exploring.engine.server.db.domain.StudentInfoExample;
......@@ -9,6 +10,7 @@ import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
@Service
public class StudentInfoService {
......@@ -16,6 +18,9 @@ public class StudentInfoService {
@Resource
StudentInfoMapper studentInfoMapper;
@Resource
SpecialSqlMapper specialSqlMapper;
/**
* 添加
* @param studentInfo
......@@ -29,6 +34,15 @@ public class StudentInfoService {
return "添加成功";
}
/**
* 随机选取一个 学生数据
* @param classId
* @return
*/
public Map selectStudentInfo(Integer classId) {
return specialSqlMapper.selectRandomStudentInfo(classId);
}
/**
* 更新数据
* @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