A data display method and device

By generating and verifying condition data, the sales type and effective time are determined, which solves the problems of inflexible data display and resource waste in the existing technology, achieving accurate data display and saving server resources.

CN113077316BActive Publication Date: 2024-09-20BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110413021.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-16
Publication Date
2024-09-20
Estimated Expiration
2041-04-16

AI Technical Summary

Technical Problem

The existing technology cannot achieve flexible data display settings, and it is difficult to ensure the accuracy of data display, especially when the display conditions change, and it increases the processing burden of the server and consumes more server resources.

Method used

Generate conditional data containing product display information based on the preset user group, verify the display data of the product, and generate second display data if it passes, determine the sales type and effective time based on the conditional data, and generate valid data within the effective time. Display data to avoid invalidation of display data during overlapping periods.

Benefits of technology

It realizes flexible data display settings, ensures the correctness of data display, avoids waste of server resources, and saves server processing burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113077316B
    Figure CN113077316B
Patent Text Reader

Abstract

The present invention discloses a data display method and device, and relates to the field of computer technology. A specific implementation of the method includes: based on a preset user group, generating conditional data containing product display information, the product display information corresponds to the product displayed to the user group; verifying the conditional data according to the first display data of the product, and if the verification passes, generating the second display data of the product based on the conditional data; and displaying the second display data to the user group. This implementation implements flexible data display settings, flexibly sets user groups, and can effectively ensure the correctness of data display when display conditions change, realize accurate data display, and avoid increasing the processing burden of the server, saving server resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data display method and device. Background Art

[0002] In commodity sales, for commodities that cannot be purchased by specific regions and / or users, it is necessary to implement a sales ban; for commodities with sales quantity restrictions, it is necessary to implement sales restrictions; for commodities that can only be purchased by specific regions and / or users, it is necessary to implement sales permission. However, there is currently a lack of complete and mature solutions for implementing sales restrictions, sales bans, and sales permission.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] It is impossible to implement flexible data display settings. When the display conditions change, it is difficult to effectively ensure the correctness of the data display, and it will increase the processing burden of the server and consume more server resources. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a data display method and device, which can realize flexible data display settings, flexibly set user groups, effectively ensure the correctness of data display when display conditions change, realize accurate data display, and avoid increasing the processing burden of the server, saving server resources.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a data display method is provided.

[0007] A data display method comprises: generating conditional data including commodity display information based on a preset user group, wherein the commodity display information corresponds to the commodity displayed to the user group; verifying the conditional data according to first display data of the commodity, and if the verification passes, generating second display data of the commodity based on the conditional data; and displaying the second display data to the user group.

[0008] Optionally, before generating conditional data containing product display information based on a preset user group, it includes: setting the user group through a combination of one or more of user area, user account type, user whitelist, and user blacklist, wherein the user whitelist and user blacklist are customized user lists.

[0009] Optionally, verifying the condition data based on the first display data of the commodity includes: determining whether there is an overlapping time between the effective time of the condition data and the effective time of the first display data; if there is no overlapping time, the condition data verification passes; if there is an overlapping time, obtaining the sales type of the commodity corresponding to the first display data, the sales type including one of limited sales, prohibited sales, and permitted sales, and determining whether the obtained sales type is a sales type that can be associated with the commodity display information, if so, the condition data verification passes, otherwise, the condition data verification fails.

[0010] Optionally, when the commodity display information includes commodity sales restriction information, the sales type that may be associated with the commodity display information is limited sales, prohibited sales, and permitted sales; when the commodity display information includes commodity sales prohibition information, the sales type that may be associated with the commodity display information is limited sales and prohibited sales; when the commodity display information includes commodity sales permission information, the sales type that may be associated with the commodity display information is limited sales and permitted sales.

[0011] Optionally, the commodity sales restriction information includes the maximum quantity of the commodity displayed and / or sold to a single user and the name of the conditional data, the applicable user group and the effective time, and the commodity sales prohibition information and the commodity sales permission information both include the name of the conditional data, the applicable user group and the effective time.

[0012] Optionally, generating the second display data of the product based on the condition data includes: determining a configured sales type according to the condition data; in the absence of the overlapping time, generating display data valid within the effective time of the condition data according to the condition data as the second display data; in the presence of the overlapping time, if the priority of the configured sales type is equal to or higher than the acquired sales type, generating display data valid within the effective time of the condition data according to the condition data as the second display data; if the priority of the configured sales type is lower than the acquired sales type, generating display data valid within a specified time period according to the condition data, the specified time period being a time period within the effective time of the condition data excluding the overlapping time, and obtaining the second display data according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

[0013] Optionally, when the overlapping time exists and the priority of the configured sales type is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid.

[0014] According to another aspect of an embodiment of the present invention, a data display device is provided.

[0015] A data display device includes: a conditional data generation module, which is used to generate conditional data containing commodity display information based on a preset user group, wherein the commodity display information corresponds to the commodity displayed to the user group; a second display data generation module, which is used to verify the conditional data according to the first display data of the commodity, and if the verification passes, generate the second display data of the commodity based on the conditional data; and a second display data display module, which is used to display the second display data to the user group.

[0016] Optionally, it also includes a user group setting module, which is used to set the user group through a combination of one or more of user area, user account type, user whitelist, and user blacklist, wherein the user whitelist and user blacklist are customized user lists.

[0017] Optionally, the second display data generating module is further used to: determine whether there is an overlapping time between the effective time of the conditional data and the effective time of the first display data; if there is no overlapping time, the conditional data verification is passed; if there is an overlapping time, obtain the sales type of the commodity corresponding to the first display data, the sales type including one of limited sales, prohibited sales, and allowed sales, and determine whether the obtained sales type is a sales type that can be associated with the commodity display information, if so, the conditional data verification is passed, otherwise, the conditional data verification fails.

[0018] Optionally, when the commodity display information includes commodity sales restriction information, the sales type that may be associated with the commodity display information is limited sales, prohibited sales, and permitted sales; when the commodity display information includes commodity sales prohibition information, the sales type that may be associated with the commodity display information is limited sales and prohibited sales; when the commodity display information includes commodity sales permission information, the sales type that may be associated with the commodity display information is limited sales and permitted sales.

[0019] Optionally, the commodity sales restriction information includes the maximum quantity of the commodity displayed and / or sold to a single user and the name of the conditional data, the applicable user group and the effective time, and the commodity sales prohibition information and the commodity sales permission information both include the name of the conditional data, the applicable user group and the effective time.

[0020] Optionally, the second display data generating module is further used to: determine the configured sales type according to the condition data; if the overlapping time does not exist, generate display data valid within the effective time of the condition data according to the condition data as the second display data; if the overlapping time exists, if the priority of the configured sales type is equal to or higher than the acquired sales type, generate display data valid within the effective time of the condition data according to the condition data as the second display data; if the priority of the configured sales type is lower than the acquired sales type, generate display data valid within a specified time period according to the condition data, the specified time period being a time period within the effective time of the condition data excluding the overlapping time, and obtain the second display data according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

[0021] Optionally, when the overlapping time exists and the priority of the configured sales type is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid.

[0022] According to yet another aspect of the embodiments of the present invention, an electronic device is provided.

[0023] An electronic device includes: one or more processors; a memory for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the data display method provided by an embodiment of the present invention.

[0024] According to yet another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0025] A computer-readable medium stores a computer program, which, when executed by a processor, implements a data display method provided in an embodiment of the present invention.

[0026] One embodiment of the above invention has the following advantages or beneficial effects: based on a preset user group, conditional data containing product display information is generated, and the product display information corresponds to the product displayed to the user group; based on the first display data of the product, the conditional data is verified, and if the verification passes, the second display data of the product is generated based on the conditional data; and the second display data is displayed to the user group. Flexible data display settings are implemented, user groups are flexibly set, and the correctness of data display can be effectively guaranteed when display conditions change, accurate data display is implemented, and the processing burden of the server is avoided, saving server resources.

[0027] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0029] Figure 1 is a schematic diagram of main steps of a data display method according to an embodiment of the present invention;

[0030] Figure 2 is a flow chart of a data display method according to an embodiment of the present invention;

[0031] Figure 3 is a schematic diagram of main modules of a data display device according to an embodiment of the present invention;

[0032] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0033] Figure 5 It is a schematic diagram of the structure of a computer system suitable for implementing a server of an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0035] Figure 1 It is a schematic diagram of main steps of a data display method according to an embodiment of the present invention.

[0036] like Figure 1 As shown, a data display method according to an embodiment of the present invention mainly includes the following steps S101 to S103.

[0037] Step S101: based on a preset user group, condition data including commodity display information is generated, where the commodity display information corresponds to the commodities displayed to the user group.

[0038] Based on the preset user group, before generating conditional data containing product display information, the user group can be set by a combination of one or more of user area, user account type, user whitelist, and user blacklist, where the user whitelist and user blacklist are customized user lists.

