|
@ -1,7 +1,7 @@ |
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
<?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"> |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.ccsens.form.persist.mapper.FormModuleConfigOptionMapper"> |
|
|
<mapper namespace="com.ccsens.form.persist.mapper.FormModuleOptionMapper"> |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormModuleOption"> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<result column="form_module_id" jdbcType="BIGINT" property="formModuleId" /> |
|
|
<result column="form_module_id" jdbcType="BIGINT" property="formModuleId" /> |
|
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
|
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
|
@ -75,13 +75,13 @@ |
|
|
id, form_module_id, parent_id, option_key, option_value, sequence, operator, created_at, |
|
|
id, form_module_id, parent_id, option_key, option_value, sequence, operator, created_at, |
|
|
updated_at, rec_status |
|
|
updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigOptionExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormModuleOptionExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
<if test="distinct"> |
|
|
<if test="distinct"> |
|
|
distinct |
|
|
distinct |
|
|
</if> |
|
|
</if> |
|
|
<include refid="Base_Column_List" /> |
|
|
<include refid="Base_Column_List" /> |
|
|
from t_form_module_config_option |
|
|
from t_form_module_option |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -92,21 +92,21 @@ |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
<include refid="Base_Column_List" /> |
|
|
<include refid="Base_Column_List" /> |
|
|
from t_form_module_config_option |
|
|
from t_form_module_option |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</select> |
|
|
</select> |
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|
|
delete from t_form_module_config_option |
|
|
delete from t_form_module_option |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</delete> |
|
|
</delete> |
|
|
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigOptionExample"> |
|
|
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormModuleOptionExample"> |
|
|
delete from t_form_module_config_option |
|
|
delete from t_form_module_option |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|
|
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormModuleOption"> |
|
|
insert into t_form_module_config_option (id, form_module_id, parent_id, |
|
|
insert into t_form_module_option (id, form_module_id, parent_id, |
|
|
option_key, option_value, sequence, |
|
|
option_key, option_value, sequence, |
|
|
operator, created_at, updated_at, |
|
|
operator, created_at, updated_at, |
|
|
rec_status) |
|
|
rec_status) |
|
@ -115,8 +115,8 @@ |
|
|
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormModuleOption"> |
|
|
insert into t_form_module_config_option |
|
|
insert into t_form_module_option |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
id, |
|
|
id, |
|
@ -182,14 +182,14 @@ |
|
|
</if> |
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigOptionExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.form.bean.po.FormModuleOptionExample" resultType="java.lang.Long"> |
|
|
select count(*) from t_form_module_config_option |
|
|
select count(*) from t_form_module_option |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
<include refid="Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
<update id="updateByExampleSelective" parameterType="map"> |
|
|
<update id="updateByExampleSelective" parameterType="map"> |
|
|
update t_form_module_config_option |
|
|
update t_form_module_option |
|
|
<set> |
|
|
<set> |
|
|
<if test="record.id != null"> |
|
|
<if test="record.id != null"> |
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
@ -227,7 +227,7 @@ |
|
|
</if> |
|
|
</if> |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
update t_form_module_config_option |
|
|
update t_form_module_option |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|
|
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|
|
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|
|
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|
@ -242,8 +242,8 @@ |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.form.bean.po.FormModuleOption"> |
|
|
update t_form_module_config_option |
|
|
update t_form_module_option |
|
|
<set> |
|
|
<set> |
|
|
<if test="formModuleId != null"> |
|
|
<if test="formModuleId != null"> |
|
|
form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|
|
form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|
@ -275,8 +275,8 @@ |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.form.bean.po.FormModuleOption"> |
|
|
update t_form_module_config_option |
|
|
update t_form_module_option |
|
|
set form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|
|
set form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|
|
parent_id = #{parentId,jdbcType=BIGINT}, |
|
|
parent_id = #{parentId,jdbcType=BIGINT}, |
|
|
option_key = #{optionKey,jdbcType=VARCHAR}, |
|
|
option_key = #{optionKey,jdbcType=VARCHAR}, |