|
|
@ -10,6 +10,8 @@ |
|
|
|
<result column="status" jdbcType="TINYINT" property="status" /> |
|
|
|
<result column="address" jdbcType="VARCHAR" property="address" /> |
|
|
|
<result column="hide_mobile" jdbcType="TINYINT" property="hideMobile" /> |
|
|
|
<result column="avatar" jdbcType="VARCHAR" property="avatar" /> |
|
|
|
<result column="thumb_avatar" jdbcType="VARCHAR" property="thumbAvatar" /> |
|
|
|
<result column="english_name" jdbcType="VARCHAR" property="englishName" /> |
|
|
|
<result column="tall_user_id" jdbcType="BIGINT" property="tallUserId" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
@ -75,8 +77,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, corpid, userid, name, gender, status, address, hide_mobile, english_name, tall_user_id, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
id, corpid, userid, name, gender, status, address, hide_mobile, avatar, thumb_avatar, |
|
|
|
english_name, tall_user_id, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.EmployeeExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,14 +113,16 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.Employee"> |
|
|
|
insert into t_employee (id, corpid, userid, |
|
|
|
name, gender, status, |
|
|
|
address, hide_mobile, english_name, |
|
|
|
tall_user_id, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
address, hide_mobile, avatar, |
|
|
|
thumb_avatar, english_name, tall_user_id, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{corpid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, |
|
|
|
#{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, |
|
|
|
#{address,jdbcType=VARCHAR}, #{hideMobile,jdbcType=TINYINT}, #{englishName,jdbcType=VARCHAR}, |
|
|
|
#{tallUserId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{address,jdbcType=VARCHAR}, #{hideMobile,jdbcType=TINYINT}, #{avatar,jdbcType=VARCHAR}, |
|
|
|
#{thumbAvatar,jdbcType=VARCHAR}, #{englishName,jdbcType=VARCHAR}, #{tallUserId,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.Employee"> |
|
|
|
insert into t_employee |
|
|
@ -147,6 +151,12 @@ |
|
|
|
<if test="hideMobile != null"> |
|
|
|
hide_mobile, |
|
|
|
</if> |
|
|
|
<if test="avatar != null"> |
|
|
|
avatar, |
|
|
|
</if> |
|
|
|
<if test="thumbAvatar != null"> |
|
|
|
thumb_avatar, |
|
|
|
</if> |
|
|
|
<if test="englishName != null"> |
|
|
|
english_name, |
|
|
|
</if> |
|
|
@ -188,6 +198,12 @@ |
|
|
|
<if test="hideMobile != null"> |
|
|
|
#{hideMobile,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="avatar != null"> |
|
|
|
#{avatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="thumbAvatar != null"> |
|
|
|
#{thumbAvatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="englishName != null"> |
|
|
|
#{englishName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -238,6 +254,12 @@ |
|
|
|
<if test="record.hideMobile != null"> |
|
|
|
hide_mobile = #{record.hideMobile,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.avatar != null"> |
|
|
|
avatar = #{record.avatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.thumbAvatar != null"> |
|
|
|
thumb_avatar = #{record.thumbAvatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.englishName != null"> |
|
|
|
english_name = #{record.englishName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -268,6 +290,8 @@ |
|
|
|
status = #{record.status,jdbcType=TINYINT}, |
|
|
|
address = #{record.address,jdbcType=VARCHAR}, |
|
|
|
hide_mobile = #{record.hideMobile,jdbcType=TINYINT}, |
|
|
|
avatar = #{record.avatar,jdbcType=VARCHAR}, |
|
|
|
thumb_avatar = #{record.thumbAvatar,jdbcType=VARCHAR}, |
|
|
|
english_name = #{record.englishName,jdbcType=VARCHAR}, |
|
|
|
tall_user_id = #{record.tallUserId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -301,6 +325,12 @@ |
|
|
|
<if test="hideMobile != null"> |
|
|
|
hide_mobile = #{hideMobile,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="avatar != null"> |
|
|
|
avatar = #{avatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="thumbAvatar != null"> |
|
|
|
thumb_avatar = #{thumbAvatar,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="englishName != null"> |
|
|
|
english_name = #{englishName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -328,6 +358,8 @@ |
|
|
|
status = #{status,jdbcType=TINYINT}, |
|
|
|
address = #{address,jdbcType=VARCHAR}, |
|
|
|
hide_mobile = #{hideMobile,jdbcType=TINYINT}, |
|
|
|
avatar = #{avatar,jdbcType=VARCHAR}, |
|
|
|
thumb_avatar = #{thumbAvatar,jdbcType=VARCHAR}, |
|
|
|
english_name = #{englishName,jdbcType=VARCHAR}, |
|
|
|
tall_user_id = #{tallUserId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|