Product data processing method and related device

By setting the inventory tables for the first and second cycles in the inventory management of equity products, and setting the inventory tables for the next cycle in advance after the previous cycle is updated, the inventory limit of equity products is invalid during the periodic inventory update time. The problem has achieved the effectiveness of restricting the acquisition of equity products.

CN119477409APending Publication Date: 2025-02-18AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411712777.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

During the periodic inventory update time of equity products, inventory restrictions are invalid and the restrictions on equity products cannot be achieved.

Method used

Using a product data processing method, by setting the first cycle inventory table and the second cycle inventory table, the second cycle corresponding to the second cycle inventory table is the next cycle of the first cycle corresponding to the first cycle inventory table, and Use the previous cycle of the cycle to perform update operations to set the inventory table for the next cycle in advance.

Benefits of technology

This avoids the problem of inventory restrictions incurred during batch updates in the early morning, and ensures the effectiveness of equity product acquisition restrictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119477409A_ABST
    Figure CN119477409A_ABST
Patent Text Reader

Abstract

The invention provides a product data processing method and a related device, and relates to the field of product receiving. In the invention, the same product is configured with a corresponding product inventory configuration set, the product inventory configuration set comprises a first period inventory table and a second period inventory table, and a second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table. The first-period inventory table and the second-period inventory table are updated in the previous period of the use period, namely, the inventory table of the next period is set in advance, so that when the next period arrives, the inventory table is directly used for carrying out inventory limiting operation, and the situation that the inventory limiting operation is carried out when batch updating is carried out in the morning at present is avoided. And the inventory limitation in the batch updating time period is invalid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of product collection, and more specifically, to a product data processing method and related devices. Background Art

[0002] Equity products are specific reward products or services provided by banks to specific customers at a certain preferential price (or for free). In order to increase customer activity during the start and end time of the equity, the number of equity products available during the product cycle will be limited.

[0003] Currently, the available quantity of equity products within the product cycle is limited by periodic inventory restrictions on equity products. Periodic inventory updates of equity products are generally updated in batches at midnight, which takes some time. During this period of update, the inventory restrictions are invalid and the restrictions on equity product collection cannot be implemented. Summary of the invention

[0004] In view of this, the present application provides a product data processing method and related devices to solve the problem that inventory restrictions are invalid during the periodic inventory update time of equity products and the restrictions on equity product collection cannot be implemented.

[0005] In order to solve the above technical problems, this application adopts the following technical solutions:

[0006] A product data processing method, wherein the same product configuration has a corresponding product inventory configuration set, the product inventory configuration set includes a first period inventory table and a second period inventory table; the second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table; the first period inventory table and the second period inventory table are updated in the period before the use period;

[0007] The product data processing method comprises:

[0008] Receive user requests;

[0009] Calculate the number of request cycles corresponding to the user request;

[0010] Determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table; the target period inventory table is a first period inventory table or a second period inventory table in the product inventory configuration set;

[0011] A response result of the user request is determined according to the target period inventory table.

[0012] Optionally, calculating the number of request cycles corresponding to the user request includes:

[0013] Acquire the periodic configuration data of the product corresponding to the user request; the periodic configuration data includes day, week or month;

[0014] If the cycle configuration data is a day, the requested cycle number is calculated based on the daily difference between the product collection start date and the current date;

[0015] If the cycle configuration data is a week, the daily difference between the product collection start date and the current date is calculated, and the requested cycle number is calculated based on the ratio of the daily difference to the preset threshold;

[0016] If the cycle configuration data is a month, the monthly difference between the month of the product collection start date and the month of the current date is calculated, and the monthly difference is used as the requested cycle number.

[0017] Optionally, determining a target cycle inventory table corresponding to the requested cycle number includes:

[0018] Calculating the ratio of the requested cycle number to a preset value;

[0019] Performing a modulo operation on the ratio to obtain target data;

[0020] If the target data is a first value, the first period inventory table is used as a target period inventory table;

[0021] If the target data is a second value, the second period inventory table is used as the target period inventory table.

[0022] Optionally, determining a response result of the user request according to the target period inventory table includes:

[0023] In the case where the period configuration data is not a day, if the remaining inventory in the target period inventory table is not zero, the result of subtracting one from the inventory is used as the new remaining inventory in the target period inventory table;

