Bill data processing method and device and electronic equipment
Technical Field
The invention relates to the technical field of big data, in particular to a bill data processing method and device and electronic equipment.
Background
In the correlation technique, center merchant's marketing is mostly propagated through shopping center show tablet or through shopping center public number, and current propaganda mode can't be propagated to consumer's shopping habit, and the precision of propaganda is not high, the effect is general, the convenience is low, the cost is also than higher.
Disclosure of Invention
In view of this, the present invention provides a bill data processing method, an apparatus and an electronic device, which provide associated merchants matched with a user group for a target merchant, and can publicize among the associated merchants, with high publicity accuracy, high convenience, low cost and good effect.
In a first aspect, an embodiment of the present invention provides a method for processing bill data, which is applied to a merchant service platform, where the merchant service platform includes basic information of multiple merchants, bill data sent by the multiple merchants, and a user identity corresponding to each bill data; wherein, the bill data includes: a bill identification and a merchant identification; the method comprises the following steps: determining the target user identity of the target merchant according to the bill data of the target merchant; counting the bill identification number of other merchants except the target merchant corresponding to the target user identity identification according to the bill data sent by the plurality of merchants; determining the related merchants of the target merchant based on the bill identification number of other merchants; the associated merchants are merchants matched with the user group of the target merchant.
In a preferred embodiment of the present invention, the method further includes: receiving the bill data of the merchant sent by the bill acquisition equipment; receiving consumption data sent by the user terminal based on the bill data; the consumption data carries a user identity identifier and a bill identifier corresponding to the bill data; and storing the corresponding relation between the user identity identifier corresponding to the bill data and the bill identifier.
In a preferred embodiment of the present invention, the step of determining the associated merchant of the target merchant based on the bill identification number of other merchants includes: sorting the bill identification numbers of other merchants from high to low to obtain a sorting result; and determining the associated merchant of the target merchant based on the sorting result.
In a preferred embodiment of the present invention, the step of determining the associated merchant of the target merchant based on the sorting result includes: extracting a continuous specified number of other merchants from the first other merchant of the sequencing result; and taking the extracted other merchants as the associated merchants of the target merchant.
In a preferred embodiment of the present invention, the merchant service platform further includes recommendation information of a plurality of merchants; after the step of determining the associated merchant of the target merchant based on the bill identification number of the other merchants, the method further includes: receiving consumption data sent by a user terminal; and if the merchant identifier corresponding to the consumption data is the associated merchant, sending recommendation information of the target merchant to the user terminal.
In a preferred embodiment of the present invention, the recommendation information includes: coupon information and/or marketing information.
In a preferred embodiment of the present invention, the method further includes: and if the merchant identifier corresponding to the consumption data is the target merchant, sending recommendation information of the associated merchant to the user terminal.
In a second aspect, an embodiment of the present invention further provides a billing data processing apparatus, which is applied to a merchant service platform, where the merchant service platform includes basic information of multiple merchants, billing data sent by the multiple merchants, and a user identity corresponding to each billing data; wherein, the bill data includes: a bill identification and a merchant identification; the device comprises: a target user identity determination module to: determining the target user identity of the target merchant according to the bill data of the target merchant; a bill identification number statistics module for: counting the bill identification number of other merchants except the target merchant corresponding to the target user identity identification according to the bill data sent by the plurality of merchants; an associated merchant determination module to: determining the related merchants of the target merchant based on the bill identification number of other merchants; the associated merchants are merchants matched with the user group of the target merchant.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the above-mentioned bill data processing method.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the steps of the bill data processing method described above.
The embodiment of the invention has the following beneficial effects:
according to the bill data processing method, the bill data processing device and the electronic equipment, the bill identification number of other merchants except the target merchant corresponding to the target user identity of the target merchant is counted according to the bill data sent by the merchants, and the associated merchant of the target merchant is determined based on the bill identification number. In the method, the associated commercial tenants matched with the user group are provided for the target commercial tenants, propaganda can be performed among the associated commercial tenants, and the propaganda precision is high, the convenience is high, the cost is low, and the effect is good.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a bill data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another billing data processing method provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a merchant alliance method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a merchant diversion method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a bill data processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, most of the marketing of commercial customers of the shopping centers at the present stage is publicized through shopping center display boards or public numbers of the shopping centers, the accuracy of the mode is not high, the mode can only be a broad-broadcasting network, the effect is difficult to count, the convenience is low, and the cost is relatively high. At present, the online marketing scene is realized, and the scenes of mutually conducting marketing among merchants who are online and offline are almost absent. Based on this, the bill data processing method and device and the electronic device provided by the embodiment of the invention are applied to the technical field of big data, and particularly relate to a method for establishing an online relationship of a merchant based on big data analysis.
For the convenience of understanding the embodiment, a detailed description will be given to a bill data processing method disclosed in the embodiment of the present invention.
Example 1
The embodiment of the invention provides a bill data processing method which is applied to a merchant service platform, wherein the merchant service platform comprises basic information of a plurality of merchants, bill data sent by the merchants and a user identity corresponding to each bill data; wherein, the bill data includes: a bill identification and a merchant identification.
The merchant service platform is a platform for providing services for merchants, and various services can be provided for merchants through the merchant service platform, for example: bill data downloading, transaction amount inquiry and the like; the merchant service platform includes basic information for a plurality of merchants. After a consumer purchases a commodity from a merchant connected to the merchant service platform, the merchant service platform receives the billing data of the purchase and the user identification of the consumer of the purchase. The user identification is used for numbering the consumers and can be the mobile phone numbers, the member numbers and the like of the consumers. The billing data includes: the bill identification and the merchant identification, the bill identification is an identification of the current purchase, and may be an identification of a receipt generated by the current purchase, and the merchant identification is an identification of the merchant of the current purchase, and may be a name of the merchant, a location of the merchant, and the like. For example, if the user of member number a1 purchased article C at a merchant named X and generated a coupon with number Y, the purchase of article C would include: the user identity may be a1, the billing identity may be Y, and the merchant identity may be X.
Based on the above description, referring to the flowchart of a bill data processing method shown in fig. 1, the bill data processing method includes the following steps:
and step S102, determining the target user identity of the target merchant according to the bill data of the target merchant.
The target merchant refers to a merchant who wants to find an associated merchant, that is, if a merchant wants to find an associated merchant based on the merchant service platform, a request for finding the associated merchant needs to be sent to the merchant service platform, and the merchant service platform takes the merchant who sends the request as the target merchant.
The merchant service platform searches the bill data of the target merchant from the stored data, and searches user identification marks of all corresponding consumers in the bill data of the target merchant to serve as the target user identification marks. That is, in the billing data, the merchant identification of the target merchant has been corresponded to a plurality of target user identities.
And step S104, counting the bill identification number of other merchants except the target merchant corresponding to the target user identity according to the bill data sent by the merchants.
And for the target user identity, determining bill information corresponding to the target user identity in the data of all merchants, and counting the number of the bill identities. Step S102 has determined all consumers who have consumed at the target merchant (i.e. users with the target user id), and then counts the number of times that these consumers consumed at other merchants except the target merchant, where the number of times consumed by each merchant is the number of bill ids of the other merchants.
Step S106, determining the related commercial tenant of the target commercial tenant based on the bill identification quantity of other commercial tenants; the associated merchants are merchants matched with the user group of the target merchant.
If the bill identification number of the consumer who consumes at the target merchant at one other merchant is higher, it indicates that the number of times of consuming at one other merchant by the consumer is higher, the matching degree of the target merchant and the user group of the other merchant is higher, and the other user can be taken as the associated user of the target user, so that the associated user and the target user can advertise each other, make a recommendation mutually, or mutually issue a coupon of the other party.
According to the bill data processing method provided by the embodiment of the invention, the bill identification number of other merchants except the target merchant corresponding to the target user identity identification of the target merchant is counted according to the bill data sent by the merchants, and the associated merchant of the target merchant is determined based on the bill identification number. In the method, the associated commercial tenants matched with the user group are provided for the target commercial tenants, propaganda can be performed among the associated commercial tenants, and the propaganda precision is high, the convenience is high, the cost is low, and the effect is good.
Example 2
The embodiment of the invention also provides another bill data processing method; the method is realized on the basis of the method of the embodiment; the method mainly describes a specific implementation mode of determining the relevant commercial tenant of the target commercial tenant based on the bill identification number of other commercial tenants. As shown in fig. 2, another bill data processing method is a flowchart, and the bill data processing method includes the following steps:
step S202, determining the target user identity of the target merchant according to the bill data of the target merchant.
The merchant service platform establishes the corresponding relation between the user identity and the sticky note data based on the bill data sent by the merchant and the bill data sent by the user terminal, and can execute the following steps of A1-step A3:
and step A1, receiving the bill data of the merchant sent by the bill collecting device.
The bill collecting device is arranged in the merchant, is used for collecting the bill data of the merchant, and can be a computer, a mobile phone, a tablet computer and other devices which can be connected with the internet. The bill can be a receipt generated by the consumption of the user, and a two-dimensional code, a bar code or a numerical number is marked on the receipt to number the receipt, so that the receipt can be used as a bill identifier. The small ticket is also marked with a merchant identifier, and can be identified by using a two-dimensional code, a bar code, a number or characters.
Step A2, receiving consumption data sent by a user terminal based on the bill data; the consumption data carries a user identity identifier and a bill identifier corresponding to the bill data.
Besides, each receipt contains a consumption identifier, which can be a two-dimensional code. When the user uses the user terminal to identify the consumption identification, the user identity identification and the bill identification corresponding to the receipt are sent to the merchant service platform to serve as consumption data. Taking the two-dimension code as an example, the user terminal can be a mobile phone or a tablet computer and other devices with the function of identifying the two-dimension code; after the user terminal scans the two-dimensional code, an interface can be popped up to inquire whether the user identity identification (the user identity identification can be a mobile phone number or a membership number) is allowed to be obtained or not, after the user agrees, some coupons or discounts can be given to the user, the user terminal can combine the user identity identification and the bill identification of the receipt into consumption data, and the consumption data are sent to the merchant service platform.
Step A3, storing the corresponding relationship between the user ID and the bill ID corresponding to the bill data.
After the merchant service platform obtains the bill data and the consumption data, the merchant service platform may correspond the bill identification, the merchant identification, and the user identification one to one, and display the bill identification, the merchant identification, and the user identification on an Html5(HyperText markup language 5.0) page, and perform associated storage on the user identification and the bill identification to store the consumption record of the consumer.
And step S204, counting the bill identification number of other merchants except the target merchant corresponding to the target user identity according to the bill data sent by the merchants.
The method comprises the steps of firstly searching target user identity identifications corresponding to bills from bill data sent by multiple merchants, then searching bill identifications corresponding to the target user identity identifications, removing the bill identifications corresponding to the target merchants, and counting the number of the bill identifications of other merchants except the target merchants.
And S206, sequencing the bill identification numbers of other merchants from high to low to obtain a sequencing result.
Generally, the greater the number of bill identifications of other merchants, the higher the matching degree of the other merchants and the target merchant, and the other merchants can be regarded as the associated merchants of the target merchant. It is necessary to rank the bill identification numbers of other merchants from high to low to obtain a ranking result indicating the matching degree between other merchants and the target merchant.
And step S208, determining the associated merchant of the target merchant based on the sorting result.
The ranking result may indicate the matching degree of other merchants and the target merchant, and the associated merchant may be determined through steps B1-B2:
step B1, starting with the first other merchant of the ranked result, extracts a specified number of other merchants in succession.
The specified number may be set by the target merchant or by the merchant service platform, and if the specified number set by the target merchant is 20, it indicates that the target merchant wants 20 other merchants as associated merchants, then the top 20 merchants of the ranking result are selected as their associated merchants.
In addition to extracting a specified number of other merchants, a specified proportion of other merchants may be extracted, such as: extracting the first 10% of other merchants; alternatively, the extracted bill identifies other merchants with a quantity greater than a specified threshold, such as: the bill pull identifies other merchants that are greater in number than 300.
And step B2, taking the extracted other merchants as the associated merchants of the target merchant.
The extracted merchant is the merchant with the highest matching degree with the target merchant, and the extracted merchant may be used as the associated merchant of the target merchant.
It should be noted that if there is a competitive relationship between a merchant and a target merchant, the merchant may not be the associated merchant. By presetting the Beijing entrance relation among merchants, the merchants with competitive relation are eliminated from the selection of the associated merchants.
After determining the associated merchants of the target merchants, the basic information of the associated users can be sent to the target merchants, so that the target merchants determine whether to establish a federation relationship, and if so, the target merchants send a request for establishing federation for one or more associated merchants to the merchant service platform. When the merchant service platform receives the request, the federation relationship may be established through steps C1-C2:
step C1, receiving consumption data sent by the user terminal;
it has been mentioned above that the user may send consumption data to the merchant service platform by scanning the two-dimensional code, and after establishing the union relationship, the merchant service platform may provide recommendation service for two merchants in the union relationship.
And step C2, if the merchant identification corresponding to the consumption data is the associated merchant, sending the recommendation information of the target merchant to the user terminal.
The recommendation information is pre-stored in the merchant service platform and can be marketing resources such as advertisements, coupons and the like. When the merchant identifier corresponding to the consumption data is the associated merchant, which indicates that the consumption is generated at the associated merchant, the recommendation information of the target merchant can be sent to the user terminal corresponding to the consumption, that is, the recommendation information of the target merchant is provided for the people who consume at the associated merchant, so as to guide the consumption.
Besides, the target merchant stream can be provided for the associated merchant, and the following steps are performed: and if the merchant identifier corresponding to the consumption data is the target merchant, sending recommendation information of the associated merchant to the user terminal. That is, the recommendation information of the associated merchant is provided for the people who consume at the target merchant.
The merchant alliance method in the bill data processing method provided by the embodiment of the present invention may refer to a schematic diagram of a merchant alliance method in fig. 3, as shown in fig. 3: after the target merchant applies for alliance, the merchant service platform provides a merchant list (namely an associated merchant list) for recommending alliance, and the target merchant selects a proper associated merchant based on the list and initiates alliance application. When the allied associated merchant agrees, the target merchant and the associated merchant are successfully allied.
The merchant drainage method in the bill data processing method provided by the embodiment of the present invention can refer to a schematic diagram of a merchant drainage method in fig. 4, as shown in fig. 4: when the consumer scans the code, the merchant service platform can display the coupon or the advertisement space on the page of the Html5 according to the alliance information, and the consumer is prevented from clicking the advertisement or getting the coupon and consuming the coupon at the merchant to which the coupon belongs, so that the drainage purpose is achieved.
Example 3
Corresponding to the method embodiment, the embodiment of the invention provides a bill data processing device, which is applied to a merchant service platform, wherein the merchant service platform comprises basic information of a plurality of merchants, bill data sent by the merchants and a user identity corresponding to each bill data; wherein, the bill data includes: a bill identification and a merchant identification.
Based on the above description, as shown in fig. 5, a structural diagram of a bill data processing apparatus includes:
a target user identity determination module 51, configured to: determining the target user identity of the target merchant according to the bill data of the target merchant;
a bill identification number statistics module 52 for: counting the bill identification number of other merchants except the target merchant corresponding to the target user identity identification according to the bill data sent by the plurality of merchants;
an associated merchant determination module 53 for: determining the related merchants of the target merchant based on the bill identification number of other merchants; the associated merchants are merchants matched with the user group of the target merchant.
According to the bill data processing device provided by the embodiment of the invention, the bill identification number of other merchants except the target merchant corresponding to the target user identity identification of the target merchant is counted according to the bill data sent by the merchants, and the associated merchant of the target merchant is determined based on the bill identification number. In the method, the associated commercial tenants matched with the user group are provided for the target commercial tenants, propaganda can be performed among the associated commercial tenants, and the propaganda precision is high, the convenience is high, the cost is low, and the effect is good.
In some embodiments, the apparatus further comprises a data saving module to: receiving the bill data of the merchant sent by the bill acquisition equipment; receiving consumption data sent by the user terminal based on the bill data; the consumption data carries a user identity identifier and a bill identifier corresponding to the bill data; and storing the corresponding relation between the user identity identifier corresponding to the bill data and the bill identifier.
In some embodiments, the associated merchant determination module is to: sorting the bill identification numbers of other merchants from high to low to obtain a sorting result; and determining the associated merchant of the target merchant based on the sorting result.
In some embodiments, the associated merchant determination module is to: extracting a continuous specified number of other merchants from the first other merchant of the sequencing result; and taking the extracted other merchants as the associated merchants of the target merchant.
In some embodiments, the merchant service platform further comprises the recommendation information device for multiple merchants further comprises a merchant drainage module, configured to: receiving consumption data sent by a user terminal; and if the merchant identifier corresponding to the consumption data is the associated merchant, sending recommendation information of the target merchant to the user terminal.
In some embodiments, the recommendation information includes: coupon information and/or marketing information.
In some embodiments, a merchant diversion module to: and if the merchant identifier corresponding to the consumption data is the target merchant, sending recommendation information of the associated merchant to the user terminal.
The bill data processing device provided by the embodiment of the invention has the same technical characteristics as the bill data processing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Example 4
The embodiment of the invention also provides electronic equipment, which is used for operating the bill data processing method; referring to fig. 6, an electronic device includes a memory 100 and a processor 101, where the memory 100 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the bill data processing method.
Further, the electronic device shown in fig. 6 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above bill data processing method, and specific implementation may refer to method embodiments, and is not described herein again.
The bill data processing method and apparatus and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and/or the electronic device described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.