新增,修改部分功能,新加字体文件,查询IP归属地文件
parent
d73de94d99
commit
c1de307680
@ -0,0 +1,42 @@
|
||||
package com.sztzjy.financial_bigdata.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
* 知识概要资源表
|
||||
*
|
||||
* @author xcj
|
||||
* sys_knowledge_summary
|
||||
*/
|
||||
public class SysKnowledgeSummary {
|
||||
private String chapterId;
|
||||
|
||||
@ApiModelProperty("文件路径")
|
||||
private String fileUrl;
|
||||
|
||||
@ApiModelProperty("文件名称")
|
||||
private String fileName;
|
||||
|
||||
public String getChapterId() {
|
||||
return chapterId;
|
||||
}
|
||||
|
||||
public void setChapterId(String chapterId) {
|
||||
this.chapterId = chapterId == null ? null : chapterId.trim();
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl == null ? null : fileUrl.trim();
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName == null ? null : fileName.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,409 @@
|
||||
package com.sztzjy.financial_bigdata.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SysKnowledgeSummaryExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public SysKnowledgeSummaryExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andChapterIdIsNull() {
|
||||
addCriterion("chapter_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdIsNotNull() {
|
||||
addCriterion("chapter_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdEqualTo(String value) {
|
||||
addCriterion("chapter_id =", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdNotEqualTo(String value) {
|
||||
addCriterion("chapter_id <>", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdGreaterThan(String value) {
|
||||
addCriterion("chapter_id >", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("chapter_id >=", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdLessThan(String value) {
|
||||
addCriterion("chapter_id <", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("chapter_id <=", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdLike(String value) {
|
||||
addCriterion("chapter_id like", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdNotLike(String value) {
|
||||
addCriterion("chapter_id not like", value, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdIn(List<String> values) {
|
||||
addCriterion("chapter_id in", values, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdNotIn(List<String> values) {
|
||||
addCriterion("chapter_id not in", values, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdBetween(String value1, String value2) {
|
||||
addCriterion("chapter_id between", value1, value2, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChapterIdNotBetween(String value1, String value2) {
|
||||
addCriterion("chapter_id not between", value1, value2, "chapterId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlIsNull() {
|
||||
addCriterion("file_url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlIsNotNull() {
|
||||
addCriterion("file_url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlEqualTo(String value) {
|
||||
addCriterion("file_url =", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlNotEqualTo(String value) {
|
||||
addCriterion("file_url <>", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlGreaterThan(String value) {
|
||||
addCriterion("file_url >", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("file_url >=", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlLessThan(String value) {
|
||||
addCriterion("file_url <", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("file_url <=", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlLike(String value) {
|
||||
addCriterion("file_url like", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlNotLike(String value) {
|
||||
addCriterion("file_url not like", value, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlIn(List<String> values) {
|
||||
addCriterion("file_url in", values, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlNotIn(List<String> values) {
|
||||
addCriterion("file_url not in", values, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlBetween(String value1, String value2) {
|
||||
addCriterion("file_url between", value1, value2, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("file_url not between", value1, value2, "fileUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameIsNull() {
|
||||
addCriterion("file_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameIsNotNull() {
|
||||
addCriterion("file_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameEqualTo(String value) {
|
||||
addCriterion("file_name =", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameNotEqualTo(String value) {
|
||||
addCriterion("file_name <>", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameGreaterThan(String value) {
|
||||
addCriterion("file_name >", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("file_name >=", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameLessThan(String value) {
|
||||
addCriterion("file_name <", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("file_name <=", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameLike(String value) {
|
||||
addCriterion("file_name like", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameNotLike(String value) {
|
||||
addCriterion("file_name not like", value, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameIn(List<String> values) {
|
||||
addCriterion("file_name in", values, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameNotIn(List<String> values) {
|
||||
addCriterion("file_name not in", values, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameBetween(String value1, String value2) {
|
||||
addCriterion("file_name between", value1, value2, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNameNotBetween(String value1, String value2) {
|
||||
addCriterion("file_name not between", value1, value2, "fileName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.sztzjy.financial_bigdata.mapper;
|
||||
|
||||
import com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary;
|
||||
import com.sztzjy.financial_bigdata.entity.SysKnowledgeSummaryExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface SysKnowledgeSummaryMapper {
|
||||
long countByExample(SysKnowledgeSummaryExample example);
|
||||
|
||||
int deleteByExample(SysKnowledgeSummaryExample example);
|
||||
|
||||
int deleteByPrimaryKey(String chapterId);
|
||||
|
||||
int insert(SysKnowledgeSummary record);
|
||||
|
||||
int insertSelective(SysKnowledgeSummary record);
|
||||
|
||||
List<SysKnowledgeSummary> selectByExample(SysKnowledgeSummaryExample example);
|
||||
|
||||
SysKnowledgeSummary selectByPrimaryKey(String chapterId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") SysKnowledgeSummary record, @Param("example") SysKnowledgeSummaryExample example);
|
||||
|
||||
int updateByExample(@Param("record") SysKnowledgeSummary record, @Param("example") SysKnowledgeSummaryExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(SysKnowledgeSummary record);
|
||||
|
||||
int updateByPrimaryKey(SysKnowledgeSummary record);
|
||||
}
|
Binary file not shown.
@ -1,396 +1,438 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.financial_bigdata.mapper.StuStudentExamMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.StuStudentExam">
|
||||
<id column="student_exam_id" jdbcType="VARCHAR" property="studentExamId" />
|
||||
<result column="exam_manage_id" jdbcType="VARCHAR" property="examManageId" />
|
||||
<result column="userid" jdbcType="VARCHAR" property="userid" />
|
||||
<result column="Objective_score" jdbcType="DECIMAL" property="objectiveScore" />
|
||||
<result column="case_score" jdbcType="DECIMAL" property="caseScore" />
|
||||
<result column="total_score" jdbcType="DECIMAL" property="totalScore" />
|
||||
<result column="class_id" jdbcType="VARCHAR" property="classId" />
|
||||
<result column="exam_end_status" jdbcType="VARCHAR" property="examEndStatus" />
|
||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
<result column="single_stu_answer_ids" jdbcType="LONGVARCHAR" property="singleStuAnswerIds" />
|
||||
<result column="many_stu_answer_ids" jdbcType="LONGVARCHAR" property="manyStuAnswerIds" />
|
||||
<result column="judge_stu_answer_ids" jdbcType="LONGVARCHAR" property="judgeStuAnswerIds" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.StuStudentExam">
|
||||
<id column="student_exam_id" jdbcType="VARCHAR" property="studentExamId"/>
|
||||
<result column="exam_manage_id" jdbcType="VARCHAR" property="examManageId"/>
|
||||
<result column="userid" jdbcType="VARCHAR" property="userid"/>
|
||||
<result column="Objective_score" jdbcType="DECIMAL" property="objectiveScore"/>
|
||||
<result column="case_score" jdbcType="DECIMAL" property="caseScore"/>
|
||||
<result column="total_score" jdbcType="DECIMAL" property="totalScore"/>
|
||||
<result column="class_id" jdbcType="VARCHAR" property="classId"/>
|
||||
<result column="exam_end_status" jdbcType="VARCHAR" property="examEndStatus"/>
|
||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
|
||||
type="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
<result column="single_stu_answer_ids" jdbcType="LONGVARCHAR" property="singleStuAnswerIds"/>
|
||||
<result column="many_stu_answer_ids" jdbcType="LONGVARCHAR" property="manyStuAnswerIds"/>
|
||||
<result column="judge_stu_answer_ids" jdbcType="LONGVARCHAR" property="judgeStuAnswerIds"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
student_exam_id, exam_manage_id, userid, Objective_score, case_score, total_score,
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
student_exam_id
|
||||
, exam_manage_id, userid, Objective_score, case_score, total_score,
|
||||
class_id, exam_end_status, start_time
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
single_stu_answer_ids, many_stu_answer_ids, judge_stu_answer_ids
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from stu_student_exam
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from stu_student_exam
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample">
|
||||
delete from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
insert into stu_student_exam (student_exam_id, exam_manage_id, userid,
|
||||
Objective_score, case_score, total_score,
|
||||
class_id, exam_end_status, start_time,
|
||||
single_stu_answer_ids, many_stu_answer_ids,
|
||||
judge_stu_answer_ids)
|
||||
values (#{studentExamId,jdbcType=VARCHAR}, #{examManageId,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},
|
||||
#{objectiveScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL}, #{totalScore,jdbcType=DECIMAL},
|
||||
#{classId,jdbcType=VARCHAR}, #{examEndStatus,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
|
||||
#{singleStuAnswerIds,jdbcType=LONGVARCHAR}, #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
#{judgeStuAnswerIds,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
insert into stu_student_exam
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="studentExamId != null">
|
||||
student_exam_id,
|
||||
</if>
|
||||
<if test="examManageId != null">
|
||||
exam_manage_id,
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userid,
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
Objective_score,
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
case_score,
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score,
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id,
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
exam_end_status,
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time,
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
single_stu_answer_ids,
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
many_stu_answer_ids,
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="studentExamId != null">
|
||||
#{studentExamId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examManageId != null">
|
||||
#{examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
#{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
#{objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
#{caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
#{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
#{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
#{examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
#{startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
#{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
#{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
#{judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_student_exam
|
||||
<set>
|
||||
<if test="record.studentExamId != null">
|
||||
student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.examManageId != null">
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
single_stu_answer_ids
|
||||
, many_stu_answer_ids, judge_stu_answer_ids
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample"
|
||||
resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from stu_student_exam
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete
|
||||
from stu_student_exam
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample">
|
||||
delete from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
insert into stu_student_exam (student_exam_id, exam_manage_id, userid,
|
||||
Objective_score, case_score, total_score,
|
||||
class_id, exam_end_status, start_time,
|
||||
single_stu_answer_ids, many_stu_answer_ids,
|
||||
judge_stu_answer_ids)
|
||||
values (#{studentExamId,jdbcType=VARCHAR}, #{examManageId,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},
|
||||
#{objectiveScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL}, #{totalScore,jdbcType=DECIMAL},
|
||||
#{classId,jdbcType=VARCHAR}, #{examEndStatus,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
|
||||
#{singleStuAnswerIds,jdbcType=LONGVARCHAR}, #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
#{judgeStuAnswerIds,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
insert into stu_student_exam
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="studentExamId != null">
|
||||
student_exam_id,
|
||||
</if>
|
||||
<if test="examManageId != null">
|
||||
exam_manage_id,
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userid,
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
Objective_score,
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
case_score,
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score,
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id,
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
exam_end_status,
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time,
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
single_stu_answer_ids,
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
many_stu_answer_ids,
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="studentExamId != null">
|
||||
#{studentExamId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examManageId != null">
|
||||
#{examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
#{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
#{objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
#{caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
#{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
#{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
#{examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
#{startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
#{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
#{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
#{judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*) from stu_student_exam
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_student_exam
|
||||
<set>
|
||||
<if test="record.studentExamId != null">
|
||||
student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.examManageId != null">
|
||||
exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userid != null">
|
||||
userid = #{record.userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.objectiveScore != null">
|
||||
Objective_score = #{record.objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.caseScore != null">
|
||||
case_score = #{record.caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.totalScore != null">
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.classId != null">
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.examEndStatus != null">
|
||||
exam_end_status = #{record.examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.startTime != null">
|
||||
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.singleStuAnswerIds != null">
|
||||
single_stu_answer_ids = #{record.singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.manyStuAnswerIds != null">
|
||||
many_stu_answer_ids = #{record.manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids = #{record.judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update stu_student_exam
|
||||
set student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userid != null">
|
||||
userid = #{record.userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.objectiveScore != null">
|
||||
Objective_score = #{record.objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.caseScore != null">
|
||||
case_score = #{record.caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.totalScore != null">
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.classId != null">
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.examEndStatus != null">
|
||||
exam_end_status = #{record.examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.startTime != null">
|
||||
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.singleStuAnswerIds != null">
|
||||
single_stu_answer_ids = #{record.singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.manyStuAnswerIds != null">
|
||||
many_stu_answer_ids = #{record.manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids = #{record.judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update stu_student_exam
|
||||
set student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
||||
userid = #{record.userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{record.objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{record.caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{record.examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
||||
single_stu_answer_ids = #{record.singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
many_stu_answer_ids = #{record.manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
judge_stu_answer_ids = #{record.judgeStuAnswerIds,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_student_exam
|
||||
set student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
||||
userid = #{record.userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{record.objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{record.caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{record.examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{record.startTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
update stu_student_exam
|
||||
<set>
|
||||
<if test="examManageId != null">
|
||||
exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
single_stu_answer_ids = #{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
many_stu_answer_ids = #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids = #{judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
update stu_student_exam
|
||||
set exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||
single_stu_answer_ids = #{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
many_stu_answer_ids = #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
judge_stu_answer_ids = #{judgeStuAnswerIds,jdbcType=LONGVARCHAR}
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExam">
|
||||
update stu_student_exam
|
||||
set exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP}
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
judge_stu_answer_ids = #{record.judgeStuAnswerIds,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_student_exam
|
||||
set student_exam_id = #{record.studentExamId,jdbcType=VARCHAR},
|
||||
exam_manage_id = #{record.examManageId,jdbcType=VARCHAR},
|
||||
userid = #{record.userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{record.objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{record.caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{record.examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{record.startTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective"
|
||||
parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
update stu_student_exam
|
||||
<set>
|
||||
<if test="examManageId != null">
|
||||
exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="objectiveScore != null">
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="caseScore != null">
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="examEndStatus != null">
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="singleStuAnswerIds != null">
|
||||
single_stu_answer_ids = #{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="manyStuAnswerIds != null">
|
||||
many_stu_answer_ids = #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="judgeStuAnswerIds != null">
|
||||
judge_stu_answer_ids = #{judgeStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs"
|
||||
parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExamWithBLOBs">
|
||||
update stu_student_exam
|
||||
set exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP},
|
||||
single_stu_answer_ids = #{singleStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
many_stu_answer_ids = #{manyStuAnswerIds,jdbcType=LONGVARCHAR},
|
||||
judge_stu_answer_ids = #{judgeStuAnswerIds,jdbcType=LONGVARCHAR}
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.StuStudentExam">
|
||||
update stu_student_exam
|
||||
set exam_manage_id = #{examManageId,jdbcType=VARCHAR},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
Objective_score = #{objectiveScore,jdbcType=DECIMAL},
|
||||
case_score = #{caseScore,jdbcType=DECIMAL},
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
exam_end_status = #{examEndStatus,jdbcType=VARCHAR},
|
||||
start_time = #{startTime,jdbcType=TIMESTAMP}
|
||||
where student_exam_id = #{studentExamId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectLastExamRank" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) AS exam_rank
|
||||
FROM stu_student_exam se
|
||||
JOIN tea_exam_manage te ON se.exam_manage_id = te.exam_manage_id
|
||||
WHERE se.exam_manage_id = (
|
||||
SELECT exam_manage_id
|
||||
FROM stu_student_exam
|
||||
WHERE userid = #{userId}
|
||||
AND te.end_time <= NOW()
|
||||
ORDER BY te.end_time DESC
|
||||
LIMIT 1
|
||||
)
|
||||
AND se.total_score IS NOT NULL
|
||||
AND se.total_score >= (
|
||||
SELECT total_score
|
||||
FROM stu_student_exam
|
||||
WHERE userid = #{userId} AND te.end_time <= NOW()
|
||||
ORDER BY te.end_time DESC
|
||||
LIMIT 1
|
||||
);
|
||||
</select>
|
||||
|
||||
<select id="selectLastExamRank" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) AS exam_rank
|
||||
FROM stu_student_exam se
|
||||
JOIN tea_exam_manage te ON se.exam_manage_id = te.exam_manage_id
|
||||
WHERE se.exam_manage_id = (
|
||||
SELECT exam_manage_id
|
||||
FROM stu_student_exam
|
||||
WHERE userid = #{userId} AND te.end_time <= NOW()
|
||||
ORDER BY te.end_time DESC
|
||||
LIMIT 1
|
||||
)
|
||||
AND se.total_score IS NOT NULL
|
||||
AND se.total_score >= (
|
||||
SELECT total_score
|
||||
FROM stu_student_exam
|
||||
WHERE userid = #{userId} AND te.end_time <= NOW()
|
||||
ORDER BY te.end_time DESC
|
||||
LIMIT 1
|
||||
);
|
||||
</select>
|
||||
|
||||
<resultMap id="UserMap" type="com.sztzjy.financial_bigdata.entity.StuUser">
|
||||
<result column="student_id" jdbcType="VARCHAR" property="studentId"/>
|
||||
<result column="class_name" jdbcType="VARCHAR" property="classId"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="exam_end_status" jdbcType="VARCHAR" property="phone"/>
|
||||
<result column="case_end_status" jdbcType="VARCHAR" property="email"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getUsersByExamID" parameterType="java.lang.String" resultMap="UserMap">
|
||||
SELECT su.student_id, sc.class_name, su.`name`,sse.exam_end_status,sse.case_end_status
|
||||
FROM `stu_student_exam` sse
|
||||
JOIN stu_userinfo su on sse.userid = su.userid
|
||||
LEFT JOIN stu_class sc ON su.class_id = sc.class_id
|
||||
<where>
|
||||
<if test="examId != null and examId != ''">
|
||||
exam_manage_id = #{examId}
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
AND (su.name LIKE CONCAT('%', #{keyWord}, '%') OR su.student_id LIKE CONCAT('%', #{keyWord}, '%'))
|
||||
</if>
|
||||
<if test="status == 'true'">
|
||||
AND sse.case_end_status = 'true' and sse.exam_end_status = 'true'
|
||||
</if>
|
||||
<if test="status == 'false'">
|
||||
AND (sse.case_end_status != 'true' OR sse.exam_end_status != 'true')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,181 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.financial_bigdata.mapper.SysKnowledgeSummaryMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary">
|
||||
<id column="chapter_id" jdbcType="VARCHAR" property="chapterId" />
|
||||
<result column="file_url" jdbcType="VARCHAR" property="fileUrl" />
|
||||
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
chapter_id, file_url, file_name
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummaryExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_knowledge_summary
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_knowledge_summary
|
||||
where chapter_id = #{chapterId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from sys_knowledge_summary
|
||||
where chapter_id = #{chapterId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummaryExample">
|
||||
delete from sys_knowledge_summary
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary">
|
||||
insert into sys_knowledge_summary (chapter_id, file_url, file_name
|
||||
)
|
||||
values (#{chapterId,jdbcType=VARCHAR}, #{fileUrl,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary">
|
||||
insert into sys_knowledge_summary
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="chapterId != null">
|
||||
chapter_id,
|
||||
</if>
|
||||
<if test="fileUrl != null">
|
||||
file_url,
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="chapterId != null">
|
||||
#{chapterId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileUrl != null">
|
||||
#{fileUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummaryExample" resultType="java.lang.Long">
|
||||
select count(*) from sys_knowledge_summary
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sys_knowledge_summary
|
||||
<set>
|
||||
<if test="record.chapterId != null">
|
||||
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.fileUrl != null">
|
||||
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.fileName != null">
|
||||
file_name = #{record.fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sys_knowledge_summary
|
||||
set chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
||||
file_url = #{record.fileUrl,jdbcType=VARCHAR},
|
||||
file_name = #{record.fileName,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary">
|
||||
update sys_knowledge_summary
|
||||
<set>
|
||||
<if test="fileUrl != null">
|
||||
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where chapter_id = #{chapterId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.SysKnowledgeSummary">
|
||||
update sys_knowledge_summary
|
||||
set file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||
file_name = #{fileName,jdbcType=VARCHAR}
|
||||
where chapter_id = #{chapterId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Binary file not shown.
Loading…
Reference in New Issue