[0024] If the remaining inventory in the target period inventory table is zero, output information indicating insufficient inventory.

[0025] Optionally, it also includes:

[0026] In the case where the period configuration data is a day, determining whether the current date is a user request response date;

[0027] If the current date is the user request response date, and the remaining inventory in the target period inventory table is not zero, the result of subtracting one from the inventory is used as the new remaining inventory in the target period inventory table;

[0028] When the remaining inventory in the target period inventory table is zero, information indicating insufficient inventory is output.

[0029] Optionally, the updating process of the product inventory configuration set includes:

[0030] For the second period inventory table, obtain the remaining total inventory of the product;

[0031] If the remaining total inventory of the product is greater than the preset inventory setting quantity, the preset inventory setting quantity is used as the inventory quantity of the second period inventory table;

[0032] If the remaining total inventory of the product is not greater than the preset inventory setting amount, the remaining total inventory of the product is used as the inventory amount of the second period inventory table.

[0033] Optionally, the updating process of the product inventory configuration set further includes:

[0034] During the use period of the second period inventory table, the first period inventory table is updated to be the inventory table used in the next period of the second period;

[0035] The first period inventory table is updated.

[0036] A product data processing device, wherein the same product configuration has a corresponding product inventory configuration set, the product inventory configuration set includes a first period inventory table and a second period inventory table; the second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table; the first period inventory table and the second period inventory table are updated in the period before the use period;

[0037] The product data processing device comprises:

[0038] A request receiving module, used for receiving user requests;

[0039] A numerical calculation module, used to calculate the number of request cycles corresponding to the user request;

[0040] A determination module, used to determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table; the target period inventory table is a first period inventory table or a second period inventory table in the product inventory configuration set;

[0041] A response module is used to determine a response result of the user request according to the target period inventory table.

[0042] An electronic device comprises at least one processor and a memory connected to the processor, wherein:

[0043] The memory is used to store computer programs;

[0044] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned product data processing method.

[0045] A computer storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the above-mentioned product data processing method.

[0046] The present application provides a product data processing method and related devices. In the present application, the same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first-cycle inventory table and a second-cycle inventory table. The second cycle corresponding to the second-cycle inventory table is the next cycle of the first cycle corresponding to the first cycle inventory table. The first-cycle inventory table and the second-cycle inventory table are updated in the previous cycle of the use cycle, that is, the present invention sets the inventory table of the next cycle in advance, so that when the next cycle arrives, the inventory restriction operation is directly used, avoiding the problem of inventory restrictions being invalid during the batch update time period during the current early morning batch update. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0048] Figure 1 A flowchart of a product data processing method provided by an embodiment of the present invention;

[0049] Figure 2 A flowchart of a method for determining inventory quantity provided by an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of the use of periodic inventory of equity products provided by an embodiment of the present invention;

[0051] Figure 4 An inventory setting flow chart provided for an embodiment of the present invention;

[0052] Figure 5 A cycle inventory usage flow chart provided by an embodiment of the present invention;

[0053] Figure 6 A schematic diagram of the structure of a product data processing device provided by an embodiment of the present invention;

[0054] Figure 7A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] In order to enable those skilled in the art to more clearly understand the present invention, the professional terms in the present invention are now introduced.

[0057] Equity products: are provided to specific customers, which allow them to obtain specific reward products and enjoy specific services at a certain preferential price (or for free).

[0058] Designated day: You can designate a specific day, a specific day of the week, or a specific day of the month.

[0059] Cycle: A cycle is a day, week or month.

[0060] Cycle inventory: the number of equity products available for collection in the current cycle.

[0061] Total inventory: the number of equity products available for collection during the entire start and end time of the equity.

[0062] Equity products are specific reward products or services provided by our bank to specific customers at a certain preferential price (or for free), and the total number of products is limited. At the same time, in order to ensure that customers participate in activities and enjoy the benefits within the start and end time of the benefits, the number of products that can be obtained during the product cycle is limited, and a first-come, first-served model is adopted.