[0039] Step S102: verifying the condition data according to the first display data of the product, and if the verification passes, generating the second display data of the product based on the condition data.

[0040] The first display data is display data including original display information of the product before the condition data is generated, and the second display data is display data including current display information of the product generated based on the condition data.

[0041] Verifying the conditional data according to the first display data of the commodity may include: determining whether there is an overlap between the effective time of the conditional data and the effective time of the first display data; wherein, if there is no overlap, the conditional data verification is passed. If there is an overlap, obtaining the sales type of the commodity corresponding to the first display data, the sales type including one of limited sales, prohibited sales, and permitted sales, and determining whether the obtained sales type is a sales type that can be associated with the commodity display information, if so, the conditional data verification is passed, otherwise, the conditional data verification is failed.

[0042] The association between product display information and sales types can be pre-configured as needed. When the product display information includes product sales restriction information, the sales types that can be associated with the product display information are limited sales, prohibited sales, and permitted sales; when the product display information includes product prohibited sales information, the sales types that can be associated with the product display information are limited sales and prohibited sales; when the product display information includes product permitted sales information, the sales types that can be associated with the product display information are limited sales and permitted sales. Limited sales refers to sales with limited quantity, prohibited sales refers to prohibition of sales, and permitted sales refers to normal sales, that is, no quantity limit.

[0043] Product sales restriction information may include the maximum quantity of the product to be displayed and / or sold to a single user, as well as the name of the conditional data, the applicable user group and the effective time. Product sales prohibition information and product sales permission information may both include the name of the conditional data, the applicable user group and the effective time.

[0044] Generating the second display data of the product based on the conditional data may include: determining the configuration sales type according to the conditional data; generating display data valid within the effective time of the conditional data as the second display data according to the conditional data when there is no overlapping time (referring to the overlapping time between the effective time of the conditional data and the effective time of the first display data, referred to as the overlapping time). In the case of overlapping time, if the priority of the configured sales type is equal to or higher than the obtained sales type, generating display data valid within the effective time of the conditional data as the second display data according to the conditional data; if the priority of the configured sales type is lower than the obtained sales type, generating display data valid within a specified time period according to the conditional data, the specified time period being a time period within the effective time of the conditional data excluding the overlapping time, and obtaining the second display data according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

[0045] The priority of sales type may be that prohibited sales are higher than restricted sales, and restricted sales are higher than permitted sales.

[0046] In the case where there is an overlapping time and the priority of the configured sales type is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data is invalid.

[0047] Step S103: presenting the second presentation data to the user group.

[0048] Figure 2 It is a flowchart of a data display method according to an embodiment of the present invention.

[0049] like Figure 2 As shown, the embodiments of the present invention are based on the principle that the prohibited sales are higher than the limited sales, the limited sales are higher than the permitted sales, and the prohibited sales and permitted sales are mutually exclusive for the same commodity within the same time period. By flexibly configuring the limited sales, prohibited sales, and permitted sales of commodities according to user types, user regions, etc., the problem that commodities with sales restrictions cannot be sold as regular commodities is solved. Flexible data display settings are implemented, and the correctness of commodity data display can be effectively guaranteed when sales restrictions are changed.

[0050] In one embodiment, the operator sets a user group (i.e., an active group) by setting a combination of one or more of the user region, user account type, user whitelist, and user blacklist, and saves the set user group to the database, wherein the name of the user group may be limited in length to reduce the space occupied in the database; the user region may be a city, a third-level address, or a fourth-level address, etc.; the user account type may be set according to the system's account system, such as dividing the user account type into gold members, silver members, etc. according to the account level; the user whitelist and user blacklist are customized user lists; the specific user group setting rules may be the user region, user account type, and the users included in the user whitelist minus the users included in the user blacklist. By setting the user group, the user range to which the goods can or cannot be sold is determined. When setting the rules for the sale of goods (i.e., the goods display information), the pre-set user group is selected to determine the user range to restrict the sale of goods;

[0051] In one embodiment, conditional data containing commodity sales limit information is generated based on a preset user group, and the commodity sales limit information corresponds to the commodity displayed to the user group, wherein the conditional data containing the commodity sales limit information can be generated by setting commodity sales limit rules. Specifically, when setting commodity sales limit rules, select the configuration sales type as sales limit, set the rule name, select the user group and commodity to which the commodity sales limit rule applies, set the effective time and the quantity that can be purchased by a single user, and generate the conditional data by submitting the above selected and set information, wherein the rule name can limit the length to reduce the space occupied in the database, the applied commodity can be one or more, and the effective time is not less than the current time.

