INSERT INTO `docus_system`.`power_user`(`user_id`,
`user_name`,
`name`,
`user_pwd`,
`user_position`,
`role_id`,
`dept_id`,
`create_date`,
`creater`,
`update_date`,
`updater`,
`user_tel`)
VALUES (#{user.userId},#{user.userName},#{user.name},#{user.userPwd},#{user.position},#{user.roleId}
,#{user.deptId},now(),#{user.authorName},now(),#{user.authorName},#{user.telephone})
update `docus_system`.`power_user`
set `updater`=#{user.authorName},
`dept_id`=#{user.deptId},
`user_position`=#{user.position},
`user_tel`=#{user.telephone},
`name`=#{user.name},
`update_date`=now()
where `user_id`=#{user.userId}
delete from `docus_system`.`power_user` where `user_name` = #{userName}