[0063] Usually, the cycle inventory of equity products is divided into three modes: daily, weekly, and monthly. The number of products that can be collected in each cycle can be limited. Some equity products can be specified to be collected only on a certain day, a certain day of the week, or a certain day of the month, that is, the product can only be collected on the specified day, which mainly affects the update of the daily cycle inventory. In the past, all inventory information was recorded in a table, and the number of equity products collected and purchased was controlled by querying the table. The batch setting of the product cycle inventory for the day was set in the early morning every day, but there would be problems. If there was a surplus of inventory in the previous cycle, customers could still purchase or collect products during the time period of batch processing of inventory in the early morning, which would cause the inventory limit of the second cycle to be invalid, and equity products could be collected on non-specified days, or the second cycle would be oversold. In addition, if all the inventory of the previous cycle is sold out, customers will not be able to obtain the products that they should have obtained before the batch processing is completed. That is, when the inventory is set in batches in the early morning of the same day, the product inventory cannot be updated immediately, and the inventory limit is invalid. Once a customer collects or purchases equity products at this time, there will be problems of being unable to collect or overselling, which will reduce the user experience.

[0064] To this end, in an embodiment of the present invention, the same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first-period inventory table and a second-period inventory table. The second period corresponding to the second-period inventory table is the next period of the first period corresponding to the first period inventory table. In the current first period, the first-period inventory table can be used, and the second-period inventory table can be used in the second period. The second-period inventory table will be updated in the first period, that is, the second-period inventory table is set in advance, so that in the second period, when the user purchases products or services, the latest inventory table can be used. Since it is no longer a current batch update, it can be seamlessly switched to the second-period inventory table in the second period, so that the second-period inventory table is real-time and effective, and the problem of inventory restrictions being invalid during the batch update time period is avoided.

[0065] Based on the above content, an embodiment of the present invention provides a product data processing method, and the execution subject may be an electronic device.

[0066] The same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first period inventory table and a second period inventory table.

[0067] In actual scenarios, the periodic inventory of equity products is divided into three modes: daily, weekly, and monthly. The number of products that can be collected in each period can be limited, such as daily, weekly, or monthly. In addition, some equity products can be specified to be collected only on a certain day, a certain day of the week, or a certain day of the month, that is, the product can only be collected on the specified day, which mainly affects the update of the daily periodic inventory.

[0068] In order to adapt to different products, in the embodiment of the present invention, six equity cycle inventory tables are created. For the three types of cycles, namely, day, week and month, two equity cycle inventory tables are set for each cycle. These two tables constitute a product inventory configuration set, one of which is called the first cycle inventory table, which is used to store the inventory of the current cycle, and the other is called the second cycle inventory table, which stores the inventory of the next cycle, that is, the second cycle corresponding to the second cycle inventory table is the next cycle of the first cycle corresponding to the first cycle inventory table. For example, taking the daily cycle as an example, the first cycle is the current cycle, such as November 11, and the second cycle is November 12.

[0069] According to the set cycle of the product, you can select the equity cycle inventory table suitable for the product from the above 6 equity cycle inventory tables. For example, if a product adopts a daily cycle, select the first cycle inventory table and the second cycle inventory table corresponding to the daily cycle. For example, if a product adopts a monthly cycle, select the first cycle inventory table and the second cycle inventory table corresponding to the monthly cycle.

[0070] It should be noted that the contents of the first-period inventory tables of different periods are the same, only the period numbers are different. Similarly, the contents of the second-period inventory tables of different periods are the same, only the period numbers are different.

[0071] With respect to a first cycle inventory table and a second cycle inventory table of a cycle, the first cycle inventory table and the second cycle inventory table are updated in a cycle before the use cycle.

[0072] For example, taking the daily cycle as an example, the current cycle is 11.11, and the first cycle inventory table used on 11.11 will be updated on 11.10. If it is updated in the early morning or noon of 11.10, then in the early morning of 11.11, it will directly switch to the first cycle inventory table. The switching time is very short and does not affect the inventory limit of the day. On 11.11, the second cycle inventory table of 11.12 will be updated. On 11.12, the second cycle inventory table updated on 11.11 can be directly used to limit inventory.

[0073] Reference Figure 1 , a product data processing method may include:

[0074] S11. Receive user request.

[0075] In actual applications, users can find the equity product interface on the app (application, mobile software) or web page according to their own needs, and then click the corresponding button. The specific button can be configured according to the actual scenario, such as purchase or application buttons, at which time the user request can be received.

[0076] S12: Calculate the number of request cycles corresponding to the user request.

[0077] After receiving the user's request, it is necessary to analyze whether there is any remaining amount of the equity product to determine whether the user can purchase it this time.

[0078] Since the rights and interests products are set according to the cycle, it is necessary to determine the current rights and interests cycle number to obtain the product restrictions of the current cycle. The rights and interests cycle number refers to the request cycle number in the embodiment of the present invention. When determining the request cycle number, the cycle configuration data of the product corresponding to the user request is obtained, and the cycle configuration data includes day, week or month, that is, it is determined whether the cycle of the product requested by the user is day, week or month.

[0079] If the cycle configuration data is a day, the requested cycle number is calculated based on the daily difference between the product collection start date and the current date. For example, if the product collection start date is the 10th and the current date (i.e., the date when the user inputs the user request) is the 20th, then the daily difference is 20-10=10, i.e., the current request cycle number is the 10th.

[0080] If the cycle configuration data is a week, the daily difference between the product collection start date and the current date is calculated, and the request cycle number is calculated based on the ratio of the daily difference to the preset threshold. The preset threshold refers to the number of days in a week, which is 7. For example, if the product collection start date is the 10th and the current date (the date when the user outputs the user request) is the 20th, then the request cycle number is (20-10) / 7=1...3, and the current request cycle number is the second cycle.

[0081] If the cycle configuration data is a month, the monthly difference between the month of the product collection start date and the month of the current date is calculated, and the monthly difference is used as the requested cycle number.

[0082] For example, the product collection start date is 2024.5.2, which means the start date is in May, and the current date (the date when the user inputs the user request) is 2024.11.15, which means the current date is in November. Since 11-5=6, the request cycle number is 6.

[0083] S13: Determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table.

[0084] The target period inventory table is the first period inventory table or the second period inventory table in the product inventory configuration set.

[0085] After the request cycle number is calculated, it is necessary to determine whether to use the first cycle inventory table or the second cycle inventory table to limit the product quantity based on the request cycle number.

[0086] At this time, the ratio of the requested cycle number to the preset value can be calculated, where the preset value is 2, that is, the requested cycle number is divided by 2 to obtain the ratio, and then the ratio is modulo operation is performed to obtain the target data. For the requested cycle number N, the result of N%2 (divided by 2 and taking the remainder) is calculated and the result is used as the target data.

[0087] If the target data is a first value, the first period inventory table is used as the target period inventory table; if the target data is a second value, the second period inventory table is used as the target period inventory table.

[0088] For example, if the requested cycle number is 7, then 7%2=1. Assuming that the first value is 1 and the second value is 0, the first cycle inventory table is used as the target cycle inventory table, that is, a suitable inventory table is selected from the two cycle inventory tables for inventory restriction.

[0089] After the target period inventory table is selected, the application permission of the target period inventory table is set, such as switching the inventory table in the early morning during the use period of the target inventory table, so as to limit the use of the target inventory table during the use period of the target inventory table.

[0090] For example, after setting a target period inventory table for use on November 12 on November 11, the application permission of the target period inventory table is set to switch at midnight on November 12. Then, the inventory table is switched to the target period inventory table at midnight on November 12 to control the purchase of equity products or services on November 12.

[0091] S14. Determine a response result of the user request according to the target period inventory table.

[0092] Specifically, due to the daily cycle restriction, there may be a situation where the designated day is not a consecutive day, while the week and month are not restricted. Therefore, in this embodiment, it is necessary to determine whether the period configuration data of the product is not a day.

[0093] When the period configuration data is not a day, that is, a week or a month, if the remaining inventory in the target period inventory table is not zero, the verification is passed, and the user is allowed to purchase the product. Generally, the user is only allowed to purchase one product or one service, and the result of the inventory reduction by one is used as the new remaining inventory in the target period inventory table. If the remaining inventory in the target period inventory table is zero, the information of insufficient inventory is output.

[0094] When the period configuration data is a day, it is determined whether the current date is the user request response date. The user request response date is the set date that allows purchases. For example, if only the 1st, 11th, and 21st are allowed to be purchased, it is determined whether the current date is the 1st, 11th, or 21st.

