|
|
@ -18,6 +18,7 @@ |
|
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
<result column="force_upd_pwd_flag" jdbcType="TINYINT" property="forceUpdPwdFlag" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -79,7 +80,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, tenant_id, user_name, password, nick_name, email, phonenumber, sex, slaver_admin, |
|
|
|
status, del_flag, create_by, create_time, update_by, update_time, remark |
|
|
|
status, del_flag, create_by, create_time, update_by, update_time, remark, force_upd_pwd_flag |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.DmsUserExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,13 +112,13 @@ |
|
|
|
phonenumber, sex, slaver_admin, |
|
|
|
status, del_flag, create_by, |
|
|
|
create_time, update_by, update_time, |
|
|
|
remark) |
|
|
|
remark, force_upd_pwd_flag) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, |
|
|
|
#{password,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, |
|
|
|
#{phonenumber,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, #{slaverAdmin,jdbcType=TINYINT}, |
|
|
|
#{status,jdbcType=CHAR}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
#{remark,jdbcType=VARCHAR}) |
|
|
|
#{remark,jdbcType=VARCHAR}, #{forceUpdPwdFlag,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|
|
|
insert into dms_user |
|
|
@ -170,6 +171,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
remark, |
|
|
|
</if> |
|
|
|
<if test="forceUpdPwdFlag != null"> |
|
|
|
force_upd_pwd_flag, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -220,6 +224,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="forceUpdPwdFlag != null"> |
|
|
|
#{forceUpdPwdFlag,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.DmsUserExample" resultType="java.lang.Long"> |
|
|
@ -279,6 +286,9 @@ |
|
|
|
<if test="record.remark != null"> |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.forceUpdPwdFlag != null"> |
|
|
|
force_upd_pwd_flag = #{record.forceUpdPwdFlag,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -301,7 +311,8 @@ |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR} |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
force_upd_pwd_flag = #{record.forceUpdPwdFlag,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -354,6 +365,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="forceUpdPwdFlag != null"> |
|
|
|
force_upd_pwd_flag = #{forceUpdPwdFlag,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -373,7 +387,8 @@ |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR} |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
force_upd_pwd_flag = #{forceUpdPwdFlag,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |