Product performance recording method, device, electronic device and storage medium
By extracting and analyzing common and unique message attribute fields of transaction products, generating product objects and performing performance records, the problems of developers' workload and maintenance difficulties caused by multi-channel sales performance records are solved, and the effect of improving development efficiency and reducing maintenance costs is achieved.
Patent Information
- Application Number
- CN202210244990.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-03-14
AI Technical Summary
In the field of bank retail marketing, the existing technology causes developers to have a lot of work and difficulty in post-maintenance when recording marketers' multi-channel sales performance.
By extracting the common messages and unique messages in the target transaction message of the transaction product, parsing and storing their attribute fields into the configuration template, generating a product object, and recording the performance based on this object.
Reduces code redundancy, reduces developer workload, improves development efficiency, and reduces system maintenance costs.
Smart Images

Figure CN114611482B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a product performance recording method, device, electronic device, and storage medium. Background Art
[0002] In recent years, with the development of Internet finance, customers have more and more financial investment options. The retail business of the banking industry is facing major challenges. The development of retail business has gradually become the focus of work, and has gradually adjusted from passive product marketing to active marketing. Marketing personnel send transaction products to customers through various channels. Customers complete the purchase by clicking on the corresponding link of the transaction product. The sales performance is recorded in the relevant equipment of the current account manager (for example, mobile phone), which greatly stimulates the subjective initiative of marketing personnel and improves marketing efficiency.
[0003] In the field of retail banking marketing, marketers can recommend hundreds of products to customers through various channels such as counter systems, ATMs, super counters, online banking, mobile banking, and WeChat banking. When recording the relevant performance of marketers, developers need to manage, configure and develop each transaction product in a corresponding manner for each channel, so as to complete the record of multi-channel sales performance of the same transaction product by the same marketer.
[0004] Traditional solutions require the development of multiple performance record programs when there are multiple trading channels for the same trading product, which results in a large workload for developers and makes unified maintenance difficult in the later stages. Summary of the invention
[0005] The embodiments of the present invention provide a product performance recording method, device, electronic device and storage medium, which can reduce the workload of developers and facilitate later maintenance.
[0006] In a first aspect, an embodiment of the present invention provides a product performance recording method, comprising:
[0007] Acquire a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, and the common message includes a product identifier;
[0008] Acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content;
[0009] The common attribute field content and the unique attribute field content are stored in the configuration template to obtain a product object of the transaction product;
[0010] The performance of the transaction product is recorded according to the product object.
[0011] In a second aspect, an embodiment of the present invention provides a product performance recording device, the device comprising:
[0012] A message acquisition module, used to acquire a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, and the common message includes a product identifier;
[0013] A template acquisition module, used to acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content;
[0014] A field storage module, used for storing the common attribute field content and the unique attribute field content in the configuration template to obtain a product object of the transaction product;
[0015] A performance recording module is used to record the performance of the transaction product according to the product object.
[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the product performance recording method described in any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the product performance recording method described in any embodiment of the present invention when executed.
[0021] The product performance record solution provided by the embodiment of the present invention extracts the target transaction message into a common message and a unique message, and then extracts the corresponding attribute field content according to the different properties of the common message and the unique message, thereby storing the corresponding attribute field content in a pre-set configuration template to obtain a product object, and realizes the performance record of the transaction product according to the product object. By extracting the common attribute field content and the unique attribute field content of the transaction product between multiple transaction channels, code redundancy is reduced, and the problem of heavy workload for developers and difficulty in unified maintenance in the later stage caused by the prior art is solved, achieving the beneficial effect of improving development efficiency and reducing system maintenance costs.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the embodiments of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 It is a flowchart of a product performance recording method provided by an embodiment of the present invention;
[0025] Figure 2 is another flow chart of the product performance recording method provided by an embodiment of the present invention;
[0026] Figure 3 is a structural schematic diagram of a product performance recording device provided by an embodiment of the present invention;
[0027] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.
[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0030] Figure 1 This is a flow chart of a product performance recording method provided by an embodiment of the present invention. This embodiment is applicable to recording the product performance of online sales products. The method can be executed by a product performance recording device. The product performance recording device can be implemented in the form of hardware and / or software. The product performance recording device can be configured in a computer device such as a server. Figure 1 , the method may specifically include the following steps:
[0031] S110. Obtain a target transaction message of a transaction product. The target transaction message includes a common message and a unique message. The common message includes a product identifier.
[0032] The transaction message refers to the message generated when the transaction product is successfully traded through the transaction channel.
[0033] Among them, transaction products refer to products that can be promoted on the Internet in the form of links, mini-programs or applications. Taking the financial field as an example, transaction products can be financial products or other consumer products. When sales personnel promote transaction products to users through various channels such as counter systems, ATMs, super counters, online banking or mobile banking, if the user successfully purchases the corresponding transaction product under the promotion of the current salesperson, the system should record the performance of the current salesperson so that the salesperson can obtain corresponding commissions based on the performance recorded by the system.
[0034] Among them, the counter system, ATM, super counter, online banking or mobile banking mentioned in the above examples are the transaction channels involved in the present invention. It should be noted that the examples of transaction products and transaction channels are not limited to the above examples.
[0035] The existing solution for recording sales staff's sales performance is that when the same transaction product has multiple transaction channels, developers need to develop multiple performance recording software programs. If there are multiple transaction products at the same time, each transaction product has multiple transaction channels, which undoubtedly increases the workload of developers and makes unified maintenance difficult in the later stage. Therefore, the embodiment of the present invention provides a product performance recording method to improve the problems of the existing solution.
[0036] The target transaction message refers to the transaction message obtained through any of the above transaction channels. That is, when the transaction product is sold successfully, it is not known from which transaction channel the current transaction product is successfully traded, and the subsequent analysis process is performed based on the current target transaction message.
[0037] In one embodiment, the acquired target transaction message includes a common message and a unique message.
[0038] Among them, a common message refers to a message containing common attributes in the message. The common attribute can be understood as that no matter which transaction channel the transaction product is successfully traded through, the message carries the content corresponding to the same attribute field, and the same attribute field is expressed in the same way. Exemplarily, the same attribute field can be the transaction date, transaction agency, product identification, and seller identification. The attribute fields that exist in the same way when the transaction is successful through different transaction channels are called common attribute fields, and the content corresponding to the common attribute fields is called a common message when it is embodied in the form of a transaction message.
[0039] A unique message indicates a message that contains unique attributes in the message. The unique attributes can be understood as the content corresponding to the unique attribute field carried by the transaction product when the transaction is successful in different transaction channels. The current unique attribute field is a field with different representation methods for the same field in each transaction channel. Exemplarily, the unique attribute field can be product performance, transaction serial number, etc. Generally, in the transaction message, the unique message is represented by a string composed of key (key, value) character pairs, but when passing through different transaction channels, the representation method of each transaction channel for the same attribute field is generally different. The attribute field that has different representation methods when the transaction is successful through different transaction channels is called a unique attribute field, and the content corresponding to the unique attribute field is called a unique message when it is embodied in the form of a transaction message.
[0040] Among them, since the common message and the unique message are represented in different forms, when a transaction message is received, you can know which part of the message is the common message and which part of the message is the unique message, and obtain the product identifier in the common message, so as to know which transaction product the current transaction message corresponds to through the product identifier.
[0041] S120. Obtain a configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content.
[0042] The configuration template provided by the embodiment of the present invention is centered on transaction products, that is, there are as many types of transaction products as there are currently, and there is a corresponding configuration template for each transaction product. When obtaining the configuration template of the transaction product according to the product identifier, the unique corresponding configuration template can be obtained in the configuration template set.
[0043] The configuration template represents a template for the attribute fields corresponding to the current transaction product, wherein the configuration template may exist in the form of a table. That is, the current table records all possible attribute fields for the transaction channel corresponding to the current transaction product, and stores the fields with the same representation as common attribute fields, and stores the fields with different representation as unique attribute fields.
[0044] Optionally, the configuration template provided in the embodiment of the present invention may also be one, that is, the transaction messages obtained from the transaction channels corresponding to all transaction products are parsed, so that common attribute fields and unique attribute fields corresponding to multiple transaction products are included in one configuration template. The specific setting method of the configuration template is not limited here.
[0045] The content of the common attribute field is the substantive content corresponding to the common attributes in the common notification document. For example, the content of the common attribute field can be Zhang San, 20200202, Li Si, etc., which means that the purchaser of the current transaction product is Zhang San, the transaction date is February 2, 2020, and the salesperson is Li Si. Among them, "Purchasing User", "Transaction Date" and "Salesperson" are common attribute fields.
[0046] The unique attribute field content is the substantive content corresponding to the unique attribute in the unique message. For example, the unique attribute field content can be 10000. When linked with the common attribute field content of the above example, it can be expressed as: the purchaser of the current transaction product is Zhang San, the transaction date is February 2, 2020, the salesperson is Li Si, and the product performance is 10000. Among them, "product performance" is a unique attribute field.
[0047] In an optional manner, the generation process of the configuration template provided in the embodiment of the present invention can be implemented by following the steps a) to d):
[0048] a) Obtaining transaction messages of the transaction product obtained through each transaction channel. The number of transaction channels is at least one, and the number of transaction messages corresponds to the number of transaction channels.
[0049] The same transaction product includes multiple transaction channels. When passing through different transaction channels, the generated transaction messages are also different. In this case, the number of transaction messages is the same as the number of transaction channels.
[0050] b) Parse the first preset content in each transaction message to obtain the common attribute fields of the transaction products.
[0051] The first preset content corresponding to each transaction message is parsed, so that the attribute fields with the same representation mode existing when the same attribute field is successfully traded through different transaction channels are called common attribute fields.
[0052] Among them, the first preset content can be a message expressed in a non-character pair form in the current transaction message. The first preset content may be located in the first half of the transaction message or in the second half of the transaction message. The specific location of the first preset content is not limited here.
[0053] c) translating the second preset content in each transaction message to obtain a unique attribute field of the transaction product.
[0054] The current second preset content represents a message in the transaction message in the form of a character pair, and the second preset content is translated to obtain a unique attribute field of the transaction product.
[0055] It should be noted that the current second preset content is not limited to the expression form of character pairs, and may also be expressed in the form of numerical values. As long as the expression form of the second preset content is different from the expression form of the first preset content, it is convenient to identify the corresponding common attribute fields and unique attribute fields.
[0056] In an optional embodiment, in the above step c), translating the second preset content in each transaction message to obtain the unique attribute field of the transaction product can be achieved by:
[0057] The second preset content in each transaction message is parsed to obtain multiple character pairs corresponding to the same attribute field of the transaction product; and the multiple character pairs are translated to obtain unique attribute fields corresponding to the multiple character pairs.
[0058] When the second preset content in the transaction message is parsed after the same transaction product passes through different channels, multiple character pairs corresponding to the same attribute field can be obtained. Taking the attribute field "product performance" as an example, transaction channel A may be represented as (a, k), and transaction channel B may be represented as (b, k). In the case of different representation methods, a and b both represent the "product performance" attribute field, where k can be understood as the content corresponding to the product performance.
[0059] It is necessary to translate multiple character pairs corresponding to the same attribute field, and the translation method is to translate multiple representations of the same attribute field into another unified representation. That is, as in the above example, the character pairs (a, k) and (b, k) representing the "product performance" attribute field are translated into (x, k), that is, no matter how many representations there are for the "product performance" attribute field, they are ultimately represented in the form of (x, k). Then the character pairs corresponding to the unique attribute field (x, k) include (a, k) and (b, k).
[0060] The prerequisite for obtaining the unique attribute fields corresponding to multiple character pairs is that all transaction messages of the transaction channel corresponding to the current transaction product must be obtained in step a), and the second preset content corresponding to each transaction message must be translated, so that the unique attribute fields corresponding to multiple character pairs in the transaction product can be obtained.
[0061] d) Obtain a configuration template for the transaction product based on the common attribute fields and the unique attribute fields.
[0062] All common attribute fields and unique attribute fields obtained by parsing the current transaction product are stored, and the configuration template corresponding to the current transaction product can be obtained.
[0063] S130. Store the common attribute field content and the unique attribute field content in the configuration template to obtain a product object of the transaction product.
[0064] When obtaining a transaction message, the common attribute field content corresponding to the common attribute can be obtained by parsing the first preset content (i.e., the common message) in the target transaction message, and the unique attribute field content corresponding to the unique attribute can be obtained by translating the second preset content (i.e., the unique message) in the target transaction message. After storing the obtained common attribute field content and unique attribute field content in the corresponding attribute field of the configuration template, the product object of the transaction channel corresponding to the current transaction product can be obtained.
[0065] Among them, the current product object represents the entity object that affects the performance of the trading product in the subsequent step S140, that is, after storing the common attribute field content and the unique attribute field content in the configuration template, it is not necessary to store all the common attribute field content and the unique attribute field content corresponding to each attribute field in the configuration template, and only the field content corresponding to the attribute field in the configuration template related to performance recording is stored, and the stored field is called a product object.
[0066] S140. Record the performance of the trading products according to the product objects.
[0067] The performance record may be performed by extracting relevant fields such as "sales amount" or "product performance" from the product object, thereby calculating the sales performance of the current salesperson and completing the performance record operation for the transaction product based on the product object.
[0068] Optionally, when recording the performance of transaction products according to product objects, performance can also be recorded with sales personnel as the core in the product objects, so as to facilitate subsequent performance statistics of different sales personnel for the current transaction products. The specific performance recording method is not limited here.
[0069] Optionally, the product objects related to the current transaction product may be stored in a database, and the product objects corresponding to the transaction product may be extracted from the database during subsequent performance registration.
[0070] The product performance recording method provided in the embodiment of the present invention extracts the target transaction message into a common message and a unique message, and then extracts the corresponding attribute field content according to the different properties of the common message and the unique message, thereby storing the corresponding attribute field content in a pre-set configuration template to obtain a product object, and realizes the performance record of the transaction product according to the product object. By extracting the common attribute field content and the unique attribute field content of the transaction product between multiple transaction channels, code redundancy is reduced, and the problems of heavy workload for developers and difficulty in unified maintenance in the later stage caused by the prior art are solved, thereby achieving the beneficial effects of improving development efficiency and reducing system maintenance costs.
[0071] Figure 2 1 is another flow chart of the product performance recording method provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is a further refinement of the corresponding features of the above embodiment. Figure 2 As shown, the method may include the following steps:
[0072] S210: Obtain a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, and the common message includes a product identifier.
[0073] S220: Acquire a configuration template for the transaction product from a configuration template set according to the product identifier, where the configuration template set includes at least one configuration template corresponding to the transaction product.
[0074] The configuration template provided by the embodiment of the present invention is centered on transaction products, that is, there are currently a number of types of transaction products, and there is a corresponding configuration template for each transaction product. Therefore, when obtaining the configuration template of the transaction product according to the product identifier, a unique corresponding configuration template can be obtained in the configuration template set.
[0075] S230, parsing the common notification document to obtain the common attribute field content.
[0076] S240: Obtain a target character pair according to the unique message, where the target character pair includes a first character and a second character.
[0077] The unique message is represented in the transaction message in the form of a character pair (key-value). When parsing the unique message, at least one character pair is obtained. Any character pair in the unique message can be called a target character pair. The numerical value corresponding to the key can be called the first character, and the numerical value corresponding to the value can be called the second character.
[0078] S241. Query a unique attribute field from a mapping relationship table according to the first character, where a plurality of character pairs corresponding to each unique attribute field are stored in the mapping relationship table.
[0079] Since the unique message is a message with multiple representation forms for the same attribute field when the transaction product is successfully traded in different transaction channels, the unique attribute field corresponding to the current first character is first queried in the mapping relationship table. That is, the mapping relationship table stores multiple character pairs corresponding to each unique attribute field.
[0080] When querying the unique attribute field through the mapping relationship table, illustratively, the "product performance" attribute field is represented as a character pair (a, k) or (b, k) in the unique message. Among them, for the first characters a and b, the corresponding unique attribute field queried in the mapping relationship table is x, that is, no matter how many representation methods there are for the "product performance" attribute field, it is represented by the unique attribute field x in the mapping relationship table.
[0081] S242. Store the second character in the unique attribute field to obtain the content of the unique attribute field.
[0082] As shown in step S241, the character k in the above example can be called the second character, and the second character can be stored in the unique attribute field obtained in step S241 to obtain the unique attribute field content. A new character pair (x, k) can be formed, which means that the field content in the unique attribute field x is k.
[0083] S250: Obtain a channel identifier of a target transaction channel from the target transaction message.
[0084] The purpose of obtaining channel identification is to determine the legitimacy of the target transaction channel, so as to ensure that the current sales personnel are performing formal operations through channels permitted by the system when selling transaction products, thereby avoiding the problem of recording illegal channel performance.
[0085] The configuration template of the transaction product also includes transaction channel identification information.
[0086] That is, the transaction channels allowed by the system have been pre-saved in the configuration template, that is, the transaction channel identification information for all transaction products allowed to be traded is saved.
[0087] S251. Determine whether the target transaction channel is legal based on the channel identifier.
[0088] The method of judging whether the target transaction channel is legal according to the channel identifier may be to search whether the channel identifier is included in the transaction channel identifier information, and if so, confirm that the target transaction channel is legal, and execute step S260. If not, confirm that the target transaction channel is illegal, and execute step S252.
[0089] S252: Display error information.
[0090] The current performance recording operation ends.
[0091] S260. Obtain the seller identity field from the common attribute field.
[0092] When the transaction channel is legal, relevant operations of performance record can be performed on the transaction product according to the product object. When performing performance record, first obtain the seller identity field from the common attribute field. The current seller identity field can be "employee number", "product manager", "name" or "seller", etc. The specific representation method of the seller identity field is not limited here.
[0093] S261. Obtain product performance fields from the unique attribute fields.
[0094] Since product performance affects the seller's performance elimination, there are generally multiple representations of the corresponding fields of product performance in different transaction channels. Therefore, it is necessary to obtain the product performance field from the unique attribute field. Among them, the product performance field can be "amount", "product amount" or "product performance", etc. The representation method of the specific product performance field is not limited here.
[0095] S262. Record the performance of the transaction products sold by the seller according to the content in the product performance field.
[0096] The current specific seller can be obtained based on the content in the seller identity field in the product object, and the seller's sales volume can be obtained based on the content in the recorded product performance field, thereby completing the performance record of the transaction products sold by the seller.
[0097] It should be noted that when recording the performance of transaction products sold by sellers, the attribute fields that need to be extracted are not limited to the "seller identity identification field" and the "product performance field", and the "channel identification" field and the "transaction serial number" field can also be extracted accordingly. There is no restriction on the specific attribute fields for the time series extraction of performance records of transaction products.
[0098] The product performance recording method provided in the embodiment of the present invention realizes the integration function of different product performance registration by setting a configuration template. The flexible and configurable solution solves the differences between different products and provides a unified performance recording mode for all products in all transaction channels. The product performance recording method provided in the embodiment of the present invention reduces code redundancy, improves development efficiency, and reduces system maintenance costs.
[0099] Figure 3 1 is a schematic diagram of a structure of a product performance recording device provided by an embodiment of the present invention, and the device is suitable for executing a product performance recording method provided by an embodiment of the present invention. Figure 3As shown, the device may specifically include: a message acquisition module 310, a template acquisition module 320, a field storage module 330 and a performance recording module 340; wherein:
[0100] The message acquisition module 310 is used to acquire a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, and the common message includes a product identifier;
[0101] The template acquisition module 320 is used to acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content;
[0102] A field storage module 330, used to store the common attribute field content and the unique attribute field content in the configuration template to obtain a product object of the transaction product;
[0103] The performance recording module 340 is used to record the performance of the transaction product according to the product object.
[0104] The product performance recording device provided by the embodiment of the present invention extracts the target transaction message into a common message and a unique message, and then extracts the corresponding attribute field content according to the different properties of the common message and the unique message, thereby storing the corresponding attribute field content in a pre-set configuration template to obtain a product object, and realizes the performance record of the transaction product according to the product object. By extracting the common attribute field content and the unique attribute field content of the transaction product between multiple transaction channels, code redundancy is reduced, and the problems of heavy workload for developers and difficulty in unified maintenance in the later stage caused by the prior art are solved, thereby achieving the beneficial effects of improving development efficiency and reducing system maintenance costs.
[0105] In one embodiment, the template acquisition module 320 is specifically configured to acquire the configuration template of the transaction product from a configuration template set according to the product identifier, and the configuration template set includes at least one configuration template corresponding to the transaction product.
[0106] In one embodiment, the device further comprises: a common field parsing module, a unique field translation module and a configuration template generating module, wherein:
[0107] The message acquisition module 310 is specifically used to acquire the transaction message obtained by the transaction product through each transaction channel, the number of the transaction channel is at least one, and the number of the transaction messages corresponds to the number of the transaction channels one by one;
[0108] A common field parsing module, used to parse the first preset content in each of the transaction messages to obtain the common attribute fields of the transaction products;
[0109] A unique field translation module, used for translating the second preset content in each of the transaction messages to obtain the unique attribute field of the transaction product;
[0110] A configuration template generating module is used to obtain the configuration template of the transaction product according to the common attribute field and the unique attribute field.
[0111] In one embodiment, the unique field translation module includes: a character pair obtaining unit and a unique field obtaining unit, wherein:
[0112] A character pair obtaining unit, configured to parse the second preset content in each of the transaction messages to obtain a plurality of character pairs corresponding to the same attribute field of the transaction product;
[0113] The unique field obtaining unit is used to translate the multiple character pairs to obtain the unique attribute fields corresponding to the multiple character pairs.
[0114] In one embodiment, the template acquisition module 320 includes: a target character pair acquisition unit and a unique field query unit, wherein:
[0115] A target character pair obtaining unit, configured to obtain a target character pair according to the unique message, wherein the target character pair includes a first character and a second character;
[0116] A unique field query unit, configured to query a unique attribute field from a mapping relationship table according to the first character, wherein the mapping relationship table stores a plurality of character pairs corresponding to each unique attribute field;
[0117] The unique field obtaining unit is specifically used to store the second character in the unique attribute field and obtain the content of the unique attribute field.
[0118] In one embodiment, the performance recording module 340 includes: an identity field acquisition unit, a performance field acquisition unit and a performance recording unit, wherein:
[0119] An identity field acquisition unit, used to acquire a seller identity identification field from the common attribute field;
[0120] A performance field acquisition unit, used to acquire a product performance field from the unique attribute field;
[0121] The performance recording unit is used to record the performance of the transaction product sold by the seller according to the content in the product performance field.
[0122] In one embodiment, the configuration template of the transaction product also includes transaction channel identification information; the device also includes: a channel identification acquisition module and a judgment module, wherein:
[0123] A channel identification acquisition module, used for acquiring a channel identification of a target transaction channel from the target transaction message;
[0124] A judgment module, used for judging whether the target transaction channel is legal according to the channel identifier;
[0125] If the transaction channel identification information contains the channel identification, confirming that the target transaction channel is legal, and recording the performance of the transaction product according to the product object;
[0126] If the transaction channel identification information does not include the channel identification, it is confirmed that the target transaction channel is illegal and an error message is displayed.
[0127] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0128] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the product performance recording method described in any embodiment of the present invention.
[0129] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the product performance recording method described in any embodiment of the present invention when executed.
[0130] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 500 of an electronic device suitable for implementing an embodiment of the present invention. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0131] like Figure 4As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0132] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0133] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0134] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be arranged in a processor, for example, it may be described as follows: a processor includes an acquisition module, a determination module, and a creation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0137] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining a target transaction message of a transaction product, the target transaction message includes a common message and a unique message, and the common message includes a product identifier;
[0138] Acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content;
[0139] The common attribute field content and the unique attribute field content are stored in the configuration template to obtain a product object of the transaction product;
[0140] The performance of the transaction product is recorded according to the product object.
[0141] According to the technical solution of the embodiment of the present invention, the target transaction message can be extracted into common message and unique message, and then the corresponding attribute field content is extracted according to the different properties of the common message and the unique message, so that the corresponding attribute field content is stored in a pre-set configuration template to obtain a product object, and the performance record of the transaction product is realized according to the product object. By extracting the common attribute field content and the unique attribute field content of the transaction product between multiple transaction channels, code redundancy is reduced, and the problems of heavy workload for developers and difficulty in unified maintenance in the later stage caused by the prior art are solved, thereby achieving the beneficial effects of improving development efficiency and reducing system maintenance costs.
[0142] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A product performance recording method, characterized in that: The method comprises: Acquire a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, wherein the common message includes a product identifier; wherein the common message is a message in the target transaction message that is expressed in a non-character pair format; and the unique message is a message in the target transaction message that is expressed in a character pair format; Acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content; The common attribute field content and the unique attribute field content are stored in the configuration template to obtain a product object of the transaction product; Recording the performance of the transaction product according to the product object; The translating the unique message to obtain unique attribute field content includes: Obtain a target character pair according to the unique message, wherein the target character pair includes a first character and a second character; According to the first character, query the unique attribute field from the mapping relationship table, wherein the mapping relationship table stores a plurality of character pairs corresponding to each of the unique attribute fields; The second character is stored in the unique attribute field, and the content of the unique attribute field is obtained.
2. The method according to claim 1, characterized in that The acquiring the configuration template of the transaction product according to the product identifier includes: The configuration template of the transaction product is acquired from a configuration template set according to the product identifier, and the configuration template set includes at least one configuration template corresponding to the transaction product.
3. The method according to claim 1 or 2, characterized in that: The configuration template of the transaction product is generated in the following way: Acquire a transaction message obtained by the transaction product through each transaction channel, the number of the transaction channel is at least one, and the number of the transaction messages corresponds to the number of the transaction channels one by one; Parsing the first preset content in each of the transaction messages to obtain the common attribute fields of the transaction products; Translating the second preset content in each of the transaction messages to obtain a unique attribute field of the transaction product; A configuration template for the transaction product is obtained according to the common attribute field and the unique attribute field.
4. The method according to claim 3, characterized in that The translating the second preset content in each of the transaction messages to obtain the unique attribute field of the transaction product includes: Parsing the second preset content in each of the transaction messages to obtain a plurality of character pairs corresponding to the same attribute field of the transaction product; The plurality of character pairs are translated to obtain the unique attribute fields corresponding to the plurality of character pairs.
5. The method according to claim 1, characterized in that The recording of the performance of the transaction product according to the product object includes: Acquire a seller identification field from the common attribute field; Acquire a product performance field from the unique attribute field; The performance of the transaction product sold by the seller is recorded according to the content in the product performance field.
6. The method according to claim 1, characterized in that The configuration template of the transaction product also includes transaction channel identification information; Before recording the performance of the transaction product according to the product object, the method further includes: Acquire a channel identifier of a target transaction channel from the target transaction message; Determining whether the target transaction channel is legal according to the channel identifier; If the transaction channel identification information contains the channel identification, confirming that the target transaction channel is legal, and recording the performance of the transaction product according to the product object; If the transaction channel identification information does not include the channel identification, it is confirmed that the target transaction channel is illegal and an error message is displayed.
7. A product performance recording device, characterized in that: include: A message acquisition module, used to acquire a target transaction message of a transaction product, wherein the target transaction message includes a common message and a unique message, wherein the common message includes a product identifier; wherein the common message is a message in the target transaction message that is expressed in a non-character pair form; and the unique message is a message in the target transaction message that is expressed in a character pair form; A template acquisition module, used to acquire the configuration template of the transaction product according to the product identifier, parse the common message to obtain the common attribute field content, and translate the unique message to obtain the unique attribute field content; A field storage module, used for storing the common attribute field content and the unique attribute field content in the configuration template to obtain a product object of the transaction product; A performance recording module, used for recording the performance of the transaction product according to the product object; The template acquisition module includes a target character pair acquisition unit and a unique field query unit, wherein: A target character pair obtaining unit, configured to obtain a target character pair according to the unique message, wherein the target character pair includes a first character and a second character; A unique field query unit, configured to query a unique attribute field from a mapping relationship table according to the first character, wherein the mapping relationship table stores a plurality of character pairs corresponding to each unique attribute field; The unique field obtaining unit is specifically configured to store the second character in the unique attribute field and obtain the content of the unique attribute field.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the product performance recording method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the product performance recording method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Service statistics method and apparatus, computer device and storage medium
CN108710668A
Performance attribution method and system, computer equipment and readable storage medium thereof
CN112860629A