`id`,`tenant_id`,`app_id`,`type`,`user_version`,`version_desc`,`code_status`,`code_err_code`,`code_time`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `app_id` = #{appId}
and `type` = #{type}
and `user_version` = #{userVersion}
and `code_status` = #{codeStatus}
and `code_time` = #{codeTime}
and id in
#{idItem}
order by ${sortColumns}
update wx_weapp_code_status
set `user_version` = #{userVersion}, `version_desc`= #{versionDesc},
`code_status` = #{codeStatus}, `code_err_code` = #{codeErrCode}, `code_time` = #{codeTime}
where `app_id` = #{appId} and `type` = #{type}
c.`id`,c.`tenant_id`,c.`app_id`,c.`type`,c.`user_version`,c.`version_desc`,c.`code_status`,c.`code_err_code`,c.`code_time`, a.`name`
where 1 = 1
and c.`id` = #{id}
and c.`tenant_id` = #{tenantId}
and c.`app_id` = #{appId}
and c.`type` = #{type}
and c.`user_version` = #{userVersion}
and c.`code_status` = #{codeStatus}
and a.`name` like concat('%', #{name},'%')
and id in
#{idItem}
order by ${sortColumns}