[0095] If the current date is the user request response date, and the remaining inventory in the target period inventory table is not zero, the result of subtracting one from the inventory is used as the new remaining inventory in the target period inventory table. If the remaining inventory in the target period inventory table is zero, information about insufficient inventory is output. The implementation process is the same as the above-mentioned implementation method for weeks or months.

[0096] If the current date is not the user requested response date, such as not the 1st, 11th, or 21st, then an output prompt message indicating that the item is currently unavailable for purchase is output.

[0097] In this embodiment, the same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first-cycle inventory table and a second-cycle inventory table. The second cycle corresponding to the second-cycle inventory table is the next cycle of the first cycle corresponding to the first-cycle inventory table. The first-cycle inventory table and the second-cycle inventory table are updated in the previous cycle of the use cycle. That is, the present invention sets the inventory table of the next cycle in advance, so that when the next cycle arrives, the inventory table is directly used to perform inventory restriction operations, avoiding the problem of inventory restrictions being invalid during the batch update time period during the current early morning batch update.

[0098] In addition, when customers receive equity products, they can use the current date to calculate the number of cycles N from the implementation date of the equity product to the present, and thereby derive the inventory table that should be queried (N%2). When entering the next cycle, the latest cycle inventory can be switched for verification without time difference, thereby more effectively controlling the cycle limit.

[0099] In another implementation of the present invention, a process for updating the product inventory configuration set is provided. Figure 2 , the update process may include:

[0100] S21. For the second period inventory table, obtain the remaining total inventory of the product.

[0101] Specifically, taking the current period as the first period as an example, within the current period, a second period inventory table needs to be configured, and the remaining total inventory of the product can be obtained at this time.

[0102] S22: If the remaining total inventory of the product is greater than a preset inventory setting quantity, use the preset inventory setting quantity as the inventory quantity of the second period inventory table.

[0103] Specifically, under normal circumstances, the inventory quantity set in each cycle (preset inventory setting quantity) is the same. For example, if the daily limit is 100, if the total remaining inventory of the product is greater than 100, it means that the current inventory is sufficient and can be set at 100 per day. That is, when the total remaining inventory of the product is greater than the preset inventory setting quantity, the preset inventory setting quantity will be used as the inventory quantity of the second cycle inventory table.

[0104] S23: If the remaining total inventory of the product is not greater than the preset inventory setting amount, the remaining total inventory of the product is used as the inventory of the second period inventory table.

[0105] Specifically, if the remaining total inventory of the product is not greater than the preset inventory setting amount, such as the remaining total inventory of the product is less than 100, the inventory of the second period inventory table is set according to the remaining total inventory of the product. For example, if the remaining total inventory of the product is 60, the inventory of the second period inventory table is 60.

[0106] After the second cycle inventory table is set in the first cycle, the inventory table in use can be switched to the second cycle inventory table in the early morning of the second cycle, and inventory restrictions are performed according to the second cycle inventory table. Since the switching time is very short, which is much shorter than the time when the user purchases the product or service, the user will receive the restrictions of the second cycle inventory table when purchasing the product or service, so that the inventory restrictions take effect in real time.

[0107] During the use period of the second period inventory table, the first period inventory table is updated to the next period of the second period, such as the inventory table used in the third period, and then the first period inventory table is updated according to the update method of the second period inventory table. During the third period, the second period inventory table is updated for use in the fourth period.

[0108] In this embodiment, the generated period inventory information needs to consider the equity start and end time and the total inventory. If the total inventory is not enough to support the next period inventory, the remaining total inventory will be used as the next period inventory. If the equity end time has been reached, even if there is still a remaining total inventory, the next period inventory will not be generated.

[0109] When the first cycle ends and the second cycle begins, when customers receive or purchase equity products, they query the second cycle inventory table generated previously, use the table for verification and limit, clean up the first cycle inventory table, and generate and store the next cycle's inventory limit in the cleaned table. In subsequent cycles, the cycle inventory limit of equity products is updated in this way to achieve sequential update of the inventory table.

[0110] In another implementation of the present invention, an embodiment of equity product cycle inventory control is provided, referring to Figure 3, X represents the cycle type, which includes daily, weekly and monthly types. Each type of cycle has two cycle inventory tables, namely the first cycle inventory table, such as X inventory 1 table, and the second cycle inventory table, such as X inventory 0 table. The two inventory tables constitute the product inventory configuration set.

