select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, putaway_rule_id, main_rule_id, main_rule, seq_num, storage_space_limit, storage_space_limit_type_id, storage_space_limit_type, usable_location_type, location_type_id, location_type, usable_location_kind, location_kind_id, location_kind from putaway_rule_detail
and create_by_name like concat('%', #{createByName}, '%')
and update_by_name like concat('%', #{updateByName}, '%')
and top_organization_id = #{topOrganizationId}
and organization_id = #{organizationId}
and organization_name like concat('%', #{organizationName}, '%')
and putaway_rule_id = #{putawayRuleId}
and main_rule_id = #{mainRuleId}
and main_rule = #{mainRule}
and seq_num = #{seqNum}
and storage_space_limit = #{storageSpaceLimit}
and storage_space_limit_type_id = #{storageSpaceLimitTypeId}
and storage_space_limit_type = #{storageSpaceLimitType}
and usable_location_type = #{usableLocationType}
and location_type_id = #{locationTypeId}
and location_type = #{locationType}
and usable_location_kind = #{usableLocationKind}
and location_kind_id = #{locationKindId}
and location_kind = #{locationKind}