`id`,`tenant_id`,`app_id`,`parent_app_id`,`name`, `secret`,`token`,`aes_key`,`msg_data_format`,`access_token`,`last_token_time`,`expires_in`, `pay_id`,`type`,`mould_type`,`enable`,`plat`,`sort_url`,`business_license`,`icp` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `app_id` = #{appId} and `parent_app_id` like concat('%', #{parentAppId},'%') and `name` like concat('%', #{name},'%') and `secret` like concat('%', #{secret},'%') and `token` like concat('%', #{token},'%') and `aes_key` like concat('%', #{aesKey},'%') and `msg_data_format` like concat('%', #{msgDataFormat},'%') and `access_token` like concat('%', #{accessToken},'%') and `last_token_time` = #{lastTokenTime} and `expires_in` = #{expiresIn} and `pay_id` = #{payId} and `type` = #{type} and `plat` = #{plat} and id in #{idItem} order by ${sortColumns} update wx_appinfo set `access_token` = #{accessToken}, `last_token_time` = #{lastTokenTime}, `expires_in` = #{expiresIn} where `app_id` = #{appId}