Method, server, user equipment and system for data screening function

By converting the service filter data into standard filter data with preset data structures, the problem of poor scalability of data filtering functions in the prior art is solved, dynamic issuance and expansion is realized, and reusability is improved.

CN113836383BActive Publication Date: 2025-02-11KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110925464.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2025-02-11
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In the prior art, the data filtering function has poor scalability, and fields and services are bound to be written and written, resulting in low reuse rate and it is difficult to achieve dynamic dispatch and expansion.

Method used

By receiving filter data acquisition requests from user equipment, forwarding them to the corresponding service server based on business information, and obtaining and converting business filter data into standard filter data. The filter options in standard filter data have a preset data structure and can be dynamically distributed and Expand.

Benefits of technology

It realizes the dynamic distribution and expansion capabilities of data filtering functions, improves the reusability of business code and UI, and enables the same set of data structures for screening data for different businesses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113836383B_ABST
    Figure CN113836383B_ABST
Patent Text Reader

Abstract

The present invention provides a method, server, user device and system for data screening function, including: receiving a screening data acquisition request from a user device, the screening data acquisition request including business information; forwarding the screening data acquisition request to a corresponding business server according to the business information, and receiving business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes screening items and the hierarchical relationship between the screening items; based on the information of the screening items and the hierarchical relationship between the multiple screening items, converting the business screening data into standard screening data, and sending the standard screening data to the user device for the user device to generate a UI interface; wherein the screening items in the standard screening data have a preset data structure. The method, server, user device and system for data screening function provided by the present invention have a screening data structure that is independent of the business, so that the screening data has the ability to be dynamically sent and is easy to expand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, server, user equipment and system for data screening function. Background Art

[0002] In the big data platform, the data filtering function provides great convenience for obtaining target data. However, the existing data filtering function has various filtering data formats and is bound to business fields and businesses. Figure 2 The diagram is a schematic diagram of a screening format for business screening data in the prior art. Figure 3 It is a schematic diagram of another screening format of business screening data in the prior art. Figure 2 The filter items of the business filter data shown include: for the first-level filter item "transaction status", the second-level filter items include "unlimited" and "valid". Figure 2 The filter items are designed to filter the transaction status. The relevant fields are hard-coded with the transaction status filtering business, and the field values ​​cannot be changed automatically. Figure 3 The filter items of the business filter data shown include: for the first-level filter item "price", the second-level filter item includes "total price"; the sub-filter items under the second-level filter item "total price" include "unlimited", "less than 800,000", etc. That is, Figure 3 The filter items are designed for price filtering. The relevant fields are hard-coded with the price filtering business, and the field values ​​cannot be changed automatically. If you want to implement other filtering functions, you need to redefine the fields and re-establish the filtering data.

[0003] Therefore, in the data structure of the existing screening data, the fields and services are hard-coded. The hard-coded binding of fields and services brings the following problems:

[0004] The data screening function has poor scalability and lacks the ability to be dynamically distributed. The UI developed by the business side based on the data format is only for specific businesses and has a low reuse rate. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a method, a server, a user device and a system for data screening function.

[0006] The present invention provides a method for a data filtering function, which is applied to a filtering relay server, and the method comprises: receiving a filtering data acquisition request from a user device, wherein the filtering data acquisition request comprises business information; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data comprises information on a filtering item and a hierarchical relationship between multiple filtering items; converting the business filtering data into standard filtering data based on the information on the filtering item and the hierarchical relationship between multiple filtering items, and sending the standard filtering data to the user device so that the user device can generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure.

[0007] According to a method for data screening function provided by the present invention, the screening data acquisition request also includes user data, so that the business server can acquire corresponding business screening data according to the user data after receiving the screening data acquisition request.

[0008] According to a method for data filtering function provided by the present invention, the business filtering data is converted into standard filtering data based on the information of the hierarchical relationship between the filtering items and multiple filtering items, including: converting the parent filtering items into corresponding K values ​​according to the hierarchical relationship, and converting the corresponding child filtering items into corresponding Value values.

[0009] According to a method for data screening function provided by the present invention, the method further comprises: using a children field to define a list of child screening items corresponding to the parent screening item in the standard screening data.

[0010] The present invention also provides another method for data filtering function, which is applied to a user device, and the method includes: receiving standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; parsing the standard filtering data to obtain a parsing result, and the parsing result includes information on the hierarchical relationship between the filtering items and multiple filtering items; and generating a UI interface for data filtering based on the information on the hierarchical relationship between the filtering items and multiple filtering items.

