`id`,`tenant_id`,`parent_tenant_id`,`main_id`,`msg_type`,`third_type`,`err_msg`, `create_date`,`update_date` where 1=1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `main_id` = #{mainId} and `msg_type` = #{msgType} and `third_type` = #{thirdType} and `id` in #{idItem} order by ${sortColumns}