`id`,`tenant_id`,`type`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status`,`auth_time`,
`base_status`, `base_time`, `domain_status`, `domain_time`, `webdomain_status`, `webdomain_time`, `template_status`, `template_time`,
`current_version`,`current_desc`,`release_time`,
`open_appid`,`bind_open_time`,`refresh_token`,
`access_token`,`access_token_expire`,`enable`,`plat`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `type` = #{type}
and `authorizer_appid` = #{authorizerAppid}
and `head_img` like concat('%', #{headImg},'%')
and `alias` like concat('%', #{alias},'%')
and `qrcode_url` like concat('%', #{qrcodeUrl},'%')
and `create_time` = #{createTime}
and `update_time` = #{updateTime}
and `authorization_status` = #{authorizationStatus}
and `auth_time` = #{authTime}
and `base_status` = #{baseStatus}
and `base_time` = #{baseTime}
and `domain_status` = #{domainStatus}
and `domain_time` = #{domainTime}
and `webdomain_status` = #{webdomainStatus}
and `webdomain_time` = #{webdomainTime}
and `template_status` = #{templateStatus}
and `template_time` = #{templateTime}
and `current_version` = #{currentVersion}
and `current_desc` like concat('%', #{currentDesc},'%')
and `release_time` = #{releaseTime}
and `open_appid` = #{openAppid}
and `bind_open_time` = #{bindOpenTime}
and `enable` = #{enable}
and `plat` = #{plat}
and id in
#{idItem}
order by ${sortColumns}
update wx_authorizer_info
set `current_version` = #{currentVersion}, `current_desc` = #{currentDesc}, `release_time` = #{releaseTime}, `update_time` = #{updateTime}
where `authorizer_appid` = #{authorizerAppid}
update wx_authorizer_info
set `refresh_token` = #{refreshToken}
where `authorizer_appid` = #{authorizerAppid}
update wx_authorizer_info
set `access_token` = #{accessToken}, `access_token_expire` = #{accessTokenExpire}
where `authorizer_appid` = #{authorizerAppid}
update wx_authorizer_info
set `auth_back_num` = `auth_back_num` + 1, `auth_back_time` = #{authBackTime}
where `authorizer_appid` = #{authorizerAppid}
update wx_authorizer_info
set `open_appid` = null, `bind_open_time` = null
where `authorizer_appid` = #{authorizerAppid}
ai.`id`,ai.`tenant_id`,ai.`type`,ai.`authorizer_appid`,ai.`head_img`,ai.`alias`,ai.`qrcode_url`,ai.`create_time`,ai.`update_time`,
ai.`authorization_status`,ai.`auth_time`,
ai.`base_status`,ai.`base_time`,
ai.`domain_status`,ai.`domain_time`,
ai.`webdomain_status`,ai.`webdomain_time`,
ai.`template_status`,ai.`template_time`,
ai.`current_version`,ai.`current_desc`,ai.`release_time`,
ai.`open_appid`,ai.`bind_open_time`,ai.`plat`,
a.`name`
where 1 = 1
and ai.`id` = #{id}
and a.`name` like concat('%', #{name},'%')
and ai.`tenant_id` = #{tenantId}
and ai.`type` = #{type}
and ai.`authorizer_appid` = #{authorizerAppid}
and ai.`authorization_status` = #{authorizationStatus}
and ai.`auth_time` = #{authTime}
and ai.`base_status` = #{baseStatus}
and ai.`base_time` = #{baseTime}
and ai.`domain_status` = #{domainStatus}
and ai.`domain_time` = #{domainTime}
and ai.`webdomain_status` = #{webdomainStatus}
and ai.`webdomain_time` = #{webdomainTime}
and ai.`template_status` = #{templateStatus}
and ai.`template_time` = #{templateTime}
and ai.`current_version` = #{currentVersion}
and ai.`open_appid` = #{openAppid}
and ai.`plat` = #{plat}
and ai.id in
#{idItem}
order by ${sortColumns}