From 2f2e7ed67b37902cb14b7930c2af9a62a207a20a Mon Sep 17 00:00:00 2001 From: yz <3614508250@qq.com> Date: Sun, 28 Apr 2024 17:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=80=83=E8=AF=95=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E3=80=81=E8=80=83=E8=AF=95=E6=AC=A1=E6=95=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/tea/UserController.java | 21 + .../financial_bigdata/entity/StuUser.java | 13 +- .../entity/StuUserExample.java | 70 ++ .../service/stu/impl/ExamServiceImpl.java | 44 +- .../service/stu/impl/ExerciseServiceImpl.java | 2 +- src/main/resources/mapper/StuUserMapper.xml | 714 +++++++++--------- 6 files changed, 508 insertions(+), 356 deletions(-) diff --git a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/UserController.java b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/UserController.java index 851173b..0bdd924 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/UserController.java +++ b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/UserController.java @@ -11,6 +11,7 @@ import com.sztzjy.financial_bigdata.config.security.TokenProvider; import com.sztzjy.financial_bigdata.entity.*; import com.sztzjy.financial_bigdata.entity.stu_dto.StuUserDto; import com.sztzjy.financial_bigdata.mapper.StuClassMapper; +import com.sztzjy.financial_bigdata.mapper.StuStudentExamMapper; import com.sztzjy.financial_bigdata.mapper.StuUserMapper; import com.sztzjy.financial_bigdata.mapper.SysLoginLogMapper; import com.sztzjy.financial_bigdata.service.tea.ITeaUserService; @@ -55,6 +56,8 @@ public class UserController { private SysLoginLogMapper sysLoginLogMapper; @Resource private AuthenticationManagerBuilder authenticationManagerBuilder; + @Autowired + private StuStudentExamMapper studentExamMapper; // 用户登录时记录的信息 private static LocalDateTime loginTime; @@ -476,4 +479,22 @@ public class UserController { @RequestParam(required = false) String classId) { userService.logExport(response, schoolId, studentId, classId); } + + + @AnonymousAccess + @GetMapping("/getStudentExamPeopleCountAndStudentExamTime") + @ApiOperation("考试人数和考试次数") + public ResultEntity> getStudentExamCountAndStudentCount(String schoolId){ + StuUserExample stuUserExample = new StuUserExample(); + stuUserExample.createCriteria().andSchoolIdEqualTo(schoolId).andExamStatusEqualTo("true"); + //考试人数 + long examPeopleCount= stuUserMapper.countByExample(stuUserExample); + + StuStudentExamExample stuStudentExamExample = new StuStudentExamExample(); + //考试次数 + long examTime = studentExamMapper.countByExample(stuStudentExamExample); + HashMap countMap = new HashMap<>(); + countMap.put(examPeopleCount,examTime); + return new ResultEntity<>(HttpStatus.OK, "考试人数和考试次数查询成功", countMap); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/entity/StuUser.java b/src/main/java/com/sztzjy/financial_bigdata/entity/StuUser.java index 1c3865f..8eead5b 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/entity/StuUser.java +++ b/src/main/java/com/sztzjy/financial_bigdata/entity/StuUser.java @@ -37,7 +37,7 @@ public class StuUser { @ApiModelProperty("专业") private String major; - @ApiModelProperty("角色ID 学生0,老师1") + @ApiModelProperty("3教师 4学生") private Integer roleId; @ApiModelProperty("创建时间") @@ -52,6 +52,9 @@ public class StuUser { @ApiModelProperty("状态 0未删除 1删除") private Integer status; + @ApiModelProperty("是否参加过考试") + private String examStatus; + public String getUserid() { return userid; } @@ -163,4 +166,12 @@ public class StuUser { public void setStatus(Integer status) { this.status = status; } + + public String getExamStatus() { + return examStatus; + } + + public void setExamStatus(String examStatus) { + this.examStatus = examStatus == null ? null : examStatus.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/entity/StuUserExample.java b/src/main/java/com/sztzjy/financial_bigdata/entity/StuUserExample.java index 56e09ac..c08ae9f 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/entity/StuUserExample.java +++ b/src/main/java/com/sztzjy/financial_bigdata/entity/StuUserExample.java @@ -1054,6 +1054,76 @@ public class StuUserExample { addCriterion("status not between", value1, value2, "status"); return (Criteria) this; } + + public Criteria andExamStatusIsNull() { + addCriterion("exam_status is null"); + return (Criteria) this; + } + + public Criteria andExamStatusIsNotNull() { + addCriterion("exam_status is not null"); + return (Criteria) this; + } + + public Criteria andExamStatusEqualTo(String value) { + addCriterion("exam_status =", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusNotEqualTo(String value) { + addCriterion("exam_status <>", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusGreaterThan(String value) { + addCriterion("exam_status >", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusGreaterThanOrEqualTo(String value) { + addCriterion("exam_status >=", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusLessThan(String value) { + addCriterion("exam_status <", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusLessThanOrEqualTo(String value) { + addCriterion("exam_status <=", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusLike(String value) { + addCriterion("exam_status like", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusNotLike(String value) { + addCriterion("exam_status not like", value, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusIn(List values) { + addCriterion("exam_status in", values, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusNotIn(List values) { + addCriterion("exam_status not in", values, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusBetween(String value1, String value2) { + addCriterion("exam_status between", value1, value2, "examStatus"); + return (Criteria) this; + } + + public Criteria andExamStatusNotBetween(String value1, String value2) { + addCriterion("exam_status not between", value1, value2, "examStatus"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExamServiceImpl.java b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExamServiceImpl.java index c30b64c..23dc16a 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExamServiceImpl.java +++ b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExamServiceImpl.java @@ -5,6 +5,7 @@ import com.sztzjy.financial_bigdata.entity.stu_dto.StuCommitCaseExamDto; import com.sztzjy.financial_bigdata.entity.stu_dto.StuTheoryTestDto; import com.sztzjy.financial_bigdata.mapper.*; import com.sztzjy.financial_bigdata.service.stu.IExamService; +import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -23,6 +24,8 @@ public class ExamServiceImpl implements IExamService { SysCaseQuestionStepMapper stepMapper; @Autowired StuExamCaseMapper stuExamCaseMapper; + @Autowired + StuUserMapper userMapper; //如果学生考试表查询不到 则新增一条数据 //根据examManageId 查询该考试的题目idlist 再通过idlist查询题目信息进行返回 @@ -49,6 +52,14 @@ public class ExamServiceImpl implements IExamService { stuExam.setStartTime(new Date()); studentExamMapper.insert(stuExam); List objectiveQuestionList = GenerateExam(examManageId); + + //查询userinfo表 修改考试状态 + StuUser stuUser = userMapper.selectByPrimaryKey(userId); + if(StringUtils.isBlank(stuUser.getExamStatus())){ + stuUser.setExamStatus("true"); + userMapper.updateByPrimaryKey(stuUser); + } + return objectiveQuestionList; }else { StuStudentExamWithBLOBs stuExam = stuStudentExams.get(0); @@ -128,6 +139,7 @@ public class ExamServiceImpl implements IExamService { //案例开始答题 + //先查询考试stustudentexam数据是否生成 //先查询当前时间是否在考试时间之内 //在考试时间外 返回不在考试时间内 //考试时间内 @@ -135,14 +147,40 @@ public class ExamServiceImpl implements IExamService { //根据casestepid、userid、exammanageid 查询该案例的数据 如果有 代表之前提交过 则替换返回的答案 没有 则返回上一步查询的数据 并设置答案为null @Override - public List startCase(String examManageId, String userId, String classId,String caseId) { + public List startCase(String examManageId, String userId, String classId,String caseId){ + + StuStudentExamExample stuExamexample = new StuStudentExamExample(); + stuExamexample.createCriteria().andUseridEqualTo(userId).andExamManageIdEqualTo(examManageId); + List stuStudentExams = studentExamMapper.selectByExampleWithBLOBs(stuExamexample); + if(stuStudentExams==null || stuStudentExams.size()==0){ + StuStudentExamWithBLOBs stuExam = new StuStudentExamWithBLOBs(); + stuExam.setStudentExamId(String.valueOf(UUID.randomUUID())); + stuExam.setExamManageId(examManageId); + stuExam.setUserid(userId); + stuExam.setClassId(classId); + stuExam.setStartTime(new Date()); + studentExamMapper.insert(stuExam); + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + + //查询userinfo表 修改考试状态 + StuUser stuUser = userMapper.selectByPrimaryKey(userId); + if(StringUtils.isBlank(stuUser.getExamStatus())){ + stuUser.setExamStatus("true"); + userMapper.updateByPrimaryKey(stuUser); + } + } + TeaExamManageWithBLOBs manage = examManageMapper.selectByPrimaryKey(examManageId); Date endTime = manage.getEndTime(); if(endTime.before(new Date())){ return null; }else { String caseIdlist = manage.getCaseIdlist(); - List caseIdList = Arrays.asList(caseIdlist.split(", ")); + List caseIdList = Arrays.asList(caseIdlist.split(",")); SysCaseQuestionStepExample example = new SysCaseQuestionStepExample(); if(caseId.equals("first")){ String caseIdFirst = caseIdList.get(0); @@ -195,7 +233,7 @@ public class ExamServiceImpl implements IExamService { SysCaseQuestionStep sysCaseQuestionStep = stepMapper.selectByPrimaryKey(caseStepId); if(stuExamCases==null || stuExamCases.size()==0){ StuExamCase stuExamCase = new StuExamCase(); - stuExamCase.setCaseId(String.valueOf(UUID.randomUUID())); + stuExamCase.setExamCaseId(String.valueOf(UUID.randomUUID())); stuExamCase.setExamManageId(commitCaseExamDto.getExamManageId()); stuExamCase.setCaseId(commitCaseExamDto.getCaseId()); stuExamCase.setStudentAnswer(commitCaseExamDto.getStuAnswer()); diff --git a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExerciseServiceImpl.java b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExerciseServiceImpl.java index d430bcb..c2c9efd 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExerciseServiceImpl.java +++ b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/ExerciseServiceImpl.java @@ -52,7 +52,7 @@ public class ExerciseServiceImpl implements IExerciseService { return dtos; }else { StuTrainingWithBLOBs bloBs = stuTrainingWithBLOBs.get(0); - if (bloBs.getLearningEvalIdlist().isEmpty()) { + if (bloBs==null || bloBs.getLearningEvalIdlist().isEmpty()) { List objectiveQuestionList = objectiveService.selectObjectQuestionListByChapterId(chapterId); for (int i = 0; i < objectiveQuestionList.size(); i++) { SysObjectiveQuestion objectiveQuestion = objectiveQuestionList.get(i); diff --git a/src/main/resources/mapper/StuUserMapper.xml b/src/main/resources/mapper/StuUserMapper.xml index 046cd1d..9a8b385 100644 --- a/src/main/resources/mapper/StuUserMapper.xml +++ b/src/main/resources/mapper/StuUserMapper.xml @@ -1,362 +1,372 @@ - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + - - - - userid - , name, student_id, class_id, username, password, phone, email, major, role_id, - create_time, school_id, school_name, status - - - - - delete - from stu_userinfo - where userid = #{userid,jdbcType=VARCHAR} - - - delete from stu_userinfo - - - - - - insert into stu_userinfo (userid, name, student_id, - class_id, username, password, - phone, email, major, - role_id, create_time, school_id, - school_name, status) - values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR}, - #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, - #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{major,jdbcType=VARCHAR}, - #{roleId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, - #{schoolName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}) - - - insert into stu_userinfo - - - userid, - - - name, - - - student_id, - - - class_id, - - - username, - - - password, - - - phone, - - - email, - - - major, - - - role_id, - - - create_time, - - - school_id, - - - school_name, - - - status, - - - - - #{userid,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{studentId,jdbcType=VARCHAR}, - - - #{classId,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{password,jdbcType=VARCHAR}, - - - #{phone,jdbcType=VARCHAR}, - - - #{email,jdbcType=VARCHAR}, - - - #{major,jdbcType=VARCHAR}, - - - #{roleId,jdbcType=INTEGER}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{schoolId,jdbcType=VARCHAR}, - - - #{schoolName,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - - - - update stu_userinfo - - - userid = #{record.userid,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - student_id = #{record.studentId,jdbcType=VARCHAR}, - - - class_id = #{record.classId,jdbcType=VARCHAR}, - - - username = #{record.username,jdbcType=VARCHAR}, - - - password = #{record.password,jdbcType=VARCHAR}, - - - phone = #{record.phone,jdbcType=VARCHAR}, - - - email = #{record.email,jdbcType=VARCHAR}, - - - major = #{record.major,jdbcType=VARCHAR}, - - - role_id = #{record.roleId,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - school_id = #{record.schoolId,jdbcType=VARCHAR}, - - - school_name = #{record.schoolName,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - - + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + - - - update stu_userinfo - set userid = #{record.userid,jdbcType=VARCHAR}, + + + + + userid, name, student_id, class_id, username, password, phone, email, major, role_id, + create_time, school_id, school_name, status, exam_status + + + + + delete from stu_userinfo + where userid = #{userid,jdbcType=VARCHAR} + + + delete from stu_userinfo + + + + + + insert into stu_userinfo (userid, name, student_id, + class_id, username, password, + phone, email, major, + role_id, create_time, school_id, + school_name, status, exam_status + ) + values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR}, + #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, + #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{major,jdbcType=VARCHAR}, + #{roleId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, + #{schoolName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{examStatus,jdbcType=VARCHAR} + ) + + + insert into stu_userinfo + + + userid, + + + name, + + + student_id, + + + class_id, + + + username, + + + password, + + + phone, + + + email, + + + major, + + + role_id, + + + create_time, + + + school_id, + + + school_name, + + + status, + + + exam_status, + + + + + #{userid,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{studentId,jdbcType=VARCHAR}, + + + #{classId,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{email,jdbcType=VARCHAR}, + + + #{major,jdbcType=VARCHAR}, + + + #{roleId,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{schoolId,jdbcType=VARCHAR}, + + + #{schoolName,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{examStatus,jdbcType=VARCHAR}, + + + + + + update stu_userinfo + + + userid = #{record.userid,jdbcType=VARCHAR}, + + name = #{record.name,jdbcType=VARCHAR}, + + student_id = #{record.studentId,jdbcType=VARCHAR}, + + class_id = #{record.classId,jdbcType=VARCHAR}, + + username = #{record.username,jdbcType=VARCHAR}, + + password = #{record.password,jdbcType=VARCHAR}, + + phone = #{record.phone,jdbcType=VARCHAR}, + + email = #{record.email,jdbcType=VARCHAR}, + + major = #{record.major,jdbcType=VARCHAR}, + + role_id = #{record.roleId,jdbcType=INTEGER}, + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + school_id = #{record.schoolId,jdbcType=VARCHAR}, + + school_name = #{record.schoolName,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER} - - - - - - update stu_userinfo - - - name = #{name,jdbcType=VARCHAR}, - - - student_id = #{studentId,jdbcType=VARCHAR}, - - - class_id = #{classId,jdbcType=VARCHAR}, - - - username = #{username,jdbcType=VARCHAR}, - - - password = #{password,jdbcType=VARCHAR}, - - - phone = #{phone,jdbcType=VARCHAR}, - - - email = #{email,jdbcType=VARCHAR}, - - - major = #{major,jdbcType=VARCHAR}, - - - role_id = #{roleId,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - school_id = #{schoolId,jdbcType=VARCHAR}, - - - school_name = #{schoolName,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - where userid = #{userid,jdbcType=VARCHAR} - - - update stu_userinfo - set name = #{name,jdbcType=VARCHAR}, - student_id = #{studentId,jdbcType=VARCHAR}, - class_id = #{classId,jdbcType=VARCHAR}, - username = #{username,jdbcType=VARCHAR}, - password = #{password,jdbcType=VARCHAR}, - phone = #{phone,jdbcType=VARCHAR}, - email = #{email,jdbcType=VARCHAR}, - major = #{major,jdbcType=VARCHAR}, - role_id = #{roleId,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - school_id = #{schoolId,jdbcType=VARCHAR}, - school_name = #{schoolName,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER} - where userid = #{userid,jdbcType=VARCHAR} - - + + + status = #{record.status,jdbcType=INTEGER}, + + + exam_status = #{record.examStatus,jdbcType=VARCHAR}, + + + + + + + + update stu_userinfo + set userid = #{record.userid,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + student_id = #{record.studentId,jdbcType=VARCHAR}, + class_id = #{record.classId,jdbcType=VARCHAR}, + username = #{record.username,jdbcType=VARCHAR}, + password = #{record.password,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + email = #{record.email,jdbcType=VARCHAR}, + major = #{record.major,jdbcType=VARCHAR}, + role_id = #{record.roleId,jdbcType=INTEGER}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + school_id = #{record.schoolId,jdbcType=VARCHAR}, + school_name = #{record.schoolName,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=INTEGER}, + exam_status = #{record.examStatus,jdbcType=VARCHAR} + + + + + + update stu_userinfo + + + name = #{name,jdbcType=VARCHAR}, + + + student_id = #{studentId,jdbcType=VARCHAR}, + + + class_id = #{classId,jdbcType=VARCHAR}, + + + username = #{username,jdbcType=VARCHAR}, + + + password = #{password,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + email = #{email,jdbcType=VARCHAR}, + + + major = #{major,jdbcType=VARCHAR}, + + + role_id = #{roleId,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + school_id = #{schoolId,jdbcType=VARCHAR}, + + + school_name = #{schoolName,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + exam_status = #{examStatus,jdbcType=VARCHAR}, + + + where userid = #{userid,jdbcType=VARCHAR} + + + update stu_userinfo + set name = #{name,jdbcType=VARCHAR}, + student_id = #{studentId,jdbcType=VARCHAR}, + class_id = #{classId,jdbcType=VARCHAR}, + username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + email = #{email,jdbcType=VARCHAR}, + major = #{major,jdbcType=VARCHAR}, + role_id = #{roleId,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + school_id = #{schoolId,jdbcType=VARCHAR}, + school_name = #{schoolName,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + exam_status = #{examStatus,jdbcType=VARCHAR} + where userid = #{userid,jdbcType=VARCHAR} + INSERT INTO stu_userinfo (userid, name, student_id, class_id, username, password, phone, school_name,email,major, @@ -370,15 +380,15 @@ - - - - - - - - - + + + + + + + + + + + \ No newline at end of file