[0011] The present invention also provides a screening relay server, comprising: a request receiving module, used to: receive a screening data acquisition request from a user device, the screening data acquisition request including business information; a data relay module, used to: forward the screening data acquisition request to a corresponding business server according to the business information, and receive business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information on the hierarchical relationship between the screening items and the multiple screening items; a standardization processing module, used to: convert the business screening data into standard screening data based on the information on the hierarchical relationship between the screening items and the multiple screening items, and send the standard screening data to the user device so that the user device can generate a UI interface; wherein the screening items in the standard screening data have a preset data structure.

[0012] The present invention also provides a user device, including: a data receiving module, used to: receive standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; a data parsing module, used to: parse the standard filtering data to obtain parsing results, wherein the parsing results include information on the hierarchical relationship between the filtering items and multiple filtering items; a UI interface generating module, used to: generate a UI interface for data filtering based on the information on the hierarchical relationship between the filtering items and multiple filtering items.

[0013] The present invention also provides a system for data screening function, comprising: a screening relay server, a user device and at least one business server; wherein: the screening relay server is used to: receive a screening data acquisition request from a user device, wherein the screening data acquisition request includes business information; forward the screening data acquisition request to a corresponding business server according to the business information, and receive business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information on the hierarchical relationship between the screening items and the multiple screening items; based on the information on the hierarchical relationship between the screening items and the multiple screening items, convert the business screening data into standard screening data, and convert the standard The filtering data is sent to the user device so that the user device generates a UI interface; wherein the filtering items in the standard filtering data have a preset data structure; the business server is used to: receive the filtering data acquisition request, and obtain the business filtering data according to the filtering data acquisition request, and send the business filtering data to the filtering relay server; the user device is used to: receive the standard filtering data sent by the filtering relay server; parse the standard filtering data to obtain a parsing result, the parsing result including the filtering items and the information of the hierarchical relationship between the multiple filtering items; generate a UI interface for data filtering according to the information of the filtering items and the hierarchical relationship between the multiple filtering items.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described methods for data screening functions are implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for data screening functions.

[0016] The present invention also provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-described methods for data screening functions.

[0017] The method, server, user device and system for data filtering function provided by the present invention receive a filtering data acquisition request from a user device, forward the filtering data acquisition request to a corresponding business server according to business information, receive business filtering data returned by the business server, obtain information on filtering items and hierarchical relationships between multiple filtering items based on the business filtering data, convert the business filtering data into standard filtering data with a preset data structure for the filtering items based on the information on the hierarchical relationships between the filtering items and the multiple filtering items, send the standard filtering data to the user device for the user device to generate a UI interface, the data structure of the filtering items in the standard filtering data is independent of the business, that is, the filtering items of different businesses can use the same set of data structures, so that the filtering data has the ability to be dynamically issued and is easy to expand, and the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is one of the flow charts of the method for data screening function provided by the present invention;

[0020] Figure 2 It is a schematic diagram of a screening format of business screening data in the prior art;

[0021] Figure 3 It is a schematic diagram of another screening format of business screening data in the prior art;

[0022] Figure 4 It is a schematic diagram of the screening format of standard screening data in the method for data screening function provided by the present invention;

[0023] Figure 5 This is the second flow chart of the method for data screening function provided by the present invention;

[0024] Figure 6 This is the third flow chart of the method for data screening function provided by the present invention;

[0025] Figure 7 It is a schematic diagram of the data structure of the screening items in the standard screening data in the method for the data screening function provided by the present invention;

[0026] Figure 8 It is a display schematic diagram of the UI interface in the method for data screening function provided by the present invention;

[0027] Fig. 9 It is a structural schematic diagram of the screening transfer server provided by the present invention;

[0028] Fig.10 is a structural schematic diagram of a user equipment provided by the present invention;

[0029] Fig.11 It is a structural schematic diagram of a system for data screening function provided by the present invention;

[0030] Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] Combine the following Figure 1-Figure 12 The method, server, user equipment and system for data screening function of the present invention are described.

[0033] Figure 1 FIG. 1 is one of the flow charts of the method for data screening function provided by the present invention. Figure 1 As shown, the method includes:

[0034] Step 101: Receive a screening data acquisition request from a user device, where the screening data acquisition request includes service information.

[0035] First, it should be noted that the method for data screening provided by the present invention can be used to dynamically generate a data screening UI interface. The generated UI interface includes screening items for screening, and corresponding UI interfaces can be generated for different business needs. The generated UI interface is used in the actual target data screening process.

[0036] The method for data screening function provided by the present invention can be applied to a server, such as a screening relay server. The screening relay server receives a screening data acquisition request from a user device, and the screening data acquisition request includes business information. Among them, the business information may, for example, include information of a business server that handles related businesses. In addition, the business information may also include business types, such as second-hand housing business and rental business. Generally, a plurality of business tags are provided in the APP interface of the user device, corresponding to different businesses, and by clicking on the corresponding business tag, you can enter the details page of the corresponding business, such as the listing page of second-hand housing and the listing page of rental housing. When the user device receives the click information of the business tag of the corresponding business, it can be set to trigger the sending of the screening data acquisition request to the screening relay server.

[0037] Step 102: forward the screening data acquisition request to the corresponding business server according to the business information, and receive the business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information on screening items and hierarchical relationships between multiple screening items.

[0038] The corresponding business server is obtained according to the business information, and the request for obtaining the filtering data is forwarded to the corresponding business server. The business server does not necessarily only process one type of business. After receiving the request for obtaining the filtering data, the business server obtains the corresponding business filtering data according to the business type in the business information. Among them, the business filtering data includes the filtering items and the hierarchical relationship between the filtering items. The business filtering data can be represented by a filtering format customized by the business end (business server), for example, Figure 2 , Figure 3 The business filtering data shown, that is, the business server can construct the business filtering data using the existing filtering format, as long as the hierarchical relationship between the filtering items and the filtering items can be clearly expressed. The filtering transfer server can obtain the filtering items and the hierarchical relationship between the filtering items according to the business filtering data, but the filtering formats used by the business filtering data of each business server may be different.

[0039] Step 103: convert the business filtering data into standard filtering data based on the filtering items and the information of the hierarchical relationship between the multiple filtering items, and send the standard filtering data to the user device so that the user device can generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure.

[0040] The screening relay server converts the business screening data into standard screening data based on the obtained hierarchical relationship between the screening items and the screening items, and the screening items in the standard screening data have a preset data structure. The standard screening data includes information on the hierarchical relationship between the screening items and the screening items obtained from the business screening data. That is, the screening relay server obtains information on the hierarchical relationship between the screening items and the screening items by parsing the business screening data, and converts the business screening data into standard screening data that uses a preset structure to represent the screening items according to the information on the hierarchical relationship between the screening items and the screening items. The preset data structure of the screening items may include, for example, a screening item name field, a screening method field, a default selected value field, a field where the present screening item is a child screening item, a field where the present screening item is a parent screening item, and a field representing information on the child screening items of the present screening item. Since the parent screening item and the child screening item both use the same data structure, the child screening item is further described using this data structure in the field representing the information on the child screening items of the present screening item, and the standard screening data is obtained by nesting. As for the information on each field in the preset data structure, it can be obtained by parsing the business screening data.

[0041] Since the filter items in the standard filter data have a unified data structure, to display the filter list on the user device, you only need to implement a set of UI components, that is, you only need to implement the data filter UI interface based on the standard filter data. Different businesses will correspond to different business filter data, that is, they will correspond to different filter items and specific values ​​of the hierarchical relationship between the filter items. You only need to display the specific filter items and the hierarchical relationship between the filter items on the UI interface. You can use a set of UI components to implement the data filter UI interface display for various businesses.

[0042] For example, if the user clicks on the transaction status business label, a filtering data acquisition request is sent to the filtering transfer server. The filtering data acquisition request includes business information, that is, the transaction status; the business server obtains the business filtering data corresponding to the transaction status according to the business information in the filtering data acquisition request, such as Figure 2The business filtering data shown is sent to the filtering relay server. The business filtering data includes filtering items corresponding to the transaction status and the hierarchical relationship between the filtering items. The filtering relay server parses the business filtering data, obtains the filtering items in the transaction status data and the hierarchical relationship between the filtering items, and converts the business filtering data into standard filtering data based on the obtained filtering items and the hierarchical relationship between the filtering items. The standard filtering data includes the filtering items in the transaction status data and the hierarchical relationship between the filtering items, and the data structure of the filtering items in the standard filtering data adopts a pre-set structure. The obtained standard filtering data is sent to the user device, and the user device generates a UI interface for transaction status filtering based on the UI components designed based on the pre-set data structure and the information on the filtering items and the hierarchical relationship of the transaction status.

[0043] For another example, if the user clicks on a price service label, a filtering data acquisition request is sent to the filtering transfer server. The filtering data acquisition request includes service information, namely, price. The service server acquires service filtering data corresponding to the price according to the service information in the filtering data acquisition request. For example, Figure 3 The business filtering data shown is sent to the filtering relay server. The business filtering data includes filtering items corresponding to the price and the hierarchical relationship between the filtering items. The filtering relay server parses the business filtering data, obtains the filtering items in the price data and the hierarchical relationship between the filtering items, and converts the business filtering data into standard filtering data based on the obtained filtering items and the hierarchical relationship between the filtering items. The standard filtering data includes the filtering items in the price data and the hierarchical relationship between the filtering items, and the data structure of the filtering items in the standard filtering data adopts a pre-set structure. The obtained standard filtering data is sent to the user device, and the user device generates a UI interface for price filtering based on the UI components designed based on the pre-set data structure and the information on the filtering items and the hierarchical relationship of the price.

[0044] Therefore, the present invention standardizes the screening data and smoothes the business-related information, so that the screening data has the ability to be dynamically expanded and issued. Figure 2 , Figure 3 The fields corresponding to the filter items are different from those hard-coded in the business binding. The data structure of the filter items of the standard filter data in the present invention is independent of the specific business, that is, a uniformly defined field is used to represent the filter item information. The filter items of the filter data of different businesses can be represented by the same set of data structures. The filtering transit server converts the non-standard business filtering data into standard filtering data, and sends the standard filtering data to the user device for display. Since the fields are not bound to the business, they can be displayed using the same set of UI. The data structure of the filter items in the filtering data is separated from the business and is no longer bound to the specific business, so that the filtering data can be dynamically issued, and the UI components developed based on this data structure are independent of the business.

[0045] It should be noted that if the service screening data returned by the service server is standard screening data, the screening transfer server does not need to perform standardization processing on the service screening data and can directly send the service screening data to the user equipment.

[0046] The method for data filtering function provided by the present invention receives a filtering data acquisition request from a user device, forwards the filtering data acquisition request to a corresponding business server according to business information, receives business filtering data returned by the business server, obtains filtering items and information on hierarchical relationships between multiple filtering items based on the business filtering data, converts the business filtering data into standard filtering data with a preset data structure for the filtering items based on the information on the hierarchical relationships between the filtering items and the multiple filtering items, and sends the standard filtering data to the user device for the user device to generate a UI interface. The data structure of the filtering items in the standard filtering data is independent of the business, that is, the filtering items of different businesses can use the same set of data structures, so that the filtering data has the ability to be dynamically issued and is easy to expand. In addition, the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI.

[0047] According to a method for data screening function provided by the present invention, the screening data acquisition request also includes user data, so that the business server can acquire corresponding business screening data according to the user data after receiving the screening data acquisition request.

[0048] In addition to business information, the request for obtaining filtered data may also include user data. User data can be obtained from the logged-in user account information. When filtering data, different filtering items can be displayed according to different user types or user position levels, that is, corresponding UI interfaces can be generated for different users. The business server can obtain the corresponding business filtering data based on the business type in the business information and the user data, and return it to the filtering relay server. The filtering relay server standardizes the business filtering data to generate standard filtering data, and sends the standard filtering data to the user device for display.

[0049] The method for data screening function provided by the present invention can obtain corresponding business screening data according to different users and display them separately by including user data in the screening data acquisition request.

[0050] According to a method for data filtering function provided by the present invention, the business filtering data is converted into standard filtering data based on the information of the hierarchical relationship between the filtering items and multiple filtering items, including: converting the parent filtering items into corresponding K values ​​according to the hierarchical relationship, and converting the corresponding child filtering items into corresponding Value values.

[0051] Different from the binding of fields to services in the prior art, in the present invention, service screening data can be represented by K values ​​and Value values. When the service changes, it is only necessary to replace the specific value of K value or Value value. When converting service screening data to standard screening data, by obtaining the hierarchical relationship between the screening items, the parent screening items are converted to the corresponding K values, and the corresponding child screening items are converted to the corresponding Value values, thereby obtaining the hierarchical relationship of the standard screening data. For a K-Value data pair, Value is the next level of data of K.

[0052] Figure 4 Schematic diagram of the screening format of standard screening data in the method for data screening function provided by the present invention. Figure 4 As shown in the figure, when the K value (key) is "rent_price", the corresponding Value value is "month_rent", which means that the rental price is the monthly rent. When the K value is "month_price", the corresponding Value value is "2000:3000", which means that the monthly rent is 2000 to 3000. Of course, you can set multiple levels in the standard filtering data according to different filtering levels.

[0053] The method for data screening function provided by the present invention uses the standard of K-Value structure to screen data, thereby simply realizing the universality of the data screening structure for different businesses.

[0054] According to a method for data screening function provided by the present invention, the method further comprises: using a children field to define a list of child screening items corresponding to the parent screening item in the standard screening data.

[0055] When filtering data, it is necessary to set the hierarchical relationship between different filter items. In the present invention, the Value value of the child filter item corresponding to the parent filter item in the standard filtering data is written using the children field, so as to obtain a list of child filter items corresponding to the parent filter item. In addition, when the child filter item is used as the parent filter item of the next level, it is also necessary to write the K value of the parent filter item of the next level, so as to clarify the hierarchical relationship between the filter items. The parent-child hierarchy can be represented by the same set of data structures.

[0056] like Figure 4As shown in the figure, the first children field displayed from top to bottom, "month-rent" is the value of the child filter item of the parent filter item "rent-price", and "month-price" is the K value when the monthly rent price is used as the parent filter item. "month-rent" and "month-price" have the same meaning, both indicating the rental price in months. Since one is used to indicate the K value and the other is used to indicate the value, they are expressed in different forms.

[0057] The method for data screening provided by the present invention defines a list of child screening items corresponding to the parent screening items in the standard screening data by using the children field, thereby clarifying the hierarchical relationship between the screening items in a simple manner.

[0058] Figure 5 This is the second flow chart of the method for data screening function provided by the present invention. Figure 5 As shown, the method includes:

[0059] Step 201: Receive standard screening data sent by a screening relay server; wherein the screening items in the standard screening data have a preset data structure.

[0060] The method for data screening function provided by the present invention can be used for user equipment. The screening relay server standardizes the service screening data returned by the service server into standard screening data and sends it to the user equipment. The user equipment receives the standard screening data sent by the screening relay server. The screening items in the standard screening data have a preset data structure.

[0061] Step 202: parse the standard screening data to obtain a parsing result, wherein the parsing result includes information on the screening items and the hierarchical relationship between the multiple screening items.

[0062] The user device parses the standard filtering data to obtain a parsing result. The user parses the standard filtering data to obtain a hierarchical relationship between the filtering items. The parsing result includes the hierarchical relationship between the filtering items.

[0063] Step 203: Generate a UI interface for data filtering according to the filtering items and the information of the hierarchical relationship between the multiple filtering items.

[0064] The user device generates a UI interface for data filtering based on the parsing results. The user device can dynamically display the filtering UI. The user device does not need to understand the specific business needs, but only needs to process the parsing standard filtering data and display it. The user device only needs to implement a set of UIs based on the data structure of the filtering items in the standard filtering data to achieve dynamic delivery and expansion of the filtering function.

[0065] The method for data screening function provided by the present invention receives standard screening data sent by a screening relay server, parses the standard screening data to obtain parsing results, and generates a UI interface for data screening according to the parsing results. The data structure of the screening items in the screening data is independent of the business, that is, the screening items of different businesses can use the same set of data structures, so that the screening data has the ability to be dynamically issued and is easy to expand. In addition, the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI.

[0066] Figure 6 This is the third flow chart of the method for data screening function provided by the present invention. Figure 7 It is a schematic diagram of the data structure of the screening items in the standard screening data in the method for the data screening function provided by the present invention. Figure 8 Schematic diagram of the UI interface display in the method for data screening function provided by the present invention. Figure 4 , Figure 6 to Figure 8 The steps of the method for data screening function provided by the present invention are further described. Figure 6 As shown, the method for data screening provided by the present invention comprises the following steps:

[0067] ① When the device (user device) requests filtering data, it directly requests the filtering relay server to obtain the filtering data.

[0068] ② The screening transfer server forwards the specific request to the specific business server.

[0069] ③ The business server dynamically returns the business screening data according to the needs, and the screening transfer server converts the business screening data into standard screening data (this step is one of the core of the present invention. By standardizing the screening data, the business related information is smoothed, so that the screening data has the ability to be dynamically expanded and issued). The data structure of the screening items in the standard screening data is as follows: Figure 7As shown, these fields are used to define filter items to construct standard filter data. The fields of filter items in standard filter data include: name (used to display the text when filtering), type (indicates the type of filter data, such as single choice, multiple choice or custom input), key (indicates the K value when it is a parent filter item), Value (indicates the Value value when it is a child filter item), defaultValue (default selected value. If the Value value of a child filter item is the same as the defaultValue, the child filter item is set to the selected state when the data is initialized), childern (child filter item definition field), ext (set the maximum, minimum value, unit, etc. when filtering). Standard filter data holds a list of child filter items through the children field, forming a parent-child hierarchical relationship. Both parent filter items and child filter items can be used. Figure 7 The data structure shown is defined to implement UI display.

[0070] ④ The screening transfer server returns the standardized data to the user device.

[0071] ⑤Device dynamically displays the filtering UI.

[0072] The device dynamically displays the filtering UI. The device does not need to understand the specific business needs. It only needs to process and parse the standard filtering data and display it (this step is one of the core steps. The device only needs to implement a set of UI according to the standard filtering data to realize the dynamic distribution and expansion of the filtering function). Figure 4 and Figure 8 As shown:

[0073] 1. The user selects the first-level sub-filter item [Monthly rent value:month_rent] under [Rent key:rent_price];

[0074] 2. And further select the second-level sub-filter item (2500-3000 yuan, value: 2500: 3000) under the first-level sub-filter item (monthly rent, key: month_price);

[0075] 3. The screening parameters at this time are:

[0076] {

[0077] rent_price:month_rent,

[0078] month_price:2500:3000

[0079] }

[0080] The returned [Filter Parameters] are completely issued by the backend (filter transfer server) (issued through standard filter data, that is, the corresponding filter parameters are returned according to the standard filter data). There is no need to hard-code the code on the frontend (user device). It has the ability to issue dynamically. The backend only needs to issue fixed-format filter data (standard filter data), such as K-Value format filter data, to complete the filtering function.

[0081] The screening relay server, user equipment and system for data screening function provided by the present invention are described below. The screening relay server, user equipment and system for data screening function described below can be referenced to each other with the method for data screening function described above.

[0082] Fig. 9 Schematic diagram of the structure of the screening transfer server provided by the present invention. Fig. 9 As shown, the screening relay server includes a request receiving module 10, a data relay module 20 and a standardization processing module 30, wherein: the request receiving module 10 is used to: receive a screening data acquisition request from a user device, the screening data acquisition request includes business information; the data relay module 20 is used to: forward the screening data acquisition request to a corresponding business server according to the business information, and receive business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information on the hierarchical relationship between the screening items and the multiple screening items; the standardization processing module 30 is used to: convert the business screening data into standard screening data based on the information on the hierarchical relationship between the screening items and the multiple screening items, and send the standard screening data to the user device so that the user device can generate a UI interface; wherein the screening items in the standard screening data have a preset data structure.

[0083] The screening relay server provided by the present invention receives a screening data acquisition request from a user device, forwards the screening data acquisition request to a corresponding business server according to business information, receives business screening data returned by the business server, obtains information on screening items and hierarchical relationships between multiple screening items based on the business screening data, converts the business screening data into standard screening data with a preset data structure for the screening items based on the information on the screening items and the hierarchical relationships between the multiple screening items, and sends the standard screening data to the user device for the user device to generate a UI interface. The data structure of the screening items in the standard screening data is independent of the business, that is, the screening items of different businesses can use the same set of data structures, so that the screening data has the ability to be dynamically issued and is easy to expand. In addition, the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI.

[0084] According to a screening relay server provided by the present invention, the screening data acquisition request also includes user data, so that the business server can acquire corresponding business screening data according to the user data after receiving the screening data acquisition request.

[0085] The screening transfer server provided by the present invention can obtain corresponding business screening data according to different users and display them separately by including user data in the screening data acquisition request.

[0086] According to a screening relay server provided by the present invention, when the standardization processing module 30 is used to convert the business screening data into standard screening data based on the information of the hierarchical relationship between the screening items and multiple screening items, it includes: converting the parent screening items into corresponding K values ​​according to the hierarchical relationship, and converting the corresponding child screening items into corresponding Value values.

[0087] The screening transfer server provided by the present invention uses the standard screening data of the K-Value structure to simply realize the universality of the data screening structure for different businesses.

[0088] According to a screening relay server provided by the present invention, the standardization processing module 30 is further configured to define a list of child screening items corresponding to the parent screening item in the standard screening data by using the children field.

[0089] The screening transfer server provided by the present invention defines a list of child screening items corresponding to the parent screening items in the standard screening data by using the children field, thereby clarifying the hierarchical relationship between the screening items in a simple manner.

[0090] Fig.10 Schematic diagram of the structure of the user equipment provided by the present invention. Fig.10 As shown, the user device includes a data receiving module 100, a data parsing module 200 and a UI interface generating module 300, wherein: the data receiving module 100 is used to: receive standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; the data parsing module 200 is used to: parse the standard filtering data to obtain a parsing result, and the parsing result includes information on the hierarchical relationship between the filtering items and multiple filtering items; the UI interface generating module 300 is used to: generate a UI interface for data filtering according to the information on the hierarchical relationship between the filtering items and multiple filtering items.

[0091] The user equipment provided by the present invention receives standard filtering data sent by a filtering relay server, parses the standard filtering data to obtain parsing results, and generates a UI interface for data filtering based on the parsing results. The data structure of the filtering items in the filtering data is independent of the business, that is, the filtering items of different businesses can use the same set of data structures, so that the filtering data has the ability to be dynamically issued and is easy to expand. In addition, the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI.

[0092] Fig.11 Schematic diagram of the structure of the system for data screening provided by the present invention. Fig.11 As shown, the system includes a screening relay server 1, a user device 2 and at least one business server 3; wherein: the screening relay server 1 is used to: receive a screening data acquisition request from the user device 2, wherein the screening data acquisition request includes business information; forward the screening data acquisition request to the corresponding business server 3 according to the business information, and receive business screening data returned by the business server 3; wherein the business screening data includes information about the hierarchical relationship between the screening items and the multiple screening items; based on the information about the hierarchical relationship between the screening items and the multiple screening items, convert the business screening data into standard screening data, and send the standard screening data to the user device 2, so that the user device 2 generates a UI interface; wherein the filtering items in the standard filtering data have a preset data structure; the business server 3 is used to: receive the filtering data acquisition request, and obtain the business filtering data according to the filtering data acquisition request, and send the business filtering data to the filtering relay server 1; the user device 2 is used to: receive the standard filtering data sent by the filtering relay server 1; parse the standard filtering data to obtain a parsing result, the parsing result includes information on the hierarchical relationship between the filtering items and multiple filtering items; generate a UI interface for data filtering according to the information on the hierarchical relationship between the filtering items and multiple filtering items.

[0093] The system for data filtering function provided by the present invention receives a filtering data acquisition request from a user device, forwards the filtering data acquisition request to a corresponding business server according to business information, receives business filtering data returned by the business server, obtains filtering items and information on the hierarchical relationship between multiple filtering items based on the business filtering data, converts the business filtering data into standard filtering data based on the information on the filtering items and the hierarchical relationship between multiple filtering items, and sends the standard filtering data to the user device for the user device to generate a UI interface. The data structure of the filtering items in the standard filtering data is independent of the business, that is, the filtering items of different businesses can use the same set of data structures, so that the filtering data has the ability to be dynamically issued and is easy to expand. In addition, the UI components developed based on this data structure are independent of the business, thereby improving the reusability of the business code and the UI.

[0094] Fig.12 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Fig.12 As shown, the electronic device may include: a processor (processor) 1210, a communication interface (Communications Interface) 1220, a memory (memory) 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220, and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 can call the logic instructions in the memory 1230 to execute a method for a data filtering function, the method comprising: receiving a filtering data acquisition request from a user device, the filtering data acquisition request comprising business information; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data comprises information on the hierarchical relationship between the filtering items and the multiple filtering items; based on the information on the hierarchical relationship between the filtering items and the multiple filtering items, converting the business filtering data into standard filtering data, and sending the standard filtering data to the user device for the user device to generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure; or comprising: receiving standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; parsing the standard filtering data to obtain a parsing result; and generating a UI interface for data filtering according to the parsing result.

[0095] In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0096] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for data filtering function provided by the above methods, the method including: receiving a filtering data acquisition request from a user device, the filtering data acquisition request including business information; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data includes information about the hierarchical relationship between the filtering items and the multiple filtering items; based on the information about the hierarchical relationship between the filtering items and the multiple filtering items, converting the business filtering data into standard filtering data, and sending the standard filtering data to the user device for the user device to generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure; or including: receiving standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; parsing the standard filtering data to obtain a parsing result; and generating a UI interface for data filtering according to the parsing result.

[0097] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to perform the above-mentioned methods for data filtering functions, the methods comprising: receiving a filtering data acquisition request from a user device, the filtering data acquisition request comprising business information; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data comprises information on the hierarchical relationship between the filtering items and the multiple filtering items; converting the business filtering data into standard filtering data based on the information on the hierarchical relationship between the filtering items and the multiple filtering items, and sending the standard filtering data to the user device for the user device to generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure; or comprising: receiving standard filtering data sent by a filtering relay server; wherein the filtering items in the standard filtering data have a preset data structure; parsing the standard filtering data to obtain a parsing result; and generating a UI interface for data filtering according to the parsing result.

[0098] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for data screening function, characterized in that, The method is applied to screening a relay server, and the method comprises: Receiving a screening data acquisition request from a user device, wherein the screening data acquisition request includes service information; wherein the service information includes information of a service server or a service type; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data includes information on filtering items and hierarchical relationships between multiple filtering items; The business filtering data is converted into standard filtering data based on the filtering items and information on the hierarchical relationship between the multiple filtering items, and the standard filtering data is sent to the user device so that the user device generates a UI interface; wherein the filtering items in the standard filtering data have a preset data structure.

