id, org_id, type, number, is_allow_login, sex, login_name, id_card,
real_name, password,
email, mobile, phone, birthday, logo_path, comment, status, is_valid,
create_time,
create_user_id, update_time, update_user_id
and ID = #{id}
and org_id = #{orgId,jdbcType=VARCHAR}
and type = #{type,jdbcType=TINYINT}
and type !=1
and number = #{number,jdbcType=VARCHAR}
and is_allow_login = #{isAllowLogin,jdbcType=TINYINT}
and sex = #{sex,jdbcType=VARCHAR}
and login_name = #{loginName,jdbcType=VARCHAR}
and id_card = #{idCard,jdbcType=VARCHAR}
and real_name like CONCAT("%",#{realName},"%")
and password = #{password,jdbcType=VARCHAR}
and email = #{email,jdbcType=VARCHAR}
and mobile = #{mobile,jdbcType=VARCHAR}
and phone = #{phone,jdbcType=VARCHAR}
and birthday = #{birthday,jdbcType=DATE}
and logo_path = #{logoPath,jdbcType=VARCHAR}
and comment = #{comment,jdbcType=VARCHAR}
and status = #{status,jdbcType=TINYINT}
and is_valid = #{isValid,jdbcType=TINYINT}
and update_time = #{updateTime,jdbcType=TIMESTAMP}
and update_user_id = #{updateUserId,jdbcType=VARCHAR}
order by create_time DESC
limit #{offset}, #{limit}
and ID = #{id}
and type = #{type,jdbcType=TINYINT}
and org_id = #{orgId,jdbcType=VARCHAR}
and is_valid = #{isValid,jdbcType=TINYINT}
order by create_time DESC
limit #{offset}, #{limit}
delete from
t_sys_user
where ID = #{id}
insert into t_sys_user (id, org_id, type,
number, is_allow_login, sex,
login_name, id_card, real_name,
password, real_password, email, mobile,
phone, birthday, logo_path,
comment, status, is_valid,
create_time, create_user_id, update_time,
update_user_id)
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT},
#{number,jdbcType=VARCHAR}, #{isAllowLogin,jdbcType=TINYINT}, #{sex,jdbcType=VARCHAR},
#{loginName,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR},
#{realName,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},#{realPassword,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{birthday,jdbcType=DATE},
#{logoPath,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{isValid,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{updateUserId,jdbcType=VARCHAR})
update t_sys_user
org_id = #{orgId,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
number = #{number,jdbcType=VARCHAR},
is_allow_login = #{isAllowLogin,jdbcType=TINYINT},
sex = #{sex,jdbcType=VARCHAR},
login_name = #{loginName,jdbcType=VARCHAR},
id_card = #{idCard,jdbcType=VARCHAR},
real_name = #{realName,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
real_password = #{realPassword,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
mobile = #{mobile,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
birthday = #{birthday,jdbcType=DATE},
logo_path = #{logoPath,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT},
is_valid = #{isValid,jdbcType=TINYINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_user_id = #{updateUserId,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
delete from
t_sys_user
where
'${id}'