[0052] After the conditional data is generated, the conditional data containing the product sales restriction information is verified according to the first display data of the product. Specifically, it is determined whether there is an overlap between the effective time of the conditional data and the effective time of the first display data; if there is no overlap, the conditional data verification is passed. If there is an overlap, the sales type of the product corresponding to the first display data is obtained, and it is determined whether the obtained sales type (i.e., the sales type of the product corresponding to the obtained first display data) is a sales type that can be associated with the product display information. If so, the conditional data verification is passed. Otherwise, the conditional data verification fails, and it is necessary to modify the effective time or recreate the applied product (i.e., regenerate the conditional data). In the case where the product display information includes the product sales restriction information, the sales types that can be associated with the product display information are limited sales, prohibited sales, and allowed sales.

[0053] After the conditional data is verified, the second display data of the product is generated based on the conditional data, and the second display data is saved to the database. Specifically, according to the conditional data, the sales type is determined, and the sales type of the conditional data containing the product limited sales information is limited sales; when there is no overlapping time between the effective time of the conditional data and the effective time of the first display data, the second display data valid within the effective time of the conditional data is directly generated according to the conditional data. If there is an overlapping time, it is determined whether the priority of the limited sales is equal to or higher than the priority of the acquired sales type. If the acquired sales type is limited sales or allowed sales, since the priority of the limited sales is equal to or higher than the priority of the acquired sales type, display data valid within the effective time of the conditional data is generated according to the conditional data as the second display data. After the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid. If the acquired sales type is prohibited sales, since the priority of restricted sales is lower than the priority of the acquired sales type, then display data valid in the specified time period is generated according to the conditional data, and the specified time period is the time period excluding the overlapping time within the effective time of the conditional data, and the second display data is obtained according to the valid display data in the specified time period and the first display data corresponding to the overlapping time, that is, the first display data is effective during the overlapping time. It should be noted that the status of the display data can be updated. For example, when there is an overlapping time and the priority of the configured sales type is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid. If the conditional data is deleted, the display data in the overlapping time in the first display data can be automatically updated from invalid to effective (i.e., valid).

[0054] In one embodiment, conditional data including commodity prohibition sale information is generated based on a preset user group, and the commodity prohibition sale information corresponds to the commodity displayed to the user group, wherein the conditional data including the commodity prohibition sale information can be generated by setting commodity prohibition sale rules. Specifically, when setting the commodity prohibition sale rules, select the configuration sales type as prohibition sale, set the rule name, select the user group and commodity to which the commodity prohibition sale rule applies, set the effective time, and generate the conditional data by submitting the above selected and set information, wherein the rule name can limit the length to reduce the space occupied in the database, the applicable commodity can be one or more, and the effective time is not less than the current time.

[0055] After the conditional data is generated, the conditional data including the prohibition of sales of the product is verified according to the first display data of the product. Specifically, it is determined whether there is an overlap between the effective time of the conditional data and the effective time of the first display data; if there is no overlap, the conditional data verification is passed. If there is an overlap, the sales type of the product corresponding to the first display data is obtained, and it is determined whether the obtained sales type is a sales type that can be associated with the product display information. If so, the conditional data verification is passed. Otherwise, the conditional data verification fails, and the effective time needs to be modified or the applied product needs to be recreated (i.e., the conditional data is regenerated). In the case where the product display information includes the prohibition of sales of the product, the sales types that can be associated with the product display information are limited sales and prohibited sales.

[0056] After the conditional data is verified, the second display data of the commodity is generated based on the conditional data, and the second display data is saved to the database. Specifically, according to the conditional data, the sales type is determined, and the sales type of the conditional data containing the commodity prohibition information is prohibited sales; when there is no overlapping time between the effective time of the conditional data and the effective time of the first display data, the second display data is directly generated according to the conditional data. If there is an overlapping time, it is determined whether the priority of the prohibition is equal to or higher than the priority of the acquired sales type. If the acquired sales type is limited sales or prohibited sales, since the priority of the prohibition is equal to or higher than the priority of the acquired sales type, the display data valid within the effective time of the conditional data is generated according to the conditional data as the second display data. In the case that the commodity display information is the commodity prohibition information, the priority of the configuration sales type corresponding to the conditional data that has passed the verification is equal to or higher than the priority of the acquired sales type. In the case that there is an overlapping time, and the priority of the prohibition is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid, and after the conditional data is deleted, the invalid state can be automatically updated to valid (or valid).

[0057] In one embodiment, conditional data including commodity sale permission information is generated based on a preset user group, and the commodity sale permission information corresponds to the commodity displayed to the user group, wherein the conditional data including the commodity sale permission information can be generated by setting commodity sale permission rules. Specifically, when setting commodity sale permission rules, select the configuration sales type as sale permission, set the rule name, select the user group and commodity to which the commodity sale restriction rule applies, set the effective time, and generate the conditional data by submitting the settings, wherein the rule name can limit the length to reduce the space occupied in the database, the applicable commodity can be one or more, and the effective time is not less than the current time.

[0058] After the conditional data is generated, the conditional data including the permitted sales information of the product is verified according to the first display data of the product. Specifically, it is determined whether there is an overlap between the effective time of the conditional data and the effective time of the first display data. If there is no overlap, the conditional data verification is passed. If there is an overlap, the sales type of the product corresponding to the first display data is obtained, and it is determined whether the obtained sales type is a sales type that can be associated with the product display information. If so, the conditional data verification is passed. Otherwise, the conditional data verification fails, and the effective time needs to be modified or the applied product needs to be recreated (the conditional data is regenerated). In the case where the product display information includes the permitted sales information of the product, the sales types that can be associated with the product display information are limited sales and permitted sales.

[0059] After the conditional data is verified, the second display data of the product is generated based on the conditional data, and the second display data is saved in the database. Specifically, according to the conditional data, the sales type is determined, and the sales type of the conditional data containing the product permissible sales information is permissible sales; when there is no overlapping time between the effective time of the conditional data and the effective time of the first display data, the second display data is directly generated according to the conditional data. If there is an overlapping time, it is determined whether the priority of permissible sales is equal to or higher than the priority of the acquired sales type. If the acquired sales type is permissible sales, since the priority of permissible sales is equal to the priority of the acquired sales type, display data valid within the effective time of the conditional data is generated according to the conditional data as the second display data. If the acquired sales type is limited sales, since the priority of permissible sales is lower than the priority of the acquired sales type, display data valid within the specified time period is generated according to the conditional data. The specified time period is the time period within the effective time of the conditional data except the overlapping time, and the second display data is obtained according to the display data valid within the specified time period and the first display data corresponding to the overlapping time, that is, the first display data is effective within the overlapping time.

[0060] In one embodiment, the generated conditional data can be edited and deleted. When editing the conditional data, it is necessary to perform verification and generate the second display data according to the data display method of the embodiment of the present invention. If the conditional data is deleted, the conditional data becomes invalid, and the status setting of the display data corresponding to the conditional data also becomes invalid. For example, the second display data of the product is generated based on the conditional data. If the conditional data is deleted, the second display data becomes invalid. If a part of the first display data is set from effective to invalid when generating the second display data, then with the deletion of the conditional data, this part of the first display data will automatically return to effective.

[0061] In one embodiment, after the second display data is generated, the second display data is displayed to the user group. Specifically, by querying the database, the second display data of the commodity is obtained, the sales rules of the commodity are determined, and the display information of the commodity is displayed to the users in the user group. If the sales rule of the commodity is a commodity sales restriction rule, the users in the corresponding user group can only purchase a preset number of commodities, and cannot purchase if the preset number is exceeded, and the corresponding prompt information is displayed; if the sales rule of the commodity is a commodity sales prohibition rule, the users in the corresponding user group cannot purchase the commodity, and the corresponding prompt information is displayed; if the sales rule of the commodity is a commodity sales permission rule, the users in the corresponding user group can purchase the commodity normally.

[0062] In one embodiment, after generating conditional data including commodity sales restriction information, if the first display data of the commodity includes commodity sales restriction information overlapping with the effective time of the conditional data, the second display data may be continuously created (i.e., the second display data is generated), and the commodity sales restriction information in the conditional data is effective at the overlapping time. If the first display data of the commodity does not include commodity sales restriction information overlapping with the effective time of the conditional data, it is determined whether the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the conditional data. If the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the conditional data, the second display data may be continuously created, and the overlapping time is determined. If the first display data of the product does not contain product prohibition information that overlaps with the effective time of the condition data, determine whether the first display data of the product contains product permission information that overlaps with the effective time of the condition data. If the first display data of the product contains product permission information that overlaps with the effective time of the condition data, you can continue to create the product restriction information in the condition data that overlaps with the effective time. If the first display data of the product does not contain product permission information that overlaps with the effective time of the condition data, you can continue to create the product restriction information in the condition data that overlaps with the effective time.

[0063] In one embodiment, after generating condition data including commodity sales prohibition information, if the first display data of the commodity includes commodity sales restriction information overlapping with the effective time of the condition data, the commodity sales prohibition information in the condition data can be continuously created and the overlapping time becomes effective; if the first display data of the commodity does not include commodity sales restriction information overlapping with the effective time of the condition data, it is determined whether the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the condition data; if the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the condition data, it is possible to continue creating commodity sales prohibition information (i.e., newly created commodity sales prohibition information) in the condition data with the overlapping time becoming effective; if the first display data of the commodity does not include commodity sales prohibition information overlapping with the effective time of the condition data, it is determined whether the first display data of the commodity includes commodity sales permission information overlapping with the effective time of the condition data; if the first display data of the commodity includes commodity sales permission information overlapping with the effective time of the condition data, it is not possible to continue creating; if the first display data of the commodity does not include commodity sales permission information overlapping with the effective time of the condition data, it is possible to continue creating commodity sales prohibition information in the condition data with the overlapping time becoming effective.

[0064] In one embodiment, after generating condition data including commodity sales permission information, if the first display data of the commodity includes commodity sales restriction information overlapping with the effective time of the condition data, the commodity sales restriction information in the first display data can be continuously created and the overlapping time becomes effective; if the first display data of the commodity does not include commodity sales restriction information overlapping with the effective time of the condition data, it is determined whether the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the condition data; if the first display data of the commodity includes commodity sales prohibition information overlapping with the effective time of the condition data, it is not possible to continue creating; if the first display data of the commodity does not include commodity sales prohibition information overlapping with the effective time of the condition data, it is determined whether the first display data of the commodity includes commodity sales permission information overlapping with the effective time of the condition data; if the first display data of the commodity includes commodity sales permission information overlapping with the effective time of the condition data, it is possible to continue creating and the overlapping time becomes effective of the commodity sales permission information in the condition data; if the first display data of the commodity does not include commodity sales permission information overlapping with the effective time of the condition data, it is possible to continue creating and the overlapping time becomes effective of the commodity sales permission information in the condition data.

[0065] In one embodiment, after generating conditional data including a sales restriction rule for a commodity, if the first display data of the commodity includes sales restriction information for the commodity that overlaps with the effective time of the conditional data, the creation may continue (i.e., the second display data is generated), and the sales restriction information for the commodity in the conditional data that overlaps with the effective time is effective. If the first display data of the commodity does not include sales restriction information for the commodity that overlaps with the effective time of the conditional data, it is determined whether the first display data of the commodity includes sales prohibition information for the commodity that overlaps with the effective time of the conditional data. If the first display data of the commodity includes sales prohibition information for the commodity that overlaps with the effective time of the conditional data, the creation may continue, and the second display data may be generated. If the first display data of the product does not contain the commodity sales prohibition information overlapping with the effective time of the condition data, determine whether the first display data of the product contains the commodity sales permission information overlapping with the effective time of the condition data. If the first display data of the product contains the commodity sales permission information overlapping with the effective time of the condition data, you can continue to create the commodity sales restriction information in the condition data with the overlapping effective time. If the first display data of the product does not contain the commodity sales permission information overlapping with the effective time of the condition data, you can continue to create the commodity sales restriction information in the condition data with the overlapping effective time.

[0066] In one embodiment, the data display method of the embodiment of the present invention is implemented through Java language and MySQL (relational database management system), wherein Java is an object-oriented programming language with two characteristics of powerful functions and simple and easy to use. It is a representative of static object-oriented programming languages ​​and can perfectly implement object-oriented theory.

[0067] Figure 3 It is a schematic diagram of main modules of a data display device according to an embodiment of the present invention.

[0068] like Figure 3 As shown, a data display device 300 according to an embodiment of the present invention mainly includes: a condition data generating module 301 , a second display data generating module 302 , and a second display data display module 303 .

[0069] The condition data generating module 301 is used to generate condition data including commodity display information based on a preset user group, where the commodity display information corresponds to the commodity displayed to the user group.

[0070] The second display data generating module 302 is used to verify the condition data according to the first display data of the commodity, and if the verification passes, generate the second display data of the commodity based on the condition data.

[0071] The second display data display module 303 is used to display the second display data to the user group.

[0072] In one embodiment, a user group setting module may also be included, which is used to set user groups through a combination of one or more of user regions, user account types, user whitelists, and user blacklists, wherein the user whitelist and user blacklist are customized user lists.

[0073] In one embodiment, the second display data generation module is specifically used to: determine whether there is an overlap between the effective time of the condition data and the effective time of the first display data; if there is no overlap, the condition data verification is passed. If there is an overlap, the sales type of the commodity corresponding to the first display data is obtained, and the sales type includes one of limited sales, prohibited sales, and allowed sales. It is determined whether the obtained sales type is a sales type that can be associated with the commodity display information. If so, the condition data verification is passed, otherwise, the condition data verification fails.

[0074] In one embodiment, when the commodity display information includes commodity sales limit information, the sales types that may be associated with the commodity display information are limited sales, prohibited sales, and permitted sales; when the commodity display information includes commodity sales prohibition information, the sales types that may be associated with the commodity display information are limited sales and prohibited sales; when the commodity display information includes commodity sales permission information, the sales types that may be associated with the commodity display information are limited sales and permitted sales.

[0075] In one embodiment, the commodity sales restriction information includes the maximum quantity of the commodity displayed and / or sold to a single user, the name of the conditional data, the applicable user group and the effective time, and the commodity sales prohibition information and the commodity sales permission information both include the name of the conditional data, the applicable user group and the effective time.

[0076] In one embodiment, the second display data generation module is specifically used to: determine the configuration sales type according to the condition data; if there is no overlapping time, generate display data valid within the effective time of the condition data according to the condition data as the second display data. If there is overlapping time, if the priority of the configuration sales type is equal to or higher than the acquired sales type, then generate display data valid within the effective time of the condition data according to the condition data as the second display data; if the priority of the configuration sales type is lower than the acquired sales type, then generate display data valid within a specified time period according to the condition data, the specified time period being a time period within the effective time of the condition data excluding the overlapping time, and obtain the second display data according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

[0077] In the case where there is an overlapping time and the priority of the configured sales type is equal to or higher than the acquired sales type, after the second display data is obtained, the display data in the overlapping time in the first display data is invalid.

[0078] In addition, the specific implementation content of the data display device in the embodiment of the present invention has been described in detail in the above data display method, so the repeated content will not be described again here.

[0079] Figure 4 An exemplary system architecture 400 is shown to which the data presentation method or data presentation device according to the embodiment of the present invention can be applied.

[0080] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0081] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0082] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0083] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0084] It should be noted that the data display method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the data display device is generally disposed in the server 405 .

[0085] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0086] Reference below Figure 5 , which shows a schematic diagram of the structure of a server computer system 500 suitable for implementing an embodiment of the present invention. Figure 5 The server 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.

[0087] like Figure 5 As 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a conditional data generation module, a second display data generation module, and a second display data display module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the conditional data generation module may also be described as "a module for generating conditional data containing product display information based on a preset user group".

[0093] 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: generating conditional data containing product display information based on a preset user group, the product display information corresponds to the product displayed to the user group; verifying the conditional data based on the first display data of the product, and if the verification passes, generating the second display data of the product based on the conditional data; and displaying the second display data to the user group.

[0094] According to the technical solution of the embodiment of the present invention, based on the preset user group, conditional data containing product display information is generated, and the product display information corresponds to the product displayed to the user group; based on the first display data of the product, the conditional data is verified, and if the verification passes, the second display data of the product is generated based on the conditional data; and the second display data is displayed to the user group. The problem of selling products on demand can be solved through a complete and mature implementation plan of limited sales, prohibited sales, and allowed sales, and flexible data display settings can be achieved. User groups can be flexibly set, and conditional data can be verified when display conditions change. New display data is generated based on the conditional data after the verification passes, which can effectively ensure the correctness of data display and achieve accurate data display. In addition, for various changes in product sales conditions, the corresponding display data can be quickly adjusted and set, avoiding additional processing burden on the server and saving server resources.

[0095] 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 data display method, It is characterized in that include: Based on a preset user group, generating condition data including product display information, the product display information corresponding to the products displayed to the user group; Verifying the condition data according to the first display data of the commodity, and if the verification passes, generating second display data of the commodity based on the condition data; displaying the second display data to the user group; The generating the second display data of the commodity based on the condition data includes: determining a configuration sales type according to the condition data; In the case where there is no overlapping time between the effective time of the condition data and the effective time of the first display data, display data valid within the effective time of the condition data is generated according to the condition data as the second display data; in the case where there is an overlapping time, if the priority of the configured sales type is equal to or higher than the sales type corresponding to the first display data, display data valid within the effective time of the condition data is generated according to the condition data as the second display data; if the priority of the configured sales type is lower than the sales type corresponding to the first display data, display data valid within a specified time period is generated according to the condition data, the specified time period being a time period within the effective time of the condition data excluding the overlapping time, and the second display data is obtained according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