[0111] In the first X cycle, when a customer receives or purchases an equity product, the X Inventory 1 table is queried to verify whether the equity product still has period inventory. At the same time, in the first X cycle, the X Inventory 0 table is generated and stored, and the X Inventory 0 table is used as the second X cycle inventory table. After entering the second X cycle, when the customer obtains the equity product, the X Inventory 0 table is queried for verification. At the same time, after cleaning the X Inventory 1 table, the third X cycle inventory is stored in the table; in the third X cycle, the X Inventory 1 table is queried for inventory verification, and the inventory is pushed back in sequence; in the Nth X cycle, the period inventory is verified by querying the X cycle N%2 (N divided by 2 and taking the remainder) table.

[0112] In this embodiment, the cycle inventory information is stored in two tables, 0 and 1, which store the current and next cycle inventory respectively, and generate the next cycle inventory in advance. Since the equity inventory is stored in two tables, the inventory information of the next day can be generated on the previous day, and it can basically be achieved that the two inventory tables are switched without time difference in the early morning of the next day to perform inventory control.

[0113] Assuming the number of the next cycle is N, and X represents the cycle type day, week, or month, the next cycle inventory process is generated as follows: Figure 4 As shown, including:

[0114] Step A1: Determine the periodic limit type X set for the equity product. If X is a daily period, proceed to step A2; if X is a weekly or monthly period, proceed to step A4.

[0115] Step A2: Determine whether the next day is the designated day set for the benefit (i.e. the user request response date mentioned above). If not, proceed to step A3; if it is the designated day, proceed to step A4.

[0116] Step A3: There is no inventory for the next period of this equity, so there is no need to record the inventory in the period inventory table, and the process ends.

[0117] Step A4: Determine the relationship between the remaining total inventory of the equity and the limit set for cycle X. If the remaining total inventory is less than the set cycle limit, the inventory of the next cycle is limited and cannot reach the set limit, and the process goes to step A5; if the total inventory is greater than or equal to the set cycle limit, the process goes to step A6.

[0118] Step A5: Record the remaining total inventory quantity into the X-category periodic inventory N%2 table and end the process.

[0119] Step A6: Record the X-type periodic limit size set for the equity into the X-type periodic inventory N%2 table, and end the process.

[0120] The entire process of generating the next cycle inventory is completed in batches at dawn every day. There are three types of cycles: daily, weekly, and monthly. The time of the three cycles is different. Figure 4 The cycle number N shown in corresponds to the X-type cycle. For example, if today is the 1st of a month and is Monday, then it may be the 32nd cycle for the daily cycle, the 5th cycle for the weekly cycle, and the 2nd cycle for the monthly cycle. The cycle numbers of the three types of cycle inventory are not the same, but have their own cycle numbers relative to the cycle type. Therefore, each type of cycle inventory is managed in two inventory tables instead of being managed together.

[0121] Assuming that the equity has not ended (the equity has ended and the customer has no window to receive the equity product), there are two inventory tables (Table 1 and Table 0) for each day, week, and month. The specific operation flow chart for controlling the periodic inventory is as follows: Figure 5 As shown, including:

[0122] Step B1: The customer receives a certain equity product and proceeds to step B2.

[0123] Step B2: Calculate the cycle number N of the coupon benefit received by the customer (i.e. the requested cycle number mentioned above). If the benefit is a daily cycle, the cycle number N is the number of days from the start date of the plan to the current date; if the benefit is a weekly cycle, N is the number of days from the start date of the plan to the current date divided by 7, and then the number of weeks is determined; if the benefit is a monthly cycle, N is the number of months from the start date of the plan to the current date. After calculating the cycle number N, it is included in step B3.

[0124] Step B3: Use the period inventory N%2 (remainder when divided by 2) table of the equity to perform verification. If there is a surplus in the equity period inventory table, the verification passes and proceeds to step B4; otherwise, the collection action is rejected and proceeds to step B5.

[0125] Step B4: The customer successfully receives the equity product, the corresponding period inventory is reduced by one, and the process ends.

[0126] Step B5: The customer fails to collect the goods and receives a reply indicating that there is no remaining stock, and the process ends.

[0127] During the entire process, since the information in the current cycle inventory table being queried will be generated in advance in the previous cycle, and it can be calculated whether table 0 or table 1 needs to be queried, the inventory control of equity products will no longer be affected by batch processing time. When customers collect equity products during the early morning batch time of the next cycle, they will directly switch to the latest cycle inventory for verification.

