`uid`, create_time, update_time, username, `password`, create_ip, `status`, sys_type, user_id, tenant_id, is_admin update auth_account set password = #{newPassWord} where sys_type = #{sysType} and user_id = #{userId} insert into auth_account (`uid`,`username`,`password`,`create_ip`,`status`,`sys_type`,`user_id`,`tenant_id`,`is_admin`) values (#{authAccount.uid},#{authAccount.username},#{authAccount.password},#{authAccount.createIp},#{authAccount.status},#{authAccount.sysType},#{authAccount.userId},#{authAccount.tenantId},#{authAccount.isAdmin}); update auth_account username = #{authAccount.username}, password = #{authAccount.password}, status = #{authAccount.status}, where user_id = #{authAccount.userId} and sys_type = #{authAccount.sysType} update auth_account set status = -1 where user_id = #{userId} and sys_type = #{sysType} update auth_account tenant_id = #{authAccount.tenantId}, where user_id = #{userId} and sys_type = #{sysType} and status != -1 limit 1