|
|
|
@ -9,6 +9,7 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="template_code" jdbcType="VARCHAR" property="templateCode" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
|
@ -69,7 +70,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, name, url, business_template_id, created_at, updated_at, rec_status |
|
|
|
id, name, url, business_template_id, created_at, updated_at, rec_status, template_code |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysTemplateExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
@ -104,10 +105,10 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysTemplate"> |
|
|
|
insert into t_sys_template (id, name, url, |
|
|
|
business_template_id, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
rec_status, template_code) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, |
|
|
|
#{businessTemplateId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{templateCode,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysTemplate"> |
|
|
|
insert into t_sys_template |
|
|
|
@ -133,6 +134,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="templateCode != null"> |
|
|
|
template_code, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
@ -156,6 +160,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="templateCode != null"> |
|
|
|
#{templateCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysTemplateExample" resultType="java.lang.Long"> |
|
|
|
@ -188,6 +195,9 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.templateCode != null"> |
|
|
|
template_code = #{record.templateCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
@ -201,7 +211,8 @@ |
|
|
|
business_template_id = #{record.businessTemplateId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
template_code = #{record.templateCode,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
@ -227,6 +238,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="templateCode != null"> |
|
|
|
template_code = #{templateCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
@ -237,7 +251,8 @@ |
|
|
|
business_template_id = #{businessTemplateId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
template_code = #{templateCode,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |