|
|
@ -3,8 +3,8 @@ |
|
|
<mapper namespace="com.ccsens.health.persist.mapper.RealNameAuthMapper"> |
|
|
<mapper namespace="com.ccsens.health.persist.mapper.RealNameAuthMapper"> |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="id_card" jdbcType="BIGINT" property="idCard" /> |
|
|
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
|
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
|
|
<result column="post" jdbcType="TINYINT" property="post" /> |
|
|
<result column="post" jdbcType="TINYINT" property="post" /> |
|
|
<result column="no" jdbcType="VARCHAR" property="no" /> |
|
|
<result column="no" jdbcType="VARCHAR" property="no" /> |
|
|
@ -72,7 +72,7 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, employee_id, id_card, name, post, no, phone, created_at, updated_at, rec_status |
|
|
id, user_id, id_card, name, post, no, phone, created_at, updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.RealNameAuthExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.RealNameAuthExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -105,11 +105,11 @@ |
|
|
</if> |
|
|
</if> |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
insert into t_real_name_auth (id, employee_id, id_card, |
|
|
insert into t_real_name_auth (id, user_id, id_card, |
|
|
name, post, no, phone, |
|
|
name, post, no, phone, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, updated_at, rec_status |
|
|
) |
|
|
) |
|
|
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{idCard,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{idCard,jdbcType=VARCHAR}, |
|
|
#{name,jdbcType=VARCHAR}, #{post,jdbcType=TINYINT}, #{no,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, |
|
|
#{name,jdbcType=VARCHAR}, #{post,jdbcType=TINYINT}, #{no,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
) |
|
|
) |
|
|
@ -120,8 +120,8 @@ |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
id, |
|
|
id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
employee_id, |
|
|
user_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="idCard != null"> |
|
|
<if test="idCard != null"> |
|
|
id_card, |
|
|
id_card, |
|
|
@ -152,11 +152,11 @@ |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
#{id,jdbcType=BIGINT}, |
|
|
#{id,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
#{employeeId,jdbcType=BIGINT}, |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="idCard != null"> |
|
|
<if test="idCard != null"> |
|
|
#{idCard,jdbcType=BIGINT}, |
|
|
#{idCard,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="name != null"> |
|
|
<if test="name != null"> |
|
|
#{name,jdbcType=VARCHAR}, |
|
|
#{name,jdbcType=VARCHAR}, |
|
|
@ -193,11 +193,11 @@ |
|
|
<if test="record.id != null"> |
|
|
<if test="record.id != null"> |
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.employeeId != null"> |
|
|
<if test="record.userId != null"> |
|
|
employee_id = #{record.employeeId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.idCard != null"> |
|
|
<if test="record.idCard != null"> |
|
|
id_card = #{record.idCard,jdbcType=BIGINT}, |
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.name != null"> |
|
|
<if test="record.name != null"> |
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
@ -228,8 +228,8 @@ |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
update t_real_name_auth |
|
|
update t_real_name_auth |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
employee_id = #{record.employeeId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
id_card = #{record.idCard,jdbcType=BIGINT}, |
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
post = #{record.post,jdbcType=TINYINT}, |
|
|
post = #{record.post,jdbcType=TINYINT}, |
|
|
no = #{record.no,jdbcType=VARCHAR}, |
|
|
no = #{record.no,jdbcType=VARCHAR}, |
|
|
@ -244,11 +244,11 @@ |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
update t_real_name_auth |
|
|
update t_real_name_auth |
|
|
<set> |
|
|
<set> |
|
|
<if test="employeeId != null"> |
|
|
<if test="userId != null"> |
|
|
employee_id = #{employeeId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="idCard != null"> |
|
|
<if test="idCard != null"> |
|
|
id_card = #{idCard,jdbcType=BIGINT}, |
|
|
id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="name != null"> |
|
|
<if test="name != null"> |
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
@ -276,8 +276,8 @@ |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.RealNameAuth"> |
|
|
update t_real_name_auth |
|
|
update t_real_name_auth |
|
|
set employee_id = #{employeeId,jdbcType=BIGINT}, |
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
id_card = #{idCard,jdbcType=BIGINT}, |
|
|
id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
post = #{post,jdbcType=TINYINT}, |
|
|
post = #{post,jdbcType=TINYINT}, |
|
|
no = #{no,jdbcType=VARCHAR}, |
|
|
no = #{no,jdbcType=VARCHAR}, |
|
|
|