新增,修改部分功能,新加字体文件,查询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.
@ -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