<?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.changhong.epc.tenant.mapper.tenant.system.EpcShowColumnMapper">
|
<resultMap type="com.changhong.epc.bean.tenant.system.EpcShowColumn" id="epcShowColumnRes">
|
<id property="id" column="id"/>
|
<result property="formId" column="formId"/>
|
<result property="dataStatus" column="data_status"/>
|
<result property="personId" column="personId"/>
|
<result property="text" column="text"/>
|
<result property="insP" column="ins_p"/>
|
<result property="insT" column="ins_t"/>
|
<result property="updP" column="upd_p"/>
|
<result property="updT" column="upd_t"/>
|
</resultMap>
|
|
|
<sql id="epcShowColumnMapper">
|
id,data_status,formId,personId,text,ins_p,ins_t,upd_p,upd_t
|
</sql>
|
|
|
<update id="insertShowColumn">
|
insert
|
epc_form_show_column_{rule}
|
(formId,text,data_status,personId,ins_p,ins_t,upd_p,upd_t)
|
values(#{epc.formId},#{epc.text},#{epc.dataStatus},#{openId},#{epc.insP},#{epc.insT},#{epc.updP},#{epc.updT})
|
</update>
|
|
<!--insert-->
|
<!--epc_form_show_column_100000001_7-->
|
<!--(formId,text,data_status,personId,ins_p,ins_t,upd_p,upd_t)-->
|
<!--values(123,'name:123',true,123,'guoqy',20191213,'guoqy',20191213);-->
|
<select id="selectShowColumnById" resultMap="epcShowColumnRes">
|
select
|
<include refid="epcShowColumnMapper"/>
|
from epc_form_show_column_{rule}
|
where formId = #{epc.formId} and personId = #{openId}
|
</select>
|
|
<delete id="deleteShowColumnById">
|
delete from epc_form_show_column_{rule}
|
where formId = #{epc.formId} and personId = #{openId}
|
</delete>
|
|
<update id="updateShowColumnById">
|
insert
|
epc_form_show_column_{rule}
|
(formId,text,data_status,personId,ins_p,ins_t,upd_p,upd_t)
|
values(#{epc.formId},#{epc.text},#{epc.dataStatus},#{openId},#{epc.insP},#{epc.insT},#{epc.updP},#{epc.updT})
|
</update>
|
</mapper>
|