id, user_uuid, user_name, password, real_name, age, sex, birth_day, user_level, phone,
role, status, image_path, create_time, modify_time, last_active_time, deleted, wx_open_id, dept_admin
delete from t_user
where id = #{id,jdbcType=INTEGER}
insert into t_user (id, user_uuid, user_name,
password, real_name, age,
sex, birth_day, user_level,
phone, role, status,
image_path, create_time, modify_time,
last_active_time, deleted, wx_open_id
)
values (#{id,jdbcType=INTEGER}, #{userUuid,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER},
#{sex,jdbcType=INTEGER}, #{birthDay,jdbcType=TIMESTAMP}, #{userLevel,jdbcType=INTEGER},
#{phone,jdbcType=VARCHAR}, #{role,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{imagePath,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP},
#{lastActiveTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}, #{wxOpenId,jdbcType=VARCHAR}
)
insert into t_user
id,
user_uuid,
user_name,
password,
real_name,
age,
sex,
birth_day,
user_level,
phone,
role,
status,
image_path,
create_time,
modify_time,
last_active_time,
deleted,
wx_open_id,
#{id,jdbcType=INTEGER},
#{userUuid,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{realName,jdbcType=VARCHAR},
#{age,jdbcType=INTEGER},
#{sex,jdbcType=INTEGER},
#{birthDay,jdbcType=TIMESTAMP},
#{userLevel,jdbcType=INTEGER},
#{phone,jdbcType=VARCHAR},
#{role,jdbcType=INTEGER},
#{status,jdbcType=INTEGER},
#{imagePath,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{modifyTime,jdbcType=TIMESTAMP},
#{lastActiveTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
#{wxOpenId,jdbcType=VARCHAR},
update t_user
user_uuid = #{userUuid,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
real_name = #{realName,jdbcType=VARCHAR},
age = #{age,jdbcType=INTEGER},
sex = #{sex,jdbcType=INTEGER},
birth_day = #{birthDay,jdbcType=TIMESTAMP},
user_level = #{userLevel,jdbcType=INTEGER},
phone = #{phone,jdbcType=VARCHAR},
role = #{role,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
image_path = #{imagePath,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
last_active_time = #{lastActiveTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
wx_open_id = #{wxOpenId,jdbcType=VARCHAR},
dept_admin = #{deptAdmin},
where id = #{id,jdbcType=INTEGER}
update t_user
set user_uuid = #{userUuid,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
real_name = #{realName,jdbcType=VARCHAR},
age = #{age,jdbcType=INTEGER},
sex = #{sex,jdbcType=INTEGER},
birth_day = #{birthDay,jdbcType=TIMESTAMP},
user_level = #{userLevel,jdbcType=INTEGER},
phone = #{phone,jdbcType=VARCHAR},
role = #{role,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
image_path = #{imagePath,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
last_active_time = #{lastActiveTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
wx_open_id = #{wxOpenId,jdbcType=VARCHAR},
dept_admin = #{deptAdmin}
where id = #{id,jdbcType=INTEGER}
insert into t_user
(user_uuid,user_name,password,real_name,age, last_active_time)
values
(#{userUuid,jdbcType=VARCHAR},#{userName},#{password},#{realName},#{age},#{lastActiveTime})
insert into t_user
(user_uuid,user_name,password,real_name,last_active_time,role,status,user_level,deleted)
values
(#{item.userUuid,jdbcType=VARCHAR},#{item.userName,jdbcType=VARCHAR},#{item.password,jdbcType=VARCHAR},#{item.realName,jdbcType=VARCHAR},
#{item.lastActiveTime},#{item.role},#{item.status},#{item.userLevel},0)
update t_user
real_name = #{realName},
age = #{age},
last_active_time = #{lastActiveTime},
where id = #{id}
update t_user set age = #{age} where id in
#{id}
delete from t_user where id in
#{id}
UPDATE t_user SET dept_admin = #{deptAdmin} WHERE id = #{id} AND deleted = 0