199 lines
7.3 KiB
XML
199 lines
7.3 KiB
XML
<?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.chaozhanggui.system.cashierservice.dao.CodeColumnConfigMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
|
|
<id column="column_id" jdbcType="BIGINT" property="columnId" />
|
|
<result column="table_name" jdbcType="VARCHAR" property="tableName" />
|
|
<result column="column_name" jdbcType="VARCHAR" property="columnName" />
|
|
<result column="column_type" jdbcType="VARCHAR" property="columnType" />
|
|
<result column="dict_name" jdbcType="VARCHAR" property="dictName" />
|
|
<result column="extra" jdbcType="VARCHAR" property="extra" />
|
|
<result column="form_show" jdbcType="BIT" property="formShow" />
|
|
<result column="form_type" jdbcType="VARCHAR" property="formType" />
|
|
<result column="key_type" jdbcType="VARCHAR" property="keyType" />
|
|
<result column="list_show" jdbcType="BIT" property="listShow" />
|
|
<result column="not_null" jdbcType="BIT" property="notNull" />
|
|
<result column="query_type" jdbcType="VARCHAR" property="queryType" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
<result column="date_annotation" jdbcType="VARCHAR" property="dateAnnotation" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
column_id, table_name, column_name, column_type, dict_name, extra, form_show, form_type,
|
|
key_type, list_show, not_null, query_type, remark, date_annotation
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from code_column_config
|
|
where column_id = #{columnId,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from code_column_config
|
|
where column_id = #{columnId,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
|
|
insert into code_column_config (column_id, table_name, column_name,
|
|
column_type, dict_name, extra,
|
|
form_show, form_type, key_type,
|
|
list_show, not_null, query_type,
|
|
remark, date_annotation)
|
|
values (#{columnId,jdbcType=BIGINT}, #{tableName,jdbcType=VARCHAR}, #{columnName,jdbcType=VARCHAR},
|
|
#{columnType,jdbcType=VARCHAR}, #{dictName,jdbcType=VARCHAR}, #{extra,jdbcType=VARCHAR},
|
|
#{formShow,jdbcType=BIT}, #{formType,jdbcType=VARCHAR}, #{keyType,jdbcType=VARCHAR},
|
|
#{listShow,jdbcType=BIT}, #{notNull,jdbcType=BIT}, #{queryType,jdbcType=VARCHAR},
|
|
#{remark,jdbcType=VARCHAR}, #{dateAnnotation,jdbcType=VARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
|
|
insert into code_column_config
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="columnId != null">
|
|
column_id,
|
|
</if>
|
|
<if test="tableName != null">
|
|
table_name,
|
|
</if>
|
|
<if test="columnName != null">
|
|
column_name,
|
|
</if>
|
|
<if test="columnType != null">
|
|
column_type,
|
|
</if>
|
|
<if test="dictName != null">
|
|
dict_name,
|
|
</if>
|
|
<if test="extra != null">
|
|
extra,
|
|
</if>
|
|
<if test="formShow != null">
|
|
form_show,
|
|
</if>
|
|
<if test="formType != null">
|
|
form_type,
|
|
</if>
|
|
<if test="keyType != null">
|
|
key_type,
|
|
</if>
|
|
<if test="listShow != null">
|
|
list_show,
|
|
</if>
|
|
<if test="notNull != null">
|
|
not_null,
|
|
</if>
|
|
<if test="queryType != null">
|
|
query_type,
|
|
</if>
|
|
<if test="remark != null">
|
|
remark,
|
|
</if>
|
|
<if test="dateAnnotation != null">
|
|
date_annotation,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="columnId != null">
|
|
#{columnId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="tableName != null">
|
|
#{tableName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="columnName != null">
|
|
#{columnName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="columnType != null">
|
|
#{columnType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="dictName != null">
|
|
#{dictName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="extra != null">
|
|
#{extra,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="formShow != null">
|
|
#{formShow,jdbcType=BIT},
|
|
</if>
|
|
<if test="formType != null">
|
|
#{formType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="keyType != null">
|
|
#{keyType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="listShow != null">
|
|
#{listShow,jdbcType=BIT},
|
|
</if>
|
|
<if test="notNull != null">
|
|
#{notNull,jdbcType=BIT},
|
|
</if>
|
|
<if test="queryType != null">
|
|
#{queryType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="remark != null">
|
|
#{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="dateAnnotation != null">
|
|
#{dateAnnotation,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
|
|
update code_column_config
|
|
<set>
|
|
<if test="tableName != null">
|
|
table_name = #{tableName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="columnName != null">
|
|
column_name = #{columnName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="columnType != null">
|
|
column_type = #{columnType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="dictName != null">
|
|
dict_name = #{dictName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="extra != null">
|
|
extra = #{extra,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="formShow != null">
|
|
form_show = #{formShow,jdbcType=BIT},
|
|
</if>
|
|
<if test="formType != null">
|
|
form_type = #{formType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="keyType != null">
|
|
key_type = #{keyType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="listShow != null">
|
|
list_show = #{listShow,jdbcType=BIT},
|
|
</if>
|
|
<if test="notNull != null">
|
|
not_null = #{notNull,jdbcType=BIT},
|
|
</if>
|
|
<if test="queryType != null">
|
|
query_type = #{queryType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="remark != null">
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="dateAnnotation != null">
|
|
date_annotation = #{dateAnnotation,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where column_id = #{columnId,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
|
|
update code_column_config
|
|
set table_name = #{tableName,jdbcType=VARCHAR},
|
|
column_name = #{columnName,jdbcType=VARCHAR},
|
|
column_type = #{columnType,jdbcType=VARCHAR},
|
|
dict_name = #{dictName,jdbcType=VARCHAR},
|
|
extra = #{extra,jdbcType=VARCHAR},
|
|
form_show = #{formShow,jdbcType=BIT},
|
|
form_type = #{formType,jdbcType=VARCHAR},
|
|
key_type = #{keyType,jdbcType=VARCHAR},
|
|
list_show = #{listShow,jdbcType=BIT},
|
|
not_null = #{notNull,jdbcType=BIT},
|
|
query_type = #{queryType,jdbcType=VARCHAR},
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
date_annotation = #{dateAnnotation,jdbcType=VARCHAR}
|
|
where column_id = #{columnId,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper> |