`id`,`tenant_id`,`parent_tenant_id`,`template_id`,`type`,`custom_param`,`create_date`,`update_date`,`on_off` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `template_id` = #{templateId} and `type` = #{type} and `create_date` = #{createDate} and `update_date` = #{updateDate} and `on_off` = #{onOff} and `template_id` is not null and `template_id` <> '' and `type` in #{item} and id in #{idItem} order by ${sortColumns}