2. The method according to claim 1, It is characterized in that Before generating condition data including product display information based on the preset user group, the method includes: The user group is set by a combination of one or more of user region, user account type, user whitelist, and user blacklist, wherein the user whitelist and user blacklist are customized user lists.

3. The method according to claim 1, It is characterized in that The verifying the condition data according to the first display data of the commodity includes: Determine whether there is an overlap between the effective time of the condition data and the effective time of the first display data; If the overlapping time does not exist, the conditional data verification passes; If the overlapping time exists, the sales type of the commodity corresponding to the first display data is obtained, and the sales type includes one of limited sales, prohibited sales, and allowed sales; it is determined whether the obtained sales type is a sales type that can be associated with the commodity display information. If so, the conditional data verification passes, otherwise, the conditional data verification fails.

4. The method according to claim 3, It is characterized in that In the case where the commodity display information includes commodity sales restriction information, the sales types that may be associated with the commodity display information are sales restriction, sales prohibition, and sales permission; In the case where the commodity display information includes commodity sales prohibition information, the sales type that may be associated with the commodity display information is limited sales and prohibited sales; In the case that the commodity display information includes commodity sale permission information, the sales types that may be associated with the commodity display information are limited sale and permitted sale.

5. The method according to claim 4, It is characterized in that The commodity sales restriction information includes the maximum quantity of the commodity displayed and / or sold to a single user, as well as the name of the conditional data, the applicable user group and the effective time. The commodity sales prohibition information and the commodity sales permission information both include the name of the conditional data, the applicable user group and the effective time.

6. The method according to claim 1, It is characterized in that When the overlapping time exists and the priority of the configured sales type is equal to or higher than the sales type corresponding to the first display data, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid.

7. A data display device, It is characterized in that include: A condition data generating module, for generating condition data including commodity display information based on a preset user group, wherein the commodity display information corresponds to the commodity displayed to the user group; A second display data generating module, configured to verify the condition data according to the first display data of the commodity, and if the verification passes, generate the second display data of the commodity based on the condition data; A second display data display module, used to display the second display data to the user group; The second display data generating module is further used to: determine the configuration sales type according to the condition data; if there is no overlapping time between the effective time of the condition data and the effective time of the first display data, generate display data valid within the effective time of the condition data according to the condition data as the second display data; if there is an overlapping time, if the priority of the configuration sales type is equal to or higher than the sales type corresponding to the first display data, generate display data valid within the effective time of the condition data according to the condition data as the second display data; if the priority of the configuration sales type is lower than the sales type corresponding to the first display data, generate display data valid within a specified time period according to the condition data, the specified time period being a time period within the effective time of the condition data excluding the overlapping time, and obtain the second display data according to the display data valid within the specified time period and the first display data corresponding to the overlapping time.

8. The device according to claim 7, It is characterized in that Also includes a User Group Settings module for: The user group is set by a combination of one or more of user region, user account type, user whitelist, and user blacklist, wherein the user whitelist and user blacklist are customized user lists.

9. The device according to claim 7, It is characterized in that The second display data generating module is further used for: Determine whether there is an overlap between the effective time of the condition data and the effective time of the first display data; If the overlapping time does not exist, the conditional data verification passes; If the overlapping time exists, obtaining the sales type of the commodity corresponding to the first display data, where the sales type includes one of limited sales, prohibited sales, and permitted sales; It is determined whether the acquired sales type is a sales type that can be associated with the commodity display information. If so, the conditional data verification passes; otherwise, the conditional data verification fails.

10. The device according to claim 9, It is characterized in that In the case where the commodity display information includes commodity sales restriction information, the sales types that may be associated with the commodity display information are sales restriction, sales prohibition, and sales permission; In the case where the commodity display information includes commodity sales prohibition information, the sales type that may be associated with the commodity display information is limited sales and prohibited sales; In the case that the commodity display information includes commodity sale permission information, the sales types that may be associated with the commodity display information are limited sale and permitted sale.

11. The device according to claim 10, It is characterized in that The commodity sales restriction information includes the maximum quantity of the commodity displayed and / or sold to a single user, as well as the name of the conditional data, the applicable user group and the effective time. The commodity sales prohibition information and the commodity sales permission information both include the name of the conditional data, the applicable user group and the effective time.

12. The device according to claim 7, It is characterized in that When the overlapping time exists and the priority of the configured sales type is equal to or higher than the sales type corresponding to the first display data, after the second display data is obtained, the display data in the overlapping time in the first display data becomes invalid.

13. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

14. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.