|
|
@ -2,7 +2,7 @@ |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.acupuncture.system.persist.mapper.DmsUserMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.DmsUser"> |
|
|
|
<id column="id" jdbcType="INTEGER" property="id" /> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|
|
|
<result column="user_name" jdbcType="VARCHAR" property="userName" /> |
|
|
|
<result column="password" jdbcType="VARCHAR" property="password" /> |
|
|
@ -10,6 +10,7 @@ |
|
|
|
<result column="email" jdbcType="VARCHAR" property="email" /> |
|
|
|
<result column="phonenumber" jdbcType="VARCHAR" property="phonenumber" /> |
|
|
|
<result column="sex" jdbcType="CHAR" property="sex" /> |
|
|
|
<result column="slaver_admin" jdbcType="TINYINT" property="slaverAdmin" /> |
|
|
|
<result column="status" jdbcType="CHAR" property="status" /> |
|
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|
|
@ -77,8 +78,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, tenant_id, user_name, password, nick_name, email, phonenumber, sex, status, del_flag, |
|
|
|
create_by, create_time, update_by, update_time, remark |
|
|
|
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 |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.DmsUserExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -94,29 +95,29 @@ |
|
|
|
order by ${orderByClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
from dms_user |
|
|
|
where id = #{id,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</select> |
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|
|
|
delete from dms_user |
|
|
|
where id = #{id,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|
|
|
insert into dms_user (id, tenant_id, user_name, |
|
|
|
password, nick_name, email, |
|
|
|
phonenumber, sex, status, |
|
|
|
del_flag, create_by, create_time, |
|
|
|
update_by, update_time, remark |
|
|
|
) |
|
|
|
values (#{id,jdbcType=INTEGER}, #{tenantId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, |
|
|
|
phonenumber, sex, slaver_admin, |
|
|
|
status, del_flag, create_by, |
|
|
|
create_time, update_by, update_time, |
|
|
|
remark) |
|
|
|
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}, #{status,jdbcType=CHAR}, |
|
|
|
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,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}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|
|
|
insert into dms_user |
|
|
@ -145,6 +146,9 @@ |
|
|
|
<if test="sex != null"> |
|
|
|
sex, |
|
|
|
</if> |
|
|
|
<if test="slaverAdmin != null"> |
|
|
|
slaver_admin, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
status, |
|
|
|
</if> |
|
|
@ -169,7 +173,7 @@ |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=INTEGER}, |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="tenantId != null"> |
|
|
|
#{tenantId,jdbcType=BIGINT}, |
|
|
@ -192,6 +196,9 @@ |
|
|
|
<if test="sex != null"> |
|
|
|
#{sex,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
|
<if test="slaverAdmin != null"> |
|
|
|
#{slaverAdmin,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
#{status,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
@ -225,7 +232,7 @@ |
|
|
|
update dms_user |
|
|
|
<set> |
|
|
|
<if test="record.id != null"> |
|
|
|
id = #{record.id,jdbcType=INTEGER}, |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.tenantId != null"> |
|
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
@ -248,6 +255,9 @@ |
|
|
|
<if test="record.sex != null"> |
|
|
|
sex = #{record.sex,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.slaverAdmin != null"> |
|
|
|
slaver_admin = #{record.slaverAdmin,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.status != null"> |
|
|
|
status = #{record.status,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
@ -276,7 +286,7 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update dms_user |
|
|
|
set id = #{record.id,jdbcType=INTEGER}, |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
|
user_name = #{record.userName,jdbcType=VARCHAR}, |
|
|
|
password = #{record.password,jdbcType=VARCHAR}, |
|
|
@ -284,6 +294,7 @@ |
|
|
|
email = #{record.email,jdbcType=VARCHAR}, |
|
|
|
phonenumber = #{record.phonenumber,jdbcType=VARCHAR}, |
|
|
|
sex = #{record.sex,jdbcType=CHAR}, |
|
|
|
slaver_admin = #{record.slaverAdmin,jdbcType=TINYINT}, |
|
|
|
status = #{record.status,jdbcType=CHAR}, |
|
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|
|
@ -319,6 +330,9 @@ |
|
|
|
<if test="sex != null"> |
|
|
|
sex = #{sex,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
|
<if test="slaverAdmin != null"> |
|
|
|
slaver_admin = #{slaverAdmin,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
status = #{status,jdbcType=CHAR}, |
|
|
|
</if> |
|
|
@ -341,7 +355,7 @@ |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|
|
|
update dms_user |
|
|
@ -352,6 +366,7 @@ |
|
|
|
email = #{email,jdbcType=VARCHAR}, |
|
|
|
phonenumber = #{phonenumber,jdbcType=VARCHAR}, |
|
|
|
sex = #{sex,jdbcType=CHAR}, |
|
|
|
slaver_admin = #{slaverAdmin,jdbcType=TINYINT}, |
|
|
|
status = #{status,jdbcType=CHAR}, |
|
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
|
create_by = #{createBy,jdbcType=VARCHAR}, |
|
|
@ -359,6 +374,6 @@ |
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |