A method, apparatus, device and storage medium for obtaining price information
By assigning pricing models containing different query algorithms to clients, parsing and matching input parameters with price sources, the problem of inapplicability of price control in existing technologies is solved, and a simple and intuitive pricing process and fine-grained allocation are realized.
Patent Information
- Application Number
- CN202111503584.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In existing technologies, price control strategies cannot be applied to price sources that are not basic data, and cannot achieve detailed control over price items, especially the allocation strategies under different promotional scenarios, resulting in a price retrieval process that is not simple and intuitive.
By assigning pre-built pricing models containing different query algorithms to clients, parsing the pricing models to obtain pricing schemes, and using encapsulated query algorithms to match client input parameters with price sources, the target price information can be extracted.
It achieves applicability to various pricing sources, enables fine-grained price allocation and scenario-adaptive control, and the pricing process is simple and intuitive, avoiding the limitations caused by directly allocating price sources.
Smart Images

Figure CN114168818B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for obtaining price information. Background Technology
[0002] Throughout the entire Enterprise Resource Planning (ERP) process, there is a need for price control during pricing. Price control primarily involves the management and control of price source information within the ERP system. Prices are managed uniformly based on control strategies, which are a type of control method based on organizational structure, such as... Figure 1 Global sharing, downward allocation, and private mode in pricing inevitably involve the allocation of price usage, also known as the pricing permission issue, which is the permission to read price information onto the pricing list.
[0003] In existing technologies, the issue of pricing access is typically addressed by directly allocating "price source information" as basic data to various organizations through a "basic data control strategy" for each organization to query. On one hand, this approach fails to adequately support pricing from non-basic data sources. For example, while a "basic data control strategy" can be used to manage prices from basic data sources like "price lists," it is ineffective for non-basic data (quotations, sales contracts, etc.) and ledgers containing prices. On the other hand, this method lacks granular control over price items. For instance, a basic data "price list" might contain 10,000 price items, but it cannot provide detailed control and allocation based on the price item breakdown. Furthermore, the control scenarios for price items are not sufficiently detailed. For example, different promotional scenarios may require different allocation strategies, and relying solely on control strategies is insufficient for scenario-based price allocation.
[0004] Therefore, how to provide a pricing scheme that is universally applicable and has a simple and intuitive pricing process is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for obtaining price information, which is applicable to various price sources and the price acquisition process is simple and intuitive. The specific solution is as follows:
[0006] The first aspect of this application provides a method for obtaining price information, including:
[0007] Based on the target requirements, the client is assigned a corresponding pricing model and the pricing model is parsed to obtain the pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-built data model that contains pricing schemes encapsulated with different query algorithms;
[0008] The system obtains the client's input parameters and uses the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price sources, thereby obtaining the target price source that matches the input parameters.
[0009] Extract the target price information corresponding to the input parameters from the matched target price sources and return the target price information to the client.
[0010] Optionally, a corresponding pricing model can be assigned to the client based on the target requirements, including:
[0011] Obtain the preconditions for the representation allocation scenario, and allocate a pricing model that meets the preconditions to the client based on the preconditions.
[0012] Optionally, the client's input parameters are obtained, and the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the price source, including:
[0013] Obtain the client's input parameters and parse them to obtain the price list dataset corresponding to the input parameters;
[0014] The query algorithm encapsulated by the parsed pricing scheme is used to match the pricing order dataset with the price source.
[0015] Optionally, the query algorithm encapsulated in the parsed pricing scheme is used to match the pricing order dataset with the price source, including:
[0016] The price sources are analyzed to obtain the price source dataset corresponding to each price source;
[0017] The query algorithm encapsulated by the parsed pricing scheme is used to match the pricing order dataset with the price source dataset.
[0018] Optionally, when multiple pricing schemes are parsed, the query algorithm encapsulated in the parsed pricing schemes is used to match the input parameters with the price sources, including:
[0019] The pricing schemes are traversed in order of priority to match the input parameters with the price source using the query algorithm encapsulated in the traversed pricing schemes.
[0020] Optionally, after traversing the pricing schemes according to their priority, the process also includes:
[0021] If a price item in the price list dataset is matched from the price source dataset using the traversal pricing scheme, the price item is removed from the price list dataset, and the query algorithm encapsulated by the traversal pricing scheme is used to match the removed price list dataset with the price source dataset.
[0022] Optionally, after parsing the pricing model, the following may also be included:
[0023] The filtered price sources are obtained by filtering the price sources according to the preset filtering conditions in the pricing scheme.
[0024] Accordingly, the query algorithm encapsulated by the parsed pricing scheme is used to match the input parameters with the price source, including:
[0025] The query algorithm encapsulated by the parsed pricing scheme is used to match the input parameters with the filtered price sources.
[0026] A second aspect of this application provides a price information acquisition device, comprising:
[0027] The model allocation module is used to allocate the corresponding pricing model to the client according to the target requirements and parse the pricing model to obtain the pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-built data model containing pricing schemes that encapsulate different query algorithms;
[0028] The parameter matching module is used to obtain the input parameters from the client and use the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price source, so as to obtain the target price source that matches the input parameters;
[0029] The result return module is used to extract the target price information corresponding to the input parameters from the matched target price sources and return the target price information to the client.
[0030] A third aspect of this application provides an electronic device including a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned price information acquisition method.
[0031] A fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the aforementioned price information acquisition method.
[0032] The fifth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned price information acquisition method.
[0033] In this application, a corresponding pricing model is first assigned to the client based on the target requirements, and the pricing model is parsed to obtain a pricing scheme corresponding to the pricing model. The pricing model is a pre-constructed data model containing pricing schemes encapsulated with different query algorithms. Then, the client's input parameters are obtained, and the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the price source, obtaining the target price source that matches the input parameters. Finally, the target price information corresponding to the input parameters is extracted from the matched target price source and returned to the client. It is evident that this application assigns a pricing model to the client, which consists of pricing schemes encapsulated with different query algorithms. After obtaining the pricing model, the client parses it to obtain the pricing scheme, and then uses the query logic of the pricing scheme to match the client's input parameters with the price source, thereby extracting price information from the matched price source. This avoids the limitations of directly assigning price sources to the client, is applicable to various pricing sources, and the pricing process is simple and intuitive. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0035] Figure 1 A price list allocation pattern diagram provided for this application;
[0036] Figure 2 A flowchart of a price information acquisition method provided in this application;
[0037] Figure 3 A schematic diagram of a specific pricing model provided in this application;
[0038] Figure 4 A flowchart of an existing pricing method is provided for this application;
[0039] Figure 5 A schematic diagram illustrating a specific method for obtaining price information provided in this application;
[0040] Figure 6 A schematic diagram illustrating a specific pricing scheme traversal method provided in this application;
[0041] Figure 7 A schematic diagram illustrating the implementation of a specific pricing scheme matching logic provided in this application;
[0042] Figure 8A schematic diagram of a price information acquisition device provided in this application;
[0043] Figure 9 This application provides a structural diagram of an electronic device for obtaining price information. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] Existing pricing schemes that directly allocate "price source information" as basic data to various organizations through "basic data management strategies" for each organization to query cannot be applied to all price sources, resulting in the inability to derive prices or inaccurate pricing results. To address these technical shortcomings, this application provides a price information acquisition scheme that allocates a pricing model to the client and then utilizes the query logic of the pricing scheme within this model to obtain price information. This avoids the limitations of directly allocating price sources to the client, is applicable to a wide variety of pricing sources, and offers a simple and intuitive pricing process.
[0046] Figure 2 A flowchart illustrating a price information acquisition method provided in an embodiment of this application. See also... Figure 2 As shown, the method for obtaining this price information includes:
[0047] S11: Assign the corresponding pricing model to the client according to the target requirements and parse the pricing model to obtain the pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-built data model containing pricing schemes that encapsulate different query algorithms.
[0048] In this embodiment, a corresponding pricing model is assigned to the client based on the target requirements, and the pricing model is parsed to obtain a pricing scheme corresponding to the pricing model. To achieve scenario-based price allocation, fine-grained control over price usage scenarios can be achieved through preconditions in the pricing strategy. For example, a model corresponding to a promotional scenario can be assigned. Specifically, preconditions representing the allocation scenario are obtained, and pricing models that meet the preconditions are assigned to the client based on these preconditions. Simultaneously, the price source can also be filtered using the parsed price scheme based on preset filtering conditions to obtain a filtered price source. This achieves a more refined technical effect in controlling price items.
[0049] It should be noted that the pricing model is a pre-built data model that includes pricing schemes that encapsulate different query algorithms. Figure 3 The diagram shows the data structure of the pricing model. The pricing strategy is essentially a combination of different pricing schemes, which are allocated according to the basic data control strategy. It's equivalent to extracting the intermediate layer of the price pricing algorithm model and allocating prices by assigning pricing models. In other words, it solves the price allocation problem with a simple and clear solution, separating it from the allocation of price source information itself, and extracting a separate set of pricing models. By allocating this independent set of pricing models, the goal of price allocation is achieved. The preconditions of the pricing strategy are used to distinguish different allocation scenarios. These preconditions, combined with the basic data control strategy, are used to refine the allocation scenarios. The filtering conditions of the pricing scheme are used to filter price source details, thereby achieving a more granular allocation.
[0050] Figure 4 The existing price allocation process allocates the price source itself, such as a price list. However, price sources are not limited to price lists; they may also include contract data or ledger data that cannot be allocated within the system. Furthermore, price lists can only allocate prices for entire orders, not by specific price list details, and cannot be allocated according to different preconditions or scenarios. This embodiment addresses the allocation requirement of the algorithm model, rather than the allocation of prices themselves. A more dynamic and detailed query logic can be defined within the pricing model, enabling more comprehensive allocation functionality.
[0051] S12: Obtain the client's input parameters and use the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price source, and obtain the target price source that matches the input parameters.
[0052] In this embodiment, the client's input parameters are obtained, and the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the price sources to obtain the target price source that matches the input parameters. The specific implementation process of this step is as follows: Figure 5 As shown, the model can be applied to different price retrieval sources, not limited to basic data such as price lists, further enriching the price allocation and positioning logic, and making the price retrieval granularity more refined.
[0053] As previously mentioned, in the pricing model, there is a price mapping relationship between pricing orders and pricing sources within the pricing scheme. The scheme drives cross-organizational pricing, which is a model definition of a set of price query processes. That is, the pricing table forms the mapping relationship with the price sources. This pricing table is a temporary table; after obtaining the input parameters, it needs to be parsed into a data table for matching. Therefore, the above steps specifically involve first obtaining and parsing the client's input parameters to obtain the pricing order dataset corresponding to the input parameters, and then using the query algorithm encapsulated in the parsed pricing scheme to match the pricing order dataset with the price sources. Further, the price sources are parsed to obtain the corresponding price source dataset, so that the query algorithm encapsulated in the parsed pricing scheme can be used to match the pricing order dataset with the price source dataset.
[0054] The logic implementation in pricing scenarios is relatively complex. Pricing models typically consist of multiple pricing schemes, meaning the pricing strategy is a sorting of several pricing schemes. Prices can be queried according to the order of these schemes, defining several pricing processes. For example, the pricing strategy assigns priorities to the pricing schemes, and the engine performs price scanning according to these priorities. Specifically, when multiple pricing schemes are parsed, they are traversed according to their priority to match the input parameters with the price source using the query algorithm encapsulated in each pricing scheme. To avoid redundant traversal and wasting computational resources, if a price item in the pricing order dataset is matched from the price source dataset using the traversed pricing scheme, the price item is removed from the pricing order dataset, and the query algorithm encapsulated in the traversed pricing scheme is used to match the removed pricing order dataset with the price source dataset. The above traversal process for pricing schemes is as follows: Figure 6 As shown. Furthermore, after parsing the pricing model, the price sources can be filtered using the pre-defined filtering conditions in the pricing scheme. This allows for more precise control over price items. Correspondingly, the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the filtered price sources. The filtering conditions can be a time range.
[0055] It should be noted that the pricing scheme is essentially a set of query logic definitions. The encapsulated query algorithms include basic matching dimensions, sorting fields, filtering conditions, etc., that is, defining a set of standard query SQL and data set matching logic and algorithms, including but not limited to priority algorithms, grouping algorithms, decomposition algorithms, and summary data retrieval algorithms. Its specific implementation logic is as follows: Figure 7 As shown.
[0056] S13: Extract the target price information corresponding to the input parameters from the matched target price sources and return the target price information to the client.
[0057] In this embodiment, after obtaining the target price source, the target price information corresponding to the input parameters is extracted from the matched target price source and returned to the client. When extracting price information from the obtained target price sources, processing methods such as category classification algorithms and null value matching algorithms can be used to obtain the corresponding price result data. Finally, the price result dataset is organized and returned to the client. The form in which price information exists may differ in different price sources; therefore, the extraction method may also differ. This embodiment does not limit this approach.
[0058] This embodiment establishes a set of pricing models. Prices are allocated by assigning these pricing models, and the price query process is determined by defining pricing schemes, thereby deciding which price details will be filtered out and allocated during the query process. When the current organization assigns a pricing strategy to other organizations, those organizations gain access to the prices queried according to the pricing scheme within that strategy. A pricing scheme can define the query for prices from multiple organizations, directly driving cross-organizational price retrieval for a more intuitive approach. For example, if organization A's pricing strategy S can retrieve organization A's prices, and strategy S is assigned to organization B, then organization B gains the query capability under strategy S and can read the prices queried under strategy S, thus achieving the goal of allocating organization A's prices to organization B.
[0059] As can be seen, this embodiment first allocates a corresponding pricing model to the client based on the target requirements and parses the pricing model to obtain a pricing scheme corresponding to the pricing model. The pricing model is a pre-constructed data model containing pricing schemes encapsulated with different query algorithms. Then, the client's input parameters are obtained, and the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the price source to obtain the target price source matching the input parameters. Finally, the target price information corresponding to the input parameters is extracted from the matched target price source and returned to the client. This embodiment allocates a pricing model to the client, which consists of pricing schemes encapsulated with different query algorithms. After obtaining the pricing model, the client parses it to obtain the pricing scheme, and then uses the query logic of the pricing scheme to match the client's input parameters with the price source, thereby extracting price information from the matched price source. This avoids the limitations of directly allocating price sources to the client, is applicable to various pricing sources, and the pricing process is simple and intuitive.
[0060] See Figure 8 As shown in the figure, this application also discloses a price information acquisition device, including:
[0061] The model allocation module 11 is used to allocate the corresponding pricing model to the client according to the target requirements and parse the pricing model to obtain the pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-built data model containing pricing schemes that encapsulate different query algorithms;
[0062] The parameter matching module 12 is used to obtain the input parameters of the client and use the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price source, so as to obtain the target price source that matches the input parameters;
[0063] The result return module 13 is used to extract the target price information corresponding to the input parameters from the matched target price sources and return the target price information to the client.
[0064] As can be seen, this embodiment first allocates a corresponding pricing model to the client based on the target requirements and parses the pricing model to obtain a pricing scheme corresponding to the pricing model. The pricing model is a pre-constructed data model containing pricing schemes encapsulated with different query algorithms. Then, the client's input parameters are obtained, and the query algorithm encapsulated in the parsed pricing scheme is used to match the input parameters with the price source to obtain the target price source matching the input parameters. Finally, the target price information corresponding to the input parameters is extracted from the matched target price source and returned to the client. This embodiment allocates a pricing model to the client, which consists of pricing schemes encapsulated with different query algorithms. After obtaining the pricing model, the client parses it to obtain the pricing scheme, and then uses the query logic of the pricing scheme to match the client's input parameters with the price source, thereby extracting price information from the matched price source. This avoids the limitations of directly allocating price sources to the client, is applicable to various pricing sources, and the pricing process is simple and intuitive.
[0065] In some specific embodiments, the model allocation module 11 is specifically used to obtain the preconditions of the representation allocation scenario, and allocate a pricing model that meets the preconditions to the client according to the preconditions.
[0066] In some specific embodiments, the parameter matching module 12 specifically includes:
[0067] The parameter parsing submodule is used to obtain the input parameters from the client and parse the input parameters to obtain the price list dataset corresponding to the input parameters;
[0068] The query submodule is used to match the price list dataset with the price source using a query algorithm encapsulated by the parsed pricing scheme.
[0069] In some specific embodiments, the query submodule specifically includes:
[0070] The dataset generation unit is used to parse the price sources to obtain the price source dataset corresponding to the price sources;
[0071] The dataset matching unit is used to match the price list dataset with the price source dataset using the query algorithm encapsulated in the parsed pricing scheme.
[0072] In some specific embodiments, when multiple pricing schemes are parsed, the dataset matching unit is specifically used to traverse the pricing schemes according to their priority order, so as to use the query algorithm encapsulated in the traversed pricing schemes to match the input parameters with the price source.
[0073] In some specific embodiments, the price information acquisition device further includes:
[0074] The removal module is used to remove price entries from the price list dataset if a price entry is matched from the price source dataset using the traversed pricing scheme, and then match the removed price list dataset with the price source dataset using the query algorithm encapsulated in the traversed pricing scheme.
[0075] The filtering module is used to filter the price source based on the preset filtering conditions in the pricing scheme to obtain the filtered price source.
[0076] Correspondingly, the query submodule is also used to match the input parameters with the filtered price sources using the query algorithm encapsulated by the parsed pricing scheme.
[0077] Furthermore, embodiments of this application also provide an electronic device. Figure 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0078] Figure 9 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the price information acquisition method disclosed in any of the foregoing embodiments.
[0079] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0080] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.
[0081] The operating system 221 manages and controls the various hardware devices and computer programs 222 on the electronic device 20 to enable the processor 21 to perform calculations and processing on the massive amounts of data 223 in the memory 22. The operating system 221 can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs capable of performing the price information acquisition method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks. The data 223 may include input parameters collected by the electronic device 20.
[0082] Furthermore, this application also discloses a storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the price information acquisition method steps disclosed in any of the foregoing embodiments.
[0083] This application also discloses a computer program product, including a computer program that, when executed by a processor, implements the price information acquisition method steps disclosed in any of the foregoing embodiments.
[0084] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0085] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0086] The price information acquisition method, apparatus, device, and storage medium provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for obtaining price information, characterized in that, include: According to the target requirements, a corresponding pricing model is allocated to the client, and the pricing model is parsed to obtain a pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-constructed data model containing pricing schemes encapsulated with different query algorithms; the query algorithm includes one or more of the following: priority algorithm, grouping algorithm, decomposition algorithm, and summary data retrieval algorithm; the step of allocating a corresponding pricing model to the client according to the target requirements includes: obtaining the preconditions representing the allocation scenario, and allocating the client with the pricing model that satisfies the preconditions according to the preconditions; The system obtains the input parameters from the client and uses the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price sources, thereby obtaining the target price source that matches the input parameters. The pricing scheme defines the query for prices from multiple organizations. When a pricing strategy is assigned to other organizations by the current organization, the other organizations obtain the right to use the price queried according to the pricing scheme in the pricing strategy. The pricing strategy is a combination of different pricing schemes. Extract the target price information corresponding to the input parameters from the matched target price sources and return the target price information to the client.
2. The price information acquisition method according to claim 1, characterized in that, The step of obtaining the client's input parameters and matching the input parameters with the price source using the query algorithm encapsulated in the parsed pricing scheme includes: The input parameters from the client are obtained and parsed to obtain a pricing order dataset corresponding to the input parameters. The query algorithm encapsulated by the parsed pricing scheme is used to match the pricing list dataset with the price source.
3. The price information acquisition method according to claim 2, characterized in that, The step of matching the price list dataset with the price source using the query algorithm encapsulated by the parsed pricing scheme includes: The price source is parsed to obtain the price source dataset corresponding to the price source; The query algorithm encapsulated by the parsed pricing scheme is used to match the pricing order dataset with the price source dataset.
4. The price information acquisition method according to claim 2, characterized in that, When multiple pricing schemes are parsed, the step of matching the input parameters with the price source using the query algorithm encapsulated in the parsed pricing schemes includes: The pricing schemes are traversed in order of priority to match the input parameters with the price source using the query algorithm encapsulated in the traversed pricing schemes.
5. The price information acquisition method according to claim 4, characterized in that, After traversing the pricing schemes according to their priority order, the process further includes: If a price entry in the price list dataset is matched from the price source dataset using the traversed pricing scheme, the price entry is removed from the price list dataset, and the query algorithm encapsulated by the traversed pricing scheme is used to match the removed price list dataset with the price source dataset.
6. The price information acquisition method according to any one of claims 1 to 5, characterized in that, After parsing the pricing model, the process also includes: The price source is filtered by using the parsed filtering conditions preset in the pricing scheme to obtain the filtered price source; Accordingly, the step of matching the input parameters with the price source using the query algorithm encapsulated in the parsed pricing scheme includes: The query algorithm encapsulated by the parsed pricing scheme is used to match the input parameters with the filtered price sources.
7. A price information acquisition device, characterized in that, include: The model allocation module is used to allocate the corresponding pricing model to the client according to the target requirements and parse the pricing model to obtain the pricing scheme corresponding to the pricing model; wherein, the pricing model is a pre-built data model containing pricing schemes encapsulated with different query algorithms; the query algorithm includes one or more of the following: priority algorithm, grouping algorithm, decomposition algorithm, and summary data retrieval algorithm; The model allocation module is specifically used to obtain the preconditions for the representation allocation scenario and allocate a pricing model that meets the preconditions to the client based on the preconditions. The parameter matching module is used to obtain the input parameters from the client and use the query algorithm encapsulated in the parsed pricing scheme to match the input parameters with the price sources to obtain the target price source that matches the input parameters; the pricing scheme defines the query of prices from multiple organizations, and when the pricing strategy is assigned to other organizations by the current organization, the other organizations obtain the right to use the price queried according to the pricing scheme in the pricing strategy; the pricing strategy is a combination of different pricing schemes; The result return module is used to extract the target price information corresponding to the input parameters from the matched target price source and return the target price information to the client.
8. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the price information acquisition method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, Used to store computer-executable instructions, which, when loaded and executed by a processor, implement the price information acquisition method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for determining commodity prices in receipts and computer equipment
CN113205359A