2. The method for data screening function according to claim 1, characterized in that: The screening data acquisition request also includes user data, so that the service server can acquire corresponding service screening data according to the user data after receiving the screening data acquisition request.

3. The method for data screening function according to claim 1, characterized in that: The converting the business screening data into standard screening data based on the screening items and the information of the hierarchical relationship between the multiple screening items includes: According to the hierarchical relationship, the parent filter item is converted into a corresponding K value, and the corresponding child filter item is converted into a corresponding Value value.

4. The method for data screening function according to claim 3, characterized in that: The method further comprises: The children field is used to define a list of child filter items corresponding to the parent filter item in the standard filter data.

5. A method for data screening function, characterized in that, The method is applied to a user equipment, and the method comprises: Receiving standard screening data sent by the screening relay server; wherein the screening items in the standard screening data have a preset data structure; Parsing the standard screening data to obtain parsing results, wherein the parsing results include information about the screening items and the hierarchical relationship between the multiple screening items; Generating a UI interface for data filtering according to the filtering items and information about the hierarchical relationship between the multiple filtering items; The process of the transfer server acquiring the standard screening data includes: Receiving a screening data acquisition request from a user device, wherein the screening data acquisition request includes service information; wherein the service information includes information of a service server or a service type; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data includes information on filtering items and hierarchical relationships between multiple filtering items; The business screening data is converted into standard screening data based on the screening items and information about the hierarchical relationship between the multiple screening items.

6. A screening transfer server, characterized in that: include: A request receiving module, configured to: receive a screening data acquisition request from a user device, wherein the screening data acquisition request includes service information; wherein the service information includes information of a service server or a service type; A data transfer module, used to: forward the screening data acquisition request to a corresponding business server according to the business information, and receive business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information on screening items and hierarchical relationships between multiple screening items; A standardization processing module is used to: convert the business filtering data into standard filtering data based on the information of the filtering items and the hierarchical relationship between multiple filtering items, and send the standard filtering data to the user device so that the user device can generate a UI interface; wherein the filtering items in the standard filtering data have a preset data structure.

7. A user equipment, characterized in that: include: The data receiving module is used to: receive standard screening data sent by the screening transfer server; wherein the screening items in the standard screening data have a preset data structure; A data analysis module, used to analyze the standard screening data to obtain analysis results, wherein the analysis results include information on the screening items and the hierarchical relationship between the multiple screening items; A UI interface generation module, used to: generate a UI interface for data filtering according to the filtering items and information about the hierarchical relationship between the multiple filtering items; The process of the transfer server acquiring the standard screening data includes: Receiving a screening data acquisition request from a user device, wherein the screening data acquisition request includes service information; wherein the service information includes information of a service server or a service type; forwarding the filtering data acquisition request to a corresponding business server according to the business information, and receiving business filtering data returned by the business server according to the filtering data acquisition request; wherein the business filtering data includes information on filtering items and hierarchical relationships between multiple filtering items; The business screening data is converted into standard screening data based on the screening items and information about the hierarchical relationship between the multiple screening items.

8. A system for data screening function, characterized in that: It includes a screening transfer server, a user device and at least one service server; wherein: The screening transfer server is used to: receive a screening data acquisition request from a user device, the screening data acquisition request including business information; wherein the business information includes information of a business server or includes a business type; forward the screening data acquisition request to a corresponding business server according to the business information, and receive business screening data returned by the business server according to the screening data acquisition request; wherein the business screening data includes information about a screening item and a hierarchical relationship between multiple screening items; convert the business screening data into standard screening data based on the information about the screening item and the hierarchical relationship between multiple screening items, and send the standard screening data to the user device so that the user device can generate a UI interface; wherein the screening items in the standard screening data have a preset data structure; The business server is used to: receive the screening data acquisition request, obtain the business screening data according to the screening data acquisition request, and send the business screening data to the screening transfer server; The user device is used to: receive the standard filtering data sent by the filtering relay server; parse the standard filtering data to obtain a parsing result, wherein the parsing result includes information on the hierarchical relationship between the filtering items and multiple filtering items; and generate a UI interface for data filtering based on the information on the hierarchical relationship between the filtering items and multiple filtering items.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for data screening function as claimed in any one of claims 1 to 5 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for data screening function described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • House source information acquisition method and device, storage medium and server

    CN108985876A

  • Service request processing method and device, computer equipment and storage medium

    CN112367164A