[0128] In this embodiment, compared with the original equity cycle inventory update solution, when entering the next cycle, the next cycle inventory can be directly verified without time difference, without waiting for batch processing to update the inventory, and no longer affected by the batch time. When customers collect equity products within the batch time, they will no longer be able to collect them on non-specified days, oversold during the cycle, or unable to collect them when they should have been. It can more effectively verify the cycle inventory and control the cycle limit. At the same time, since the inventory of the next cycle will be generated in advance, the equity cycle inventory situation can also be checked in advance to improve fault tolerance.

[0129] Based on the embodiment of the above product data processing method, another embodiment of the present invention provides a product data processing device, wherein the same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first period inventory table and a second period inventory table; the second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table; the first period inventory table and the second period inventory table are updated in the previous period of the use period;

[0130] Reference Figure 6 , the product data processing device comprises:

[0131] A request receiving module 11, used for receiving a user request;

[0132] A numerical calculation module 12, used to calculate the number of request cycles corresponding to the user request;

[0133] A determination module 13 is used to determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table; the target period inventory table is the first period inventory table or the second period inventory table in the product inventory configuration set;

[0134] The response module 14 is used to determine the response result of the user request according to the target period inventory table.

[0135] In one implementation, the numerical calculation module 12 includes:

[0136] A data acquisition submodule is used to acquire the periodic configuration data of the product corresponding to the user request; the periodic configuration data includes day, week or month;

[0137] A first calculation submodule, for calculating the requested cycle number according to the difference between the product collection start date and the current date if the cycle configuration data is a day;

[0138] A second calculation submodule is used to calculate the daily difference between the product collection start date and the current date if the cycle configuration data is a week, and calculate the requested cycle number based on the ratio of the daily difference to a preset threshold;

[0139] The third calculation submodule is used to calculate the monthly difference between the month of the product collection start date and the month of the current date if the cycle configuration data is a month, and use the monthly difference as the requested cycle number.

[0140] In one implementation, the determination module 13 includes:

[0141] A fourth calculation submodule, used for calculating the ratio of the requested cycle number to a preset value, performing a modulus operation on the ratio to obtain target data;

[0142] The table determination submodule is used to use the first period inventory table as the target period inventory table if the target data is a first value, and use the second period inventory table as the target period inventory table if the target data is a second value.

[0143] In one implementation, the response module 14 includes:

[0144] The first processing submodule is used for, when the period configuration data is not a day, if the remaining inventory in the target period inventory table is not zero, using the result of reducing the inventory by one as the new remaining inventory in the target period inventory table, and if the remaining inventory in the target period inventory table is zero, outputting information about insufficient inventory.

[0145] In one implementation, the response module 14 further includes:

[0146] A judgment submodule, used for judging whether the current date is a user request response date when the period configuration data is a day;

[0147] The second processing submodule is used for, if the current date is the user request response date and the remaining inventory in the target period inventory table is not zero, subtracting the result of the inventory by one as the new remaining inventory in the target period inventory table, and outputting information on insufficient inventory when the remaining inventory in the target period inventory table is zero.

[0148] In one implementation, a product update module is also included, and the product update module includes:

[0149] The inventory acquisition submodule is used to acquire the remaining total inventory of the product for the second period inventory table;

[0150] The inventory update submodule is used to use the preset inventory setting amount as the inventory amount of the second period inventory table if the total remaining inventory amount of the product is greater than the preset inventory setting amount; if the total remaining inventory amount of the product is not greater than the preset inventory setting amount, use the total remaining inventory amount of the product as the inventory amount of the second period inventory table.

[0151] In one implementation, the product update module further includes:

[0152] The table updating submodule is used to update the first cycle inventory table to the inventory table used in the next cycle of the second cycle within the use cycle of the second cycle inventory table, and perform an update operation on the first cycle inventory table.

[0153] In this embodiment, the same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first-cycle inventory table and a second-cycle inventory table. The second cycle corresponding to the second-cycle inventory table is the next cycle of the first cycle corresponding to the first-cycle inventory table. The first-cycle inventory table and the second-cycle inventory table are updated in the previous cycle of the use cycle. That is, the present invention sets the inventory table of the next cycle in advance, so that when the next cycle arrives, the inventory table is directly used to perform inventory restriction operations, avoiding the problem of inventory restrictions being invalid during the batch update time period during the current early morning batch update.

[0154] An embodiment of the present application also provides an electronic device, including at least one processor and a memory connected to the processor, wherein:

[0155] The memory is used to store computer programs;

[0156] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned product data processing method.

[0157] refer to Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0158] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0159] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0160] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any product data processing method provided in the embodiment of the present application.

[0161] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any product data processing method provided in the embodiment of the present application.

[0162] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A product data processing method, characterized in that: The same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first period inventory table and a second period inventory table; The second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table; The first cycle inventory table and the second cycle inventory table are updated in a cycle before the use cycle; The product data processing method comprises: Receive user requests; Calculate the number of request cycles corresponding to the user request; Determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table; the target period inventory table is a first period inventory table or a second period inventory table in the product inventory configuration set; A response result of the user request is determined according to the target period inventory table.

2. The product data processing method according to claim 1, characterized in that: Calculating the number of request cycles corresponding to the user request, including: Acquire the periodic configuration data of the product corresponding to the user request; the periodic configuration data includes day, week or month; If the cycle configuration data is a day, the requested cycle number is calculated based on the daily difference between the product collection start date and the current date; If the cycle configuration data is a week, the daily difference between the product collection start date and the current date is calculated, and the requested cycle number is calculated based on the ratio of the daily difference to the preset threshold; If the cycle configuration data is a month, the monthly difference between the month of the product collection start date and the month of the current date is calculated, and the monthly difference is used as the requested cycle number.

3. The product data processing method according to claim 1, characterized in that: Determining a target cycle inventory table corresponding to the requested cycle number includes: Calculating the ratio of the requested cycle number to a preset value; Performing a modulo operation on the ratio to obtain target data; If the target data is a first value, the first period inventory table is used as a target period inventory table; If the target data is a second value, the second period inventory table is used as the target period inventory table.

4. The product data processing method according to claim 2, characterized in that: Determining a response result of the user request according to the target period inventory table includes: In the case where the period configuration data is not a day, if the remaining inventory in the target period inventory table is not zero, the result of subtracting one from the inventory is used as the new remaining inventory in the target period inventory table; If the remaining inventory in the target period inventory table is zero, output information indicating insufficient inventory.

5. The product data processing method according to claim 4, characterized in that: Also includes: In the case where the period configuration data is a day, determining whether the current date is a user request response date; If the current date is the user request response date, and the remaining inventory in the target period inventory table is not zero, the result of subtracting one from the inventory is used as the new remaining inventory in the target period inventory table; When the remaining inventory in the target period inventory table is zero, information indicating insufficient inventory is output.

6. The product data processing method according to claim 1, characterized in that: The updating process of the product inventory configuration set includes: For the second period inventory table, obtain the remaining total inventory of the product; If the remaining total inventory of the product is greater than the preset inventory setting quantity, the preset inventory setting quantity is used as the inventory quantity of the second period inventory table; If the remaining total inventory of the product is not greater than the preset inventory setting amount, the remaining total inventory of the product is used as the inventory amount of the second period inventory table.

7. The product data processing method according to claim 6, characterized in that: The updating process of the product inventory configuration set further includes: During the use period of the second period inventory table, the first period inventory table is updated to be the inventory table used in the next period of the second period; The first period inventory table is updated.

8. A product data processing device, characterized in that: The same product configuration has a corresponding product inventory configuration set, and the product inventory configuration set includes a first period inventory table and a second period inventory table; The second period corresponding to the second period inventory table is the next period of the first period corresponding to the first period inventory table; The first cycle inventory table and the second cycle inventory table are updated in a cycle before the use cycle; The product data processing device comprises: A request receiving module, used for receiving user requests; A numerical calculation module, used to calculate the number of request cycles corresponding to the user request; A determination module, used to determine a target period inventory table corresponding to the requested period number, and set application permissions for the target period inventory table; the target period inventory table is a first period inventory table or a second period inventory table in the product inventory configuration set; A response module is used to determine a response result of the user request according to the target period inventory table.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the product data processing method as described in any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the product data processing method as described in any one of claims 1 to 7.