user_id, user_name,name, user_pwd, user_sex, user_age, user_tel, user_email, user_position,
role_id, dept_id, effective, create_date, creater, update_date, updater, remark
delete from power_user
where user_id = #{userId,jdbcType=INTEGER}
insert into power_user (user_id, user_name,name, user_pwd,
user_sex, user_age, user_tel,
user_email, user_position, role_id,
dept_id, effective, create_date,
creater, update_date, updater,
remark)
values (#{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},
#{userPwd,jdbcType=VARCHAR},
#{userSex,jdbcType=INTEGER}, #{userAge,jdbcType=INTEGER}, #{userTel,jdbcType=VARCHAR},
#{userEmail,jdbcType=VARCHAR}, #{userPosition,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER},
#{deptId,jdbcType=VARCHAR}, #{effective,jdbcType=INTEGER}, #{createDate,jdbcType=CHAR},
#{creater,jdbcType=VARCHAR}, #{updateDate,jdbcType=CHAR}, #{updater,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR})
insert into power_user
user_id,
user_name,
name,
user_pwd,
user_sex,
user_age,
user_tel,
user_email,
user_position,
role_id,
dept_id,
effective,
create_date,
creater,
update_date,
updater,
remark,
#{userId,jdbcType=INTEGER},
#{userName,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{userPwd,jdbcType=VARCHAR},
#{userSex,jdbcType=INTEGER},
#{userAge,jdbcType=INTEGER},
#{userTel,jdbcType=VARCHAR},
#{userEmail,jdbcType=VARCHAR},
#{userPosition,jdbcType=VARCHAR},
#{roleId,jdbcType=INTEGER},
#{deptId,jdbcType=VARCHAR},
#{effective,jdbcType=INTEGER},
#{createDate,jdbcType=CHAR},
#{creater,jdbcType=VARCHAR},
#{updateDate,jdbcType=CHAR},
#{updater,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
update power_user
user_name = #{userName,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
user_pwd = #{userPwd,jdbcType=VARCHAR},
user_sex = #{userSex,jdbcType=INTEGER},
user_age = #{userAge,jdbcType=INTEGER},
user_tel = #{userTel,jdbcType=VARCHAR},
user_email = #{userEmail,jdbcType=VARCHAR},
user_position = #{userPosition,jdbcType=VARCHAR},
role_id = #{roleId,jdbcType=INTEGER},
dept_id = #{deptId,jdbcType=VARCHAR},
effective = #{effective,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=CHAR},
creater = #{creater,jdbcType=VARCHAR},
update_date = #{updateDate,jdbcType=CHAR},
updater = #{updater,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
where user_id = #{userId,jdbcType=INTEGER}
update power_user
set user_name = #{userName,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
user_pwd = #{userPwd,jdbcType=VARCHAR},
user_sex = #{userSex,jdbcType=INTEGER},
user_age = #{userAge,jdbcType=INTEGER},
user_tel = #{userTel,jdbcType=VARCHAR},
user_email = #{userEmail,jdbcType=VARCHAR},
user_position = #{userPosition,jdbcType=VARCHAR},
role_id = #{roleId,jdbcType=INTEGER},
dept_id = #{deptId,jdbcType=VARCHAR},
effective = #{effective,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=CHAR},
creater = #{creater,jdbcType=VARCHAR},
update_date = #{updateDate,jdbcType=CHAR},
updater = #{updater,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR}
where user_id = #{userId,jdbcType=INTEGER}
update power_user u
u.user_pwd = #{userPwd,jdbcType=VARCHAR},
updater = #{updater,jdbcType=VARCHAR},
update_date = #{updateDate,jdbcType=CHAR}
where user_id = #{userId,jdbcType=INTEGER}
INSERT INTO power_user(
user_id,
user_name,
name,
user_pwd,
user_sex,
user_age,
user_tel,
user_email,
user_position,
role_id,
dept_id,
effective,
create_date,
creater,
update_date,
updater,
remark
)
VALUES
(
#{item.userId,jdbcType=INTEGER},
#{item.userName,jdbcType=VARCHAR},
#{item.name,jdbcType=VARCHAR},
#{item.userPwd,jdbcType=VARCHAR},
#{item.userSex,jdbcType=INTEGER},
#{item.userAge,jdbcType=INTEGER},
#{item.userTel,jdbcType=VARCHAR},
#{item.userEmail,jdbcType=VARCHAR},
#{item.userPosition,jdbcType=VARCHAR},
#{item.roleId,jdbcType=INTEGER},
#{item.deptId,jdbcType=VARCHAR},
#{item.effective,jdbcType=INTEGER},
#{item.createDate,jdbcType=CHAR},
#{item.creater,jdbcType=VARCHAR},
#{item.updateDate,jdbcType=CHAR},
#{item.updater,jdbcType=VARCHAR},
#{item.remark,jdbcType=VARCHAR}
)