From 25ead463ca197b7435921eef4b1bf05ff216040f Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Wed, 13 Mar 2024 10:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8Cmapper=20xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/tea/UserController.java | 10 +- .../mapper/StuUserMapper.java | 2 +- .../mapper/SysCourseChapterMapper.java | 4 +- src/main/resources/mapper/StuUserMapper.xml | 91 +- .../mapper/SysCourseChapterMapper.xml | 66 - src/main/resources/mapper/SysCourseMapper.xml | 77 - src/main/resources/mapper/SysLogMapper.xml | 1480 ----------------- .../resources/mapper/TrainingReportMapper.xml | 280 +--- 8 files changed, 94 insertions(+), 1916 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 6701995..7627a4a 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 @@ -4,7 +4,10 @@ import cn.hutool.core.util.IdUtil; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.sztzjy.financial_bigdata.annotation.AnonymousAccess; -import com.sztzjy.financial_bigdata.entity.*; +import com.sztzjy.financial_bigdata.entity.StuClass; +import com.sztzjy.financial_bigdata.entity.StuClassExample; +import com.sztzjy.financial_bigdata.entity.StuUser; +import com.sztzjy.financial_bigdata.entity.StuUserExample; import com.sztzjy.financial_bigdata.entity.stu_dto.StuUserDto; import com.sztzjy.financial_bigdata.mapper.StuClassMapper; import com.sztzjy.financial_bigdata.mapper.StuUserMapper; @@ -20,7 +23,10 @@ import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.List; /** * @Author xcj diff --git a/src/main/java/com/sztzjy/financial_bigdata/mapper/StuUserMapper.java b/src/main/java/com/sztzjy/financial_bigdata/mapper/StuUserMapper.java index d4f3b98..ce2c318 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/mapper/StuUserMapper.java +++ b/src/main/java/com/sztzjy/financial_bigdata/mapper/StuUserMapper.java @@ -33,5 +33,5 @@ public interface StuUserMapper { int updateByPrimaryKey(StuUser record); @Select("select DISTINCT stu_users.school_name from stu_users where school_id =#{schoolId}") - String selectSchoolNameById(@Param("schoolId") String schoolId); + String selectSchoolNameById(@Param("schoolId")String schoolId); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCourseChapterMapper.java b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCourseChapterMapper.java index 8946fc2..005ad67 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCourseChapterMapper.java +++ b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCourseChapterMapper.java @@ -3,8 +3,10 @@ package com.sztzjy.financial_bigdata.mapper; import com.sztzjy.financial_bigdata.entity.SysCourseChapter; import com.sztzjy.financial_bigdata.entity.SysCourseChapterExample; import java.util.List; -import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper public interface SysCourseChapterMapper { long countByExample(SysCourseChapterExample example); diff --git a/src/main/resources/mapper/StuUserMapper.xml b/src/main/resources/mapper/StuUserMapper.xml index 4443917..d6450ae 100644 --- a/src/main/resources/mapper/StuUserMapper.xml +++ b/src/main/resources/mapper/StuUserMapper.xml @@ -2,7 +2,7 @@ - + @@ -17,7 +17,6 @@ - @@ -86,7 +85,7 @@ distinct - from stu_user + from stu_userinfo @@ -94,14 +93,24 @@ order by ${orderByClause} + + + delete from stu_userinfo + where userid = #{userid,jdbcType=VARCHAR} + - delete from stu_user + delete from stu_userinfo - insert into stu_user (userid, name, student_id, + insert into stu_userinfo (userid, name, student_id, class_id, username, password, phone, email, major, role_id, create_time, school_id, @@ -113,7 +122,7 @@ #{schoolName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}) - insert into stu_user + insert into stu_userinfo userid, @@ -204,13 +213,13 @@ - update stu_user + update stu_userinfo userid = #{record.userid,jdbcType=VARCHAR}, @@ -260,7 +269,7 @@ - update stu_user + update stu_userinfo set userid = #{record.userid,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR}, student_id = #{record.studentId,jdbcType=VARCHAR}, @@ -279,4 +288,66 @@ - + + 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper/SysCourseChapterMapper.xml b/src/main/resources/mapper/SysCourseChapterMapper.xml index 7d9f7ba..7b657b7 100644 --- a/src/main/resources/mapper/SysCourseChapterMapper.xml +++ b/src/main/resources/mapper/SysCourseChapterMapper.xml @@ -193,70 +193,4 @@ sequence = #{sequence,jdbcType=INTEGER} where chapter_id = #{chapterId,jdbcType=VARCHAR} - - - - - - - - - - - - - - - - - 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} - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper/SysCourseMapper.xml b/src/main/resources/mapper/SysCourseMapper.xml index 2e15510..45ada86 100644 --- a/src/main/resources/mapper/SysCourseMapper.xml +++ b/src/main/resources/mapper/SysCourseMapper.xml @@ -208,81 +208,4 @@ input_type = #{inputType,jdbcType=VARCHAR} where course_id = #{courseId,jdbcType=VARCHAR} - - - - - - - - - - - - - - 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} - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper/SysLogMapper.xml b/src/main/resources/mapper/SysLogMapper.xml index 7a291b4..456340d 100644 --- a/src/main/resources/mapper/SysLogMapper.xml +++ b/src/main/resources/mapper/SysLogMapper.xml @@ -391,1484 +391,4 @@ open_id = #{openId,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} - - - - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - id, method, request_url, params, result, ip, create_time, result_time, token, student_id, - session, user_id, open_id - - - - - delete from sys_log - where id = #{id,jdbcType=INTEGER} - - - delete from sys_log - - - - - - insert into sys_log (id, method, request_url, - params, result, ip, - create_time, result_time, token, - student_id, session, user_id, - open_id) - values (#{id,jdbcType=INTEGER}, #{method,jdbcType=VARCHAR}, #{requestUrl,jdbcType=VARCHAR}, - #{params,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{resultTime,jdbcType=TIMESTAMP}, #{token,jdbcType=VARCHAR}, - #{studentId,jdbcType=BIGINT}, #{session,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, - #{openId,jdbcType=VARCHAR}) - - - insert into sys_log - - - id, - - - method, - - - request_url, - - - params, - - - result, - - - ip, - - - create_time, - - - result_time, - - - token, - - - student_id, - - - session, - - - user_id, - - - open_id, - - - - - #{id,jdbcType=INTEGER}, - - - #{method,jdbcType=VARCHAR}, - - - #{requestUrl,jdbcType=VARCHAR}, - - - #{params,jdbcType=VARCHAR}, - - - #{result,jdbcType=VARCHAR}, - - - #{ip,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{resultTime,jdbcType=TIMESTAMP}, - - - #{token,jdbcType=VARCHAR}, - - - #{studentId,jdbcType=BIGINT}, - - - #{session,jdbcType=VARCHAR}, - - - #{userId,jdbcType=BIGINT}, - - - #{openId,jdbcType=VARCHAR}, - - - - - - update sys_log - - - id = #{record.id,jdbcType=INTEGER}, - - - method = #{record.method,jdbcType=VARCHAR}, - - - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - - - params = #{record.params,jdbcType=VARCHAR}, - - - result = #{record.result,jdbcType=VARCHAR}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - - - token = #{record.token,jdbcType=VARCHAR}, - - - student_id = #{record.studentId,jdbcType=BIGINT}, - - - session = #{record.session,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=BIGINT}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - - - - - - update sys_log - set id = #{record.id,jdbcType=INTEGER}, - method = #{record.method,jdbcType=VARCHAR}, - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - params = #{record.params,jdbcType=VARCHAR}, - result = #{record.result,jdbcType=VARCHAR}, - ip = #{record.ip,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - token = #{record.token,jdbcType=VARCHAR}, - student_id = #{record.studentId,jdbcType=BIGINT}, - session = #{record.session,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=BIGINT}, - open_id = #{record.openId,jdbcType=VARCHAR} - - - - - - update sys_log - - - method = #{method,jdbcType=VARCHAR}, - - - request_url = #{requestUrl,jdbcType=VARCHAR}, - - - params = #{params,jdbcType=VARCHAR}, - - - result = #{result,jdbcType=VARCHAR}, - - - ip = #{ip,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - result_time = #{resultTime,jdbcType=TIMESTAMP}, - - - token = #{token,jdbcType=VARCHAR}, - - - student_id = #{studentId,jdbcType=BIGINT}, - - - session = #{session,jdbcType=VARCHAR}, - - - user_id = #{userId,jdbcType=BIGINT}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - update sys_log - set method = #{method,jdbcType=VARCHAR}, - request_url = #{requestUrl,jdbcType=VARCHAR}, - params = #{params,jdbcType=VARCHAR}, - result = #{result,jdbcType=VARCHAR}, - ip = #{ip,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - result_time = #{resultTime,jdbcType=TIMESTAMP}, - token = #{token,jdbcType=VARCHAR}, - student_id = #{studentId,jdbcType=BIGINT}, - session = #{session,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=BIGINT}, - open_id = #{openId,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - - - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - id, method, request_url, params, result, ip, create_time, result_time, token, session, - user_id, open_id - - - - - delete from sys_log - where id = #{id,jdbcType=BIGINT} - - - delete from sys_log - - - - - - insert into sys_log (id, method, request_url, - params, result, ip, - create_time, result_time, token, - session, user_id, open_id - ) - values (#{id,jdbcType=BIGINT}, #{method,jdbcType=VARCHAR}, #{requestUrl,jdbcType=VARCHAR}, - #{params,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{resultTime,jdbcType=TIMESTAMP}, #{token,jdbcType=VARCHAR}, - #{session,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{openId,jdbcType=VARCHAR} - ) - - - insert into sys_log - - - id, - - - method, - - - request_url, - - - params, - - - result, - - - ip, - - - create_time, - - - result_time, - - - token, - - - session, - - - user_id, - - - open_id, - - - - - #{id,jdbcType=BIGINT}, - - - #{method,jdbcType=VARCHAR}, - - - #{requestUrl,jdbcType=VARCHAR}, - - - #{params,jdbcType=VARCHAR}, - - - #{result,jdbcType=VARCHAR}, - - - #{ip,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{resultTime,jdbcType=TIMESTAMP}, - - - #{token,jdbcType=VARCHAR}, - - - #{session,jdbcType=VARCHAR}, - - - #{userId,jdbcType=BIGINT}, - - - #{openId,jdbcType=VARCHAR}, - - - - - - update sys_log - - - id = #{record.id,jdbcType=BIGINT}, - - - method = #{record.method,jdbcType=VARCHAR}, - - - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - - - params = #{record.params,jdbcType=VARCHAR}, - - - result = #{record.result,jdbcType=VARCHAR}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - - - token = #{record.token,jdbcType=VARCHAR}, - - - session = #{record.session,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=BIGINT}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - - - - - - update sys_log - set id = #{record.id,jdbcType=BIGINT}, - method = #{record.method,jdbcType=VARCHAR}, - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - params = #{record.params,jdbcType=VARCHAR}, - result = #{record.result,jdbcType=VARCHAR}, - ip = #{record.ip,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - token = #{record.token,jdbcType=VARCHAR}, - session = #{record.session,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=BIGINT}, - open_id = #{record.openId,jdbcType=VARCHAR} - - - - - - update sys_log - - - method = #{method,jdbcType=VARCHAR}, - - - request_url = #{requestUrl,jdbcType=VARCHAR}, - - - params = #{params,jdbcType=VARCHAR}, - - - result = #{result,jdbcType=VARCHAR}, - - - ip = #{ip,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - result_time = #{resultTime,jdbcType=TIMESTAMP}, - - - token = #{token,jdbcType=VARCHAR}, - - - session = #{session,jdbcType=VARCHAR}, - - - user_id = #{userId,jdbcType=BIGINT}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - update sys_log - set method = #{method,jdbcType=VARCHAR}, - request_url = #{requestUrl,jdbcType=VARCHAR}, - params = #{params,jdbcType=VARCHAR}, - result = #{result,jdbcType=VARCHAR}, - ip = #{ip,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - result_time = #{resultTime,jdbcType=TIMESTAMP}, - token = #{token,jdbcType=VARCHAR}, - session = #{session,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=BIGINT}, - open_id = #{openId,jdbcType=VARCHAR} - where id = #{id,jdbcType=BIGINT} - - - - - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - id, method, request_url, params, result, ip, create_time, result_time, token, student_id, - session, user_id, open_id - - - - - delete from sys_log - where id = #{id,jdbcType=INTEGER} - - - delete from sys_log - - - - - - insert into sys_log (id, method, request_url, - params, result, ip, - create_time, result_time, token, - student_id, session, user_id, - open_id) - values (#{id,jdbcType=INTEGER}, #{method,jdbcType=VARCHAR}, #{requestUrl,jdbcType=VARCHAR}, - #{params,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{resultTime,jdbcType=TIMESTAMP}, #{token,jdbcType=VARCHAR}, - #{studentId,jdbcType=BIGINT}, #{session,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, - #{openId,jdbcType=VARCHAR}) - - - insert into sys_log - - - id, - - - method, - - - request_url, - - - params, - - - result, - - - ip, - - - create_time, - - - result_time, - - - token, - - - student_id, - - - session, - - - user_id, - - - open_id, - - - - - #{id,jdbcType=INTEGER}, - - - #{method,jdbcType=VARCHAR}, - - - #{requestUrl,jdbcType=VARCHAR}, - - - #{params,jdbcType=VARCHAR}, - - - #{result,jdbcType=VARCHAR}, - - - #{ip,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{resultTime,jdbcType=TIMESTAMP}, - - - #{token,jdbcType=VARCHAR}, - - - #{studentId,jdbcType=BIGINT}, - - - #{session,jdbcType=VARCHAR}, - - - #{userId,jdbcType=BIGINT}, - - - #{openId,jdbcType=VARCHAR}, - - - - - - update sys_log - - - id = #{record.id,jdbcType=INTEGER}, - - - method = #{record.method,jdbcType=VARCHAR}, - - - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - - - params = #{record.params,jdbcType=VARCHAR}, - - - result = #{record.result,jdbcType=VARCHAR}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - - - token = #{record.token,jdbcType=VARCHAR}, - - - student_id = #{record.studentId,jdbcType=BIGINT}, - - - session = #{record.session,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=BIGINT}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - - - - - - update sys_log - set id = #{record.id,jdbcType=INTEGER}, - method = #{record.method,jdbcType=VARCHAR}, - request_url = #{record.requestUrl,jdbcType=VARCHAR}, - params = #{record.params,jdbcType=VARCHAR}, - result = #{record.result,jdbcType=VARCHAR}, - ip = #{record.ip,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - result_time = #{record.resultTime,jdbcType=TIMESTAMP}, - token = #{record.token,jdbcType=VARCHAR}, - student_id = #{record.studentId,jdbcType=BIGINT}, - session = #{record.session,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=BIGINT}, - open_id = #{record.openId,jdbcType=VARCHAR} - - - - - - update sys_log - - - method = #{method,jdbcType=VARCHAR}, - - - request_url = #{requestUrl,jdbcType=VARCHAR}, - - - params = #{params,jdbcType=VARCHAR}, - - - result = #{result,jdbcType=VARCHAR}, - - - ip = #{ip,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - result_time = #{resultTime,jdbcType=TIMESTAMP}, - - - token = #{token,jdbcType=VARCHAR}, - - - student_id = #{studentId,jdbcType=BIGINT}, - - - session = #{session,jdbcType=VARCHAR}, - - - user_id = #{userId,jdbcType=BIGINT}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - update sys_log - set method = #{method,jdbcType=VARCHAR}, - request_url = #{requestUrl,jdbcType=VARCHAR}, - params = #{params,jdbcType=VARCHAR}, - result = #{result,jdbcType=VARCHAR}, - ip = #{ip,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - result_time = #{resultTime,jdbcType=TIMESTAMP}, - token = #{token,jdbcType=VARCHAR}, - student_id = #{studentId,jdbcType=BIGINT}, - session = #{session,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=BIGINT}, - open_id = #{openId,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - id, create_time, update_time, action, description, ip_address, operator_id, operator_name, - params, user_agent - - - - - delete from sys_log - where id = #{id,jdbcType=VARCHAR} - - - delete from sys_log - - - - - - insert into sys_log (id, create_time, update_time, - action, description, ip_address, - operator_id, operator_name, params, - user_agent) - values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{action,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{ipAddress,jdbcType=VARCHAR}, - #{operatorId,jdbcType=VARCHAR}, #{operatorName,jdbcType=VARCHAR}, #{params,jdbcType=VARCHAR}, - #{userAgent,jdbcType=VARCHAR}) - - - insert into sys_log - - - id, - - - create_time, - - - update_time, - - - action, - - - description, - - - ip_address, - - - operator_id, - - - operator_name, - - - params, - - - user_agent, - - - - - #{id,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{action,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{ipAddress,jdbcType=VARCHAR}, - - - #{operatorId,jdbcType=VARCHAR}, - - - #{operatorName,jdbcType=VARCHAR}, - - - #{params,jdbcType=VARCHAR}, - - - #{userAgent,jdbcType=VARCHAR}, - - - - - - update sys_log - - - id = #{record.id,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - action = #{record.action,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - ip_address = #{record.ipAddress,jdbcType=VARCHAR}, - - - operator_id = #{record.operatorId,jdbcType=VARCHAR}, - - - operator_name = #{record.operatorName,jdbcType=VARCHAR}, - - - params = #{record.params,jdbcType=VARCHAR}, - - - user_agent = #{record.userAgent,jdbcType=VARCHAR}, - - - - - - - - update sys_log - set id = #{record.id,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - action = #{record.action,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - ip_address = #{record.ipAddress,jdbcType=VARCHAR}, - operator_id = #{record.operatorId,jdbcType=VARCHAR}, - operator_name = #{record.operatorName,jdbcType=VARCHAR}, - params = #{record.params,jdbcType=VARCHAR}, - user_agent = #{record.userAgent,jdbcType=VARCHAR} - - - - - - update sys_log - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - action = #{action,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - ip_address = #{ipAddress,jdbcType=VARCHAR}, - - - operator_id = #{operatorId,jdbcType=VARCHAR}, - - - operator_name = #{operatorName,jdbcType=VARCHAR}, - - - params = #{params,jdbcType=VARCHAR}, - - - user_agent = #{userAgent,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update sys_log - set create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - action = #{action,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - ip_address = #{ipAddress,jdbcType=VARCHAR}, - operator_id = #{operatorId,jdbcType=VARCHAR}, - operator_name = #{operatorName,jdbcType=VARCHAR}, - params = #{params,jdbcType=VARCHAR}, - user_agent = #{userAgent,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - log_id, userid, name, student_id, login_time, login_duration, login_ip, ip_address - - - - delete from sys_log - - - - - - insert into sys_log (log_id, userid, name, - student_id, login_time, login_duration, - login_ip, ip_address) - values (#{logId,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{studentId,jdbcType=VARCHAR}, #{loginTime,jdbcType=TIMESTAMP}, #{loginDuration,jdbcType=TIME}, - #{loginIp,jdbcType=VARCHAR}, #{ipAddress,jdbcType=VARCHAR}) - - - insert into sys_log - - - log_id, - - - userid, - - - name, - - - student_id, - - - login_time, - - - login_duration, - - - login_ip, - - - ip_address, - - - - - #{logId,jdbcType=VARCHAR}, - - - #{userid,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{studentId,jdbcType=VARCHAR}, - - - #{loginTime,jdbcType=TIMESTAMP}, - - - #{loginDuration,jdbcType=TIME}, - - - #{loginIp,jdbcType=VARCHAR}, - - - #{ipAddress,jdbcType=VARCHAR}, - - - - - - update sys_log - - - log_id = #{record.logId,jdbcType=VARCHAR}, - - - userid = #{record.userid,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - student_id = #{record.studentId,jdbcType=VARCHAR}, - - - login_time = #{record.loginTime,jdbcType=TIMESTAMP}, - - - login_duration = #{record.loginDuration,jdbcType=TIME}, - - - login_ip = #{record.loginIp,jdbcType=VARCHAR}, - - - ip_address = #{record.ipAddress,jdbcType=VARCHAR}, - - - - - - - - update sys_log - set log_id = #{record.logId,jdbcType=VARCHAR}, - userid = #{record.userid,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - student_id = #{record.studentId,jdbcType=VARCHAR}, - login_time = #{record.loginTime,jdbcType=TIMESTAMP}, - login_duration = #{record.loginDuration,jdbcType=TIME}, - login_ip = #{record.loginIp,jdbcType=VARCHAR}, - ip_address = #{record.ipAddress,jdbcType=VARCHAR} - - - - \ No newline at end of file diff --git a/src/main/resources/mapper/TrainingReportMapper.xml b/src/main/resources/mapper/TrainingReportMapper.xml index b708c16..c55d8fa 100644 --- a/src/main/resources/mapper/TrainingReportMapper.xml +++ b/src/main/resources/mapper/TrainingReportMapper.xml @@ -355,283 +355,5 @@ version = #{version,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR} - - - - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - report_id, chapter_id, chapter_name, user_id, report_name, upload_time, report_size, - teacher_score, file_path, school_id - - - teacher_comment - - - - - delete from training_report - - - - - - insert into training_report (report_id, chapter_id, chapter_name, - user_id, report_name, upload_time, - report_size, teacher_score, file_path, - school_id, teacher_comment) - values (#{reportId,jdbcType=VARCHAR}, #{chapterId,jdbcType=VARCHAR}, #{chapterName,jdbcType=VARCHAR}, - #{userId,jdbcType=VARCHAR}, #{reportName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP}, - #{reportSize,jdbcType=INTEGER}, #{teacherScore,jdbcType=DECIMAL}, #{filePath,jdbcType=VARCHAR}, - #{schoolId,jdbcType=VARCHAR}, #{teacherComment,jdbcType=LONGVARCHAR}) - - - insert into training_report - - - report_id, - - - chapter_id, - - - chapter_name, - - - user_id, - - - report_name, - - - upload_time, - - - report_size, - - - teacher_score, - - - file_path, - - - school_id, - - - teacher_comment, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{chapterId,jdbcType=VARCHAR}, - - - #{chapterName,jdbcType=VARCHAR}, - - - #{userId,jdbcType=VARCHAR}, - - - #{reportName,jdbcType=VARCHAR}, - - - #{uploadTime,jdbcType=TIMESTAMP}, - - - #{reportSize,jdbcType=INTEGER}, - - - #{teacherScore,jdbcType=DECIMAL}, - - - #{filePath,jdbcType=VARCHAR}, - - - #{schoolId,jdbcType=VARCHAR}, - - - #{teacherComment,jdbcType=LONGVARCHAR}, - - - - - - update training_report - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - chapter_id = #{record.chapterId,jdbcType=VARCHAR}, - - - chapter_name = #{record.chapterName,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=VARCHAR}, - - - report_name = #{record.reportName,jdbcType=VARCHAR}, - - - upload_time = #{record.uploadTime,jdbcType=TIMESTAMP}, - - - report_size = #{record.reportSize,jdbcType=INTEGER}, - - - teacher_score = #{record.teacherScore,jdbcType=DECIMAL}, - - - file_path = #{record.filePath,jdbcType=VARCHAR}, - - - school_id = #{record.schoolId,jdbcType=VARCHAR}, - - - teacher_comment = #{record.teacherComment,jdbcType=LONGVARCHAR}, - - - - - - - - update training_report - set report_id = #{record.reportId,jdbcType=VARCHAR}, - chapter_id = #{record.chapterId,jdbcType=VARCHAR}, - chapter_name = #{record.chapterName,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=VARCHAR}, - report_name = #{record.reportName,jdbcType=VARCHAR}, - upload_time = #{record.uploadTime,jdbcType=TIMESTAMP}, - report_size = #{record.reportSize,jdbcType=INTEGER}, - teacher_score = #{record.teacherScore,jdbcType=DECIMAL}, - file_path = #{record.filePath,jdbcType=VARCHAR}, - school_id = #{record.schoolId,jdbcType=VARCHAR}, - teacher_comment = #{record.teacherComment,jdbcType=LONGVARCHAR} - - - - - - update training_report - set report_id = #{record.reportId,jdbcType=VARCHAR}, - chapter_id = #{record.chapterId,jdbcType=VARCHAR}, - chapter_name = #{record.chapterName,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=VARCHAR}, - report_name = #{record.reportName,jdbcType=VARCHAR}, - upload_time = #{record.uploadTime,jdbcType=TIMESTAMP}, - report_size = #{record.reportSize,jdbcType=INTEGER}, - teacher_score = #{record.teacherScore,jdbcType=DECIMAL}, - file_path = #{record.filePath,jdbcType=VARCHAR}, - school_id = #{record.schoolId,jdbcType=VARCHAR} - - - - + \ No newline at end of file