CN116681464A - Article demand information adjustment method, device, electronic equipment and medium - Google Patents
Article demand information adjustment method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN116681464A CN116681464A CN202310704093.5A CN202310704093A CN116681464A CN 116681464 A CN116681464 A CN 116681464A CN 202310704093 A CN202310704093 A CN 202310704093A CN 116681464 A CN116681464 A CN 116681464A
- Authority
- CN
- China
- Prior art keywords
- value
- information
- item
- article
- information group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000008859 change Effects 0.000 claims abstract description 308
- 238000012545 processing Methods 0.000 claims abstract description 36
- 230000004044 response Effects 0.000 claims description 37
- 238000012546 transfer Methods 0.000 claims description 22
- 238000012795 verification Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 230000000737 periodic effect Effects 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 4
- 239000002699 waste material Substances 0.000 abstract description 7
- 238000013528 artificial neural network Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 5
- 230000015654 memory Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000005457 optimization Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000003062 neural network model Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 230000001934 delay Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 108091026890 Coding region Proteins 0.000 description 1
- 238000013499 data model Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000011478 gradient descent method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007787 long-term memory Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0202—Market predictions or forecasting for commercial activities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0206—Price or cost determination based on market factors
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses an article demand information adjustment method, an article demand information adjustment device, electronic equipment and a medium. One embodiment of the method comprises the following steps: acquiring an article value to-be-adjusted information group of each article circulation source to obtain an article value to-be-adjusted information group set; carrying out message queue asynchronous processing on each article value information group to be adjusted to obtain a value adjustment information group set; generating a value change execution information set based on each value adjustment information set and the corresponding article stream source predefined value information set; generating a value change notification information set based on the value change execution information set; updating the article value information of each article identifier based on the value change notification information group corresponding to the article circulation source; and adjusting the demand information of each item identifier of the corresponding item circulation source based on the value change notification information group of the corresponding item circulation source. According to the method, the waste of computing resources is reduced, and the adjustment delay time of the article demand information is shortened.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device, electronic equipment and a medium for adjusting article demand information.
Background
Item demand information adjustment is a technique for adjusting item demand information. Currently, when adjusting the information of the demand of the article, the following methods are generally adopted: and directly carrying out value change in the object flow source system unit through a distributed architecture, and then carrying out object demand information adjustment according to the change value and the manual experience.
However, when the article demand information is adjusted in the above manner, there are often the following technical problems:
first, there is a longer network delay when transmitting the value change notification information sets of different item flow sources through the network, resulting in a longer item demand information adjustment delay time. There are many packet loss conditions, which results in many transmission failures of the value change notification information and a long delay time. Further, the article demand information is more in adjustment failure times, and needs to be readjusted, so that the calculation force resource is wasted.
Secondly, value change is not carried out according to historical article information in a preset time period, so that the value change accuracy is low, the article demand information adjustment accuracy is low, and the scheduling times are increased.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose article demand information adjustment methods, apparatuses, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an article demand information adjustment method, the method comprising: acquiring an article value to-be-adjusted information group of each article flow source in an article flow source set to obtain an article value to-be-adjusted information group set, wherein the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason; carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set to generate a value adjustment information group, so as to obtain a value adjustment information group set; generating a value change execution information group based on each value adjustment information group in the value adjustment information group set and an article flow source predefined value information group corresponding to the value adjustment information group to obtain a value change execution information group set, wherein the article flow source predefined value information group comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group; generating a value change notification information set based on the value change execution information set; for each item circulation source in the item circulation source set, updating item value information of each item identifier corresponding to the item circulation source based on a value change notification information set corresponding to the item circulation source in the value change notification information set; and adjusting the item demand information of each item identifier corresponding to the item circulation source based on the value change notification information set corresponding to the item circulation source in the value change notification information set for each item circulation source in the item circulation source set.
In a second aspect, some embodiments of the present disclosure provide an article demand information adjustment apparatus, the apparatus comprising: the system comprises an acquisition unit, a storage unit and a value adjustment unit, wherein the acquisition unit is configured to acquire an article value to-be-adjusted information group of each article circulation source in an article circulation source set to obtain an article value to-be-adjusted information group set, and the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason; the first generation unit is configured to perform message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set so as to generate a value adjustment information group and obtain a value adjustment information group set; a second generation unit configured to generate a value change execution information group based on each value adjustment information group in the value adjustment information group set and an item flow source predefined value information group corresponding to the value adjustment information group, to obtain a value change execution information group set, wherein the item flow source predefined value information group includes an on-line first predefined value information group, an on-line second predefined value information group, an off-line first predefined value information group, and an off-line second predefined value information group; a third generation unit configured to generate a value change notification information set based on the value change execution information set; an updating unit configured to update, for each item flow source in the item flow source set, item value information of each item identifier corresponding to the item flow source based on a value change notification information group corresponding to the item flow source in the value change notification information group set; and an adjustment unit configured to adjust, for each item flow source in the item flow source set, item demand information of each item identifier corresponding to the item flow source based on a value change notification information group corresponding to the item flow source in the value change notification information group set.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantages: by the article demand information adjustment method of some embodiments of the present disclosure, the resource waste of computing power is reduced, and the article demand information adjustment delay time is shortened. Specifically, the reason why the resource waste and the article demand information adjustment delay time are long is that: longer network delays exist when transmitting value change notification information sets of different commodity circulation sources through a network, resulting in longer commodity demand information adjustment delay times. There are many packet loss conditions, which results in many transmission failures of the value change notification information and a long delay time. Further, the article demand information is more in adjustment failure times, and needs to be readjusted, so that the calculation force resource is wasted. Based on this, some embodiments of the present disclosure provide an item demand information adjustment method. Firstly, acquiring an article value to-be-adjusted information group of each article flow source in an article flow source set to obtain an article value to-be-adjusted information group set, wherein the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason. And secondly, carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set so as to generate a value adjustment information group and obtain a value adjustment information group set. Therefore, the value adjustment information group used for generating the value adjustment information group set after processing can be obtained by carrying out message queue asynchronous processing on the information group to be adjusted of the article value, so that the waiting time is reduced, the network delay time is reduced, and the value adjustment information group used for generating the value adjustment information group set after processing is obtained. And generating a value change execution information group based on each value adjustment information group in the value adjustment information group set and an article flow source predefined value information group corresponding to the value adjustment information group to obtain a value change execution information group set, wherein the article flow source predefined value information group comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group. Thus, a value change execution information group set can be obtained. Then, a value change notification information group set is generated based on the value change execution information group set. Thus, a value change notification information group set for updating the item value information corresponding to each item identifier of the item flow source can be obtained. Then, for each item circulation source in the item circulation source set, based on the value change notification information set corresponding to the item circulation source in the value change notification information set, updating item value information corresponding to each item identifier of the item circulation source. Finally, for each item circulation source in the item circulation source set, based on the value change notification information set corresponding to the item circulation source in the value change notification information set, adjusting item demand information corresponding to each item identifier of the item circulation source. And because the message queue asynchronous processing is adopted, when the message queue asynchronous processing is carried out on each article value to-be-adjusted information group in the article value to-be-adjusted information group set, when one article value to-be-adjusted information group carries out the message queue asynchronous processing, the article value to-be-adjusted information in the article value to-be-adjusted information group can continue to process the next article value to-be-adjusted information message in the article value to-be-adjusted information group without waiting for the response of a receiver. The waiting time is reduced, the network delay time is reduced, and then the article demand information adjustment delay time is shortened. The message queue is a container for storing the messages in the transmission process of the messages, and when the network is dropped, the phenomenon of packet loss does not occur. Thus reducing the number of article demand information adjustment failures. Furthermore, the waste of computational resources is reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of an item demand information adjustment method according to the present disclosure;
FIG. 2 is a schematic structural view of some embodiments of an item demand information adjustment device according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of an item demand information adjustment method according to the present disclosure. The article demand information adjustment method comprises the following steps:
Step 101, acquiring an article value to-be-adjusted information set of each article flow source in the article flow source set, and obtaining an article value to-be-adjusted information set.
In some embodiments, an execution body (for example, a computing device) of the item demand information adjustment method may acquire, from each item flow source terminal, an item value to be adjusted information group of a corresponding item flow source through a wired connection manner or a wireless connection manner. Then, the executing body may determine each acquired item value to-be-adjusted information group as an item value to-be-adjusted information group set. The object flow source terminal may be a device for sending an object value to-be-adjusted information set. Such as computers, tablet computers, and cell phones. The information to be adjusted of the article value in the information group to be adjusted of the article value can comprise an article identifier, an original article value, a value channel type and a value adjustment reason. The article flow source may refer to various links and the starting point of a flow path through which the article passes from the generation to the disappearance (for example, the article flow source may be an online or offline retailer's business store). Wherein, the article identification can be a unique identification code of the article. The original item value may refer to the value of the item prior to the price adjustment. The value channel types described above may include online channels and offline channels. The above-described value adjustment reasons may be factors that cause value adjustment.
Step 102, carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set to generate a value adjustment information group, and obtaining the value adjustment information group set. The value adjustment information set may be a value adjustment information set for marking a value channel type. The value adjustment information in the value adjustment information set may include, but is not limited to, at least one of: item identification, original item value, value channel type, and value adjustment reasons.
In some embodiments, the executing entity may perform message queue asynchronous processing on each item value to-be-adjusted information set in the item value to-be-adjusted information set to generate a value adjustment information set, so as to obtain a value adjustment information set.
In some optional implementations of some embodiments, the executing entity may perform message queue asynchronous processing on each item value to be adjusted information set in the item value to be adjusted information set to generate a value adjustment information set, to obtain a value adjustment information set by:
the first step, for each value to be adjusted information group in the value to be adjusted information group set of the article, executing the following message queue asynchronous processing steps:
In response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are online channels and the value adjustment reasons are original value adjustment, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are online original value adjustment of the item. The original value adjustment may represent the value adjustment of the item, which may refer to the adjustment of the value of the item at a time node such as a non-specific season or holiday.
And secondly, determining the value to be adjusted information of each item as an initial value adjustment information set with the value channel type of on-line value transfer adjustment in response to determining that the value channel type of the value to be adjusted information of each item in the value to be adjusted information group is an on-line channel and the value adjustment reasons are value transfer adjustment. The value transfer adjustment may be to adjust the commodity value at a time point of importance such as a specific season or holiday.
And step three, in response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are off-line channels and the value adjustment reasons are original value adjustment, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are off-line original item value adjustment.
And step four, in response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are off-line channels and the value adjustment reasons are value transfer adjustment, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are off-line value transfer adjustment.
And fifthly, for each initial value adjustment information in the determined initial value adjustment information set, writing the initial value adjustment information into an asynchronous operation message queue to update the asynchronous operation message queue in response to determining that the initial value adjustment information distribution timer meets a first preset sending condition. The initial value adjustment information distribution timer may be a message distributor for transmitting the initial value adjustment information to an asynchronous operation message queue within a preset time interval. The first preset transmission condition may be that the transmission time of the initial charge information distribution timer satisfies a preset time or that a time interval of the initial charge information distribution timer after the preset time is a preset time interval. For example, the first preset transmission condition may be that the transmission time of the initial-charge-information distribution timer reaches a preset time point or that the time interval of the initial-charge-information distribution timer after the preset time point for transmitting the initial-charge-information reaches a preset time interval. The preset time interval may be 0.001s.
Step six, executing the following judging steps on the updated asynchronous operation message queue:
and a first sub-step, checking each initial value adjustment information in the updated asynchronous operation message queue to obtain a checking result as a first checking result. In practice, the execution body can verify each initial value adjustment information in the updated asynchronous operation message queue through a Hamming code error checking technology, and a verification result is obtained and used as a first verification result. Firstly, the execution body may convert all initial value adjustment information in the initial value adjustment information set into a binary code sequence as a first binary code sequence, and convert the first binary code sequence into a first hamming code according to a first preset data bit and a first preset check bit. Then, the execution body can convert each initial value adjustment information in the message queue into a binary code sequence to obtain a first verification binary code sequence, then convert the first verification binary code sequence into a Hamming code as a first verification Hamming code according to the first preset data bit and the first preset check bit, and then compare the first Hamming code with the first verification Hamming code to obtain a first verification result. Finally, the execution body may determine that the writing is successful as the first verification result with the same hamming code. And determining the first verification results with different Hamming codes as writing failure. The first preset data bit and the first preset check bit may refer to a preset data bit of the hamming code and a preset check bit of the hamming code, respectively.
And a second sub-step of generating a value adjustment information task corresponding to the initial value adjustment information set according to the initial value adjustment information set in the updated asynchronous operation message queue and the value channel type corresponding to the initial value adjustment information set in response to determining that the first check result represents successful writing. Wherein the value adjustment information task may be a set of code instructions for generating a value adjustment information set. In practice, the executing body may perform information labeling on the initial value adjustment information set by using value channel type information corresponding to the initial value adjustment information set through an automatic labeling technology, obtain an initial value adjustment information set of a labeled value channel type as a first instruction information set, and then convert the obtained first instruction information set into a first code instruction set by using a code generation technology to serve as a value adjustment information task.
And a third sub-step, responding to the first information judgment result to represent writing failure, and re-writing the initial value adjustment information which is in the writing failure in the initial value adjustment information set into an updated asynchronous operation message queue to obtain a compensation queue.
And seventhly, executing the judging step again according to the compensation queue.
And step eight, executing the generated value adjustment information task to obtain a value adjustment information group corresponding to the value channel type of the determined initial value adjustment information set. Wherein the value adjustment information task may be a first code instruction set that generates a value adjustment information set that marks a value channel type. In practice, the executing entity may execute the first set of code instructions to generate a set of value adjustment information.
A second step of determining each obtained value adjustment information group as a value adjustment information group set, wherein the value adjustment information group in the value adjustment information group set has one of the following price adjustment types: online original item value adjustment, online value transfer adjustment, offline original item value adjustment, and offline value transfer adjustment.
And 103, predefining value information groups based on each value adjustment information group in the value adjustment information group set and the commodity circulation source of the corresponding value adjustment information group, generating a value change execution information group, and obtaining a value change execution information group set.
In some embodiments, the executing entity may generate a value change executing information set based on each value adjustment information set in the value adjustment information set and a predefined value information set of the item flow source corresponding to the value adjustment information set, to obtain a value change executing information set. Wherein the predefined value information group of the commodity circulation source comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group. In some optional implementations of some embodiments, the executing entity may generate the value change execution information set based on each value adjustment information set in the value adjustment information set and the item flow source predefined value information set corresponding to the value adjustment information set by:
the first step, for each value adjustment information group in the value adjustment information group set, of executing the following steps:
a first sub-step of determining the price adjustment type of the value adjustment information group.
And a second sub-step of generating an initial value change execution information set according to the value adjustment information set and the on-line first predefined value information set in response to determining that the value type of the value adjustment information set is an on-line original item value adjustment. The initial value change execution information set is change information of each item in the determined item circulation source generated according to the value adjustment information set of the corresponding item circulation source and the predefined change price standard. For example, the initial value change execution information in the initial value change execution information group includes at least one of: item identification, change time, value of the changed item. As an example, first, the execution subject may determine the value adjustment information set as a rule engine object to be added to the rule engine. The online first set of predefined value information is then added to the rules engine as a rule set. And finally, executing the rule engine to obtain a first engine execution result as initial value change execution information. Wherein the rule engine may be a component embedded in the application. The online first predefined value information in the online first predefined value information group may include, but is not limited to, at least one of: on-line item identification, on-line original item value adjustment criteria. The above-mentioned online original article value adjustment criterion may be a criterion for adjusting online article value at a time node such as a non-specific season or holiday.
And a third sub-step of generating an initial value change execution information set based on the value adjustment information set and the online second predefined value information set in response to determining that the value type of the value adjustment information is an online value transfer adjustment. As an example, first, the execution subject may determine the value adjustment information set as a rule engine object to be added to the rule engine. The online second set of predefined value information is then added to the rules engine as a rule set. And finally, executing the rule engine to obtain a second engine execution result as initial value change execution information. Wherein the rule engine may be a component embedded in the application. Wherein the online second predefined value information in the online second predefined value information group may include, but is not limited to, at least one of: on-line item identification, on-line value transfer adjustment criteria. The online value transfer adjustment criteria may be criteria for adjusting the value of an online item at a time point such as a specific season or holiday.
And a fourth sub-step of generating an initial value change execution information set based on the value adjustment information set and the off-line first predefined value information set in response to determining that the value type of the value adjustment information is an off-line original item value adjustment. As an example, first, the execution subject may determine the value adjustment information set as a rule engine object to be added to the rule engine. The offline first set of predefined value information is then added to the rules engine as a rule set. And finally, executing the rule engine to obtain a third engine execution result as initial value change execution information. Wherein the rule engine may be a component embedded in the application. Wherein the offline first predefined value information in the offline first predefined value information group may include, but is not limited to, at least one of: offline item identification, offline original item value adjustment criteria. The standard for adjusting the value of the offline original item may be a standard for adjusting the value of the offline original item at a time node such as a non-specific season or holiday.
And a fifth sub-step of generating an initial value change execution information group from the value adjustment information group and the off-line second predefined value information group in response to determining that the value type of the value adjustment information is an off-line value transfer adjustment. As an example, first, the execution subject may determine the value adjustment information set as a rule engine object to be added to the rule engine. An offline second set of predefined value information is then added to the rules engine as a rule set. And finally, executing the rule engine to obtain a fourth engine execution result as initial value change execution information. Wherein the rule engine may be a component embedded in the application. Wherein the offline second predefined value information in the offline second predefined value information set may include, but is not limited to, at least one of: offline item identification, offline value transfer adjustment criteria. The off-line value transfer adjustment criterion may be a criterion for adjusting the value of the off-line item at a time node such as a specific season or holiday.
And a sixth sub-step of writing the initial value change execution information into the schedule refresh message queue to update the schedule refresh message queue in response to a determination that the value change execution information distribution timer satisfies a second preset transmission condition for each of the generated initial value change execution information groups. The value change execution information distribution timer may be a message distribution timer for periodically transmitting the value change execution information to the scheduled refresh message queue at a predetermined time interval. The second preset transmission condition may be that a transmission time of the value change execution information distribution timer is a preset time or that a time interval of the value change execution information distribution timer after the preset time is a preset time interval. For example, the preset may be a time for generating the time initial value change execution information set, and the transmission interval may be 0.001s.
And a seventh sub-step of checking each initial value change execution information in the updated planned refreshing message queue to obtain a check result as a second check result. In practice, the execution subject can verify each initial value change execution information in the updated planned refreshing message queue through a Hamming code error checking technology, and a verification result is obtained and used as a second verification result. First, the execution body may convert all the initial value change execution information in the initial value change execution information group into a binary code sequence as the second binary code sequence. And converting the second binary coding sequence into a second Hamming code according to the second preset data bit and the second preset check bit. Then, the executing body may perform binary encoding on each initial value change executing information in the scheduled refresh message queue to obtain a second verification binary encoding sequence. And converting the second verification binary code sequence into a second verification Hamming code according to the second preset data bit and the second preset check bit. And finally, comparing the second Hamming code with the second verification Hamming code to obtain a second verification result. Finally, the execution body may determine that the second check result with the same hamming code is successful. And determining a second check result with different Hamming codes as a second check failure. The second preset data bit and the second preset check bit may refer to a preset data bit of the hamming code and a preset check bit of the hamming code, respectively.
And an eighth substep, in response to determining that the second verification result characterizes the writing success, generating a planned refreshing task according to the updated initial value change execution information in the planned refreshing message queue. Wherein the scheduled refresh task may be a set of code instructions for generating a value change execution information set. In practice, the execution body may determine each initial value change execution information in the schedule refresh message queue as a value change execution information group as a second instruction information group, and then convert the obtained second instruction information group into a second code instruction group as a schedule refresh task by using a code generation technique.
And a ninth substep, in response to determining that the second information judgment result represents the writing failure, of rewriting the initial value change execution information of the writing failure in the initial value change execution information group into the updated planned refreshing message queue.
And a tenth substep, executing the plan refreshing task to determine the value change execution information group. Wherein the scheduled refresh task may be generating a second set of code instructions for the value change execution information set. In practice, the execution body may execute the second set of code instructions to generate a value change execution information set.
And a second step of determining each of the determined value change execution information groups as a value change execution information group set.
Step 104, generating a value change notification information group set based on the value change execution information group set.
In some embodiments, the execution entity may generate the value change notification information set based on the value change execution information set.
In some optional implementations of some embodiments, the executing entity may generate the value change notification information set based on the value change execution information set by:
the first step of executing the following steps for each value change execution information group in the value change execution information group set:
a first sub-step of generating an information notification task corresponding to the value change execution information group according to the value change execution information group and a preset notification time corresponding to the value change execution information group. Wherein the information notification task may be a set of code instructions for generating a value change notification information set. In practice, the execution subject may determine the value change execution information set and a preset notification time corresponding to the value change execution information set as a third instruction information set, and then convert the obtained third instruction information set into a third code instruction set as a planned refresh task using an object code generation algorithm.
And a second sub-step of executing the information notifying task to obtain a value change notifying information group. The value change notification information in the value change notification information set may include an item identifier, a value change time, a value adjustment reason, a preset notification time, and a changed value. Wherein the preset notification time included in each value change notification information in the value change notification information group is the same. The information notification task may be a third code instruction set for generating a value change notification information set. In practice, the executing entity may execute the third set of code instructions to generate a value change notification information set.
And a second step of determining each of the determined value change notification information groups as a value change notification information group set.
Step 105, for each item circulation source in the item circulation source set, updating item value information of each item identifier of the corresponding item circulation source based on the value change notification information set of the corresponding item circulation source in the value change notification information set.
In some embodiments, for each item flow source in the set of item flow sources, the executing entity may be connected to an item management system of the corresponding item flow source through an item flow source management client to update item value information of each item identifier of the corresponding item flow source based on a value change notification information set of the corresponding item flow source in the value change notification information set.
In some optional implementations of some embodiments, the executing entity may update the item value information corresponding to each item identifier of the item flow source based on the value change notification information set corresponding to the item flow source in the value change notification information set by:
first, the following monitoring steps are performed on the value change notification information group:
the first sub-step, the system time is obtained as the current time.
And a second sub-step of determining the start time of the periodic timer as the current time.
And a third sub-step of determining the time interval of the periodic timer as a preset time interval.
And a fourth sub-step of determining a preset notification time corresponding to the value change notification information group.
And a fifth substep, in response to determining that the current time is greater than the preset notification time, of sending the value change notification information set to a terminal device corresponding to the item circulation source, so that the terminal device updates item value information of each item identifier corresponding to the item circulation source according to the value change notification information set. The terminal equipment of the commodity circulation source can be a POS terminal, an electronic tag and an intelligent goods shelf.
And a second step of re-acquiring the system time as the current time in response to determining that the current time is smaller than the preset notification time and the time interval does not satisfy the preset time interval of the periodic timer, and executing the monitoring updating step again.
Step 106, for each item circulation source in the item circulation source set, adjusting item demand information of each item identifier of the corresponding item circulation source based on the value change notification information group of the corresponding item circulation source in the value change notification information group set.
In some embodiments, for each item flow source in the set of item flow sources, the executing entity may adjust item demand information corresponding to each item identifier of the item flow source based on a value change notification information set corresponding to the item flow source in the set of value change notification information sets.
In some optional implementations of some embodiments, the executing entity may adjust the item requirement information corresponding to each item identifier of the item circulation source based on a value change notification information set corresponding to the item circulation source in the value change notification information set by:
The first step of executing the following steps based on the value change notification information group corresponding to the item flow source in the value change notification information group set:
a first sub-step of executing, for each value change notification information in the value change notification information group, the following steps:
a first step of determining a changed value of the item identifier in the value change notification information based on the value change notification information. In practice, the execution entity may determine the post-change value of the item identifier in the value change notification information by querying the value change notification information.
And a second sub-step, in response to determining that the value after the change is greater than the original value of the corresponding item identification, increasing the item demand of the item identification in the corresponding item demand information by a first preset amount to obtain a target item demand. The first preset quantity can be a quantity of the articles which can be increased for merchant customization.
And a third sub-step, in response to determining that the value after the change is smaller than the original value of the corresponding item, reducing the item demand of the item identifier in the corresponding item demand information by a second preset amount, and obtaining a target item demand. The second preset number can reduce the number of the articles for merchant customization.
And a fourth sub-step of updating the item demand in the item demand information to the target item demand.
And secondly, controlling the associated article scheduling equipment to execute article scheduling operation corresponding to the article demand in the updated article demand information according to the updated article demand information.
Optionally, the above execution body may further execute the following steps:
the first step, for each item flow source in the item flow source set, executing the following steps:
and a first sub-step of acquiring each value change notification information group corresponding to the object circulation source in a preset time period as a target value change notification information group set.
A second sub-step of executing, for each value change notification information group in the target value change notification information group set, the steps of:
and a first sub-step of determining the value change time corresponding to each item identifier in the value change notification information group as a value change time set.
A second sub-step of obtaining an existing quantity of item identifications corresponding to each value change time in the set of value change times as an existing quantity group.
A third sub-step of determining each of the acquired existing quantity groups as an existing quantity group set.
And a fourth sub-step of constructing a historical article value change information set based on the target value change notification information set and the existing quantity group set. Wherein the historical item value change information in the historical item value change information set corresponds to an item of the item identification in the change notification information group. In practice, the executing body may build a corresponding data model and table with the target value change notification information set and the existing quantity set through MySQL database to obtain a historical article value change information set. The historical item value change information in the set of historical item value change information may include, but is not limited to, at least one of: value change time, value after change, original value, existing quantity, item identification.
A fifth substep of executing the following processing steps for each piece of history item value change information in the history item value change information set:
a first sub-step of determining the historical item value change information as initial historical item information of a corresponding item, wherein the initial item history information includes each value change time, a value adjustment reason corresponding to each value change time, and an existing number of changed values corresponding to each value change time.
And a second sub-step of performing data preprocessing on the initial historical object information to obtain the processed initial historical object information as the historical object information. In practice, the executing body may remove the article information with abnormal value change in the initial historical article information by using an abnormal value processing technology, so as to obtain the processed initial historical article information as the historical article information. The article information with abnormal value change may be article information with a difference between the changed value and the original value being greater than a predefined difference.
And a third sub-step of inputting the processed historical article information into a pre-trained value change prediction model to obtain value change prediction information. The value change prediction model may be a neural network model in which the processed historical item information is used as input data and the value change prediction information is used as output data. For example, the neural network model may be a Bp neural network model or an LSTM long term memory network model. The value change prediction information may include at least one of: the value after the change, the change time, and the predicted value change cause.
And a fourth sub-step of updating the value change prediction information to a value change notification information group corresponding to the item flow source, so as to update the value change notification information group.
And a second step of updating the article value information of each article identifier corresponding to the article circulation source according to the updated value change notification information group. In practice, the executing body can update the article value information of each article identifier of the article circulation source through the article circulation source terminal device according to the updated value change notification information group. The object flow source terminal equipment can be a POS terminal, an electronic tag and an intelligent goods shelf.
Alternatively, the value change prediction model may be trained by:
first, a sample set is obtained. The samples in the sample set include sample historical object information and sample target object value change information corresponding to the sample historical object information. The sample historical item information may be historical item information within a first preset time period in the elapsed time, and the sample target value change information may be value change information corresponding to a period of time after the first preset time period. For example, the sample historical item information may be historical item information of 2022 for 1 month to 6 months, and the sample target item value change information may be item value change information corresponding to 2022 for 7 months.
Second, the following training steps are performed based on the sample set:
and a first sub-step of inputting sample historical object information of at least one sample in the sample set to an initial neural network to obtain sample prediction value change information corresponding to each sample in the at least one sample.
And a second sub-step of comparing the sample predicted value change information corresponding to each of the at least one sample with the corresponding sample target value change information. In practice, the execution subject may determine a gap between the sample prediction value change information corresponding to each sample in the at least one sample and the corresponding sample target value change information by comparing the cross entropy loss function.
And a third sub-step of determining whether the initial neural network reaches a preset optimization target according to the comparison result. The optimization target may be that the accuracy of the sample prediction value change information generated by the initial neural network is greater than a preset accuracy threshold.
And a fourth sub-step, in response to determining that the initial neural network reaches the optimization target, using the initial neural network as a value change prediction model after training is completed.
And a fifth sub-step of, in response to determining that the initial neural network has not reached the optimization objective, adjusting network parameters of the initial neural network, and forming a sample set using unused samples, and performing the training step again using the adjusted initial neural network as the initial neural network. As an example, the network parameters of the initial neural network described above may be adjusted using a back propagation algorithm (Back Propagation Algorithm, BP algorithm) and a gradient descent method (e.g., a small batch gradient descent algorithm).
The technical scheme and the related content are taken as an invention point of the embodiment of the disclosure, and the second technical problem mentioned in the background art is solved, namely the value change is not performed according to the historical article information in the preset time period, so that the value change accuracy is lower, the article demand information adjustment accuracy is lower, and the scheduling times are increased. The factors for increasing the number of scheduling times tend to be as follows: the value change is not carried out according to the historical article information in the preset time period, so that the value change accuracy is low, the article demand information adjustment accuracy is low, and the scheduling times are increased. If the above factors are solved, the effect of scheduling times can be achieved. To achieve this effect, the present disclosure first obtains, for each item flow source in the item flow source set, respective value change notification information groups corresponding to the item flow source for a preset period of time as a target value change notification information group set. Then, for each value change notification information group in the target value change notification information group set, the following steps are executed: the first step is to determine the value change time corresponding to each item identifier in the value change notification information group as a value change time set. Second, the existing quantity of item identifications corresponding to each value change time in the value change time set is obtained as an existing quantity group. Third, each of the obtained existing quantity groups is determined as an existing quantity group set. And a fourth step of constructing a historical article value change information set according to the target value change notification information set and the existing quantity set, wherein the historical article value change information in the historical article value change information set corresponds to the article identified in the change notification information set. Fifth, for each piece of history item value change information in the history item value change information set, the following processing steps are executed: a first sub-step of determining initial historical item information corresponding to the item according to the historical item value change information, wherein the initial item history information includes each value change time, a value adjustment reason corresponding to each value change time, and an existing number of changed values corresponding to each value change time and corresponding to each value change time. And a second sub-step of performing data preprocessing on the initial historical object information to obtain the processed initial historical object information as the historical object information. And a third sub-step of inputting the processed historical article information into a pre-trained value change prediction model to obtain value change prediction information. And a fourth sub-step of updating the value change prediction information to a value change notification information group corresponding to the item flow source, so as to update the value change notification information group. And finally, updating the article value information of each article identifier corresponding to the article circulation source according to the updated value change notification information group. And the value of the article is predicted according to the historical article information, so that the value change accuracy is improved, the article demand information adjustment accuracy is improved, the number of times of error scheduling is reduced, and the number of scheduling times is reduced because the article with error scheduling is not required to be scheduled for the second time.
The above embodiments of the present disclosure have the following advantages: by the article demand information adjustment method of some embodiments of the present disclosure, the resource waste of computing power is reduced, and the article demand information adjustment delay time is shortened. Specifically, the reason why the resource waste and the article demand information adjustment delay time are long is that: longer network delays exist when transmitting value change notification information sets of different commodity circulation sources through a network, resulting in longer commodity demand information adjustment delay times. There are many packet loss conditions, which results in many transmission failures of the value change notification information and a long delay time. Further, the article demand information is more in adjustment failure times, and needs to be readjusted, so that the calculation force resource is wasted. Based on this, some embodiments of the present disclosure provide an item demand information adjustment method. Firstly, acquiring an article value to-be-adjusted information group of each article flow source in an article flow source set to obtain an article value to-be-adjusted information group set, wherein the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason. And secondly, carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set so as to generate a value adjustment information group and obtain a value adjustment information group set. Therefore, the value adjustment information group used for generating the value adjustment information group set after processing can be obtained by carrying out message queue asynchronous processing on the information group to be adjusted of the article value, so that the waiting time is reduced, the network delay time is reduced, and the value adjustment information group used for generating the value adjustment information group set after processing is obtained. And generating a value change execution information group based on each value adjustment information group in the value adjustment information group set and an article flow source predefined value information group corresponding to the value adjustment information group to obtain a value change execution information group set, wherein the article flow source predefined value information group comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group. Thus, a value change execution information group set can be obtained. Then, a value change notification information group set is generated based on the value change execution information group set. Thus, a value change notification information group set for updating the item value information corresponding to each item identifier of the item flow source can be obtained. Then, for each item circulation source in the item circulation source set, based on the value change notification information set corresponding to the item circulation source in the value change notification information set, updating item value information corresponding to each item identifier of the item circulation source. Finally, for each item circulation source in the item circulation source set, based on the value change notification information set corresponding to the item circulation source in the value change notification information set, adjusting item demand information corresponding to each item identifier of the item circulation source. And because the message queue asynchronous processing is adopted, when the message queue asynchronous processing is carried out on each article value to-be-adjusted information group in the article value to-be-adjusted information group set, when one article value to-be-adjusted information group carries out the message queue asynchronous processing, the article value to-be-adjusted information in the article value to-be-adjusted information group can continue to process the next article value to-be-adjusted information message in the article value to-be-adjusted information group without waiting for the response of a receiver. The waiting time is reduced, the network delay time is reduced, and then the article demand information adjustment delay time is shortened. The message queue is a container for storing the messages in the transmission process of the messages, and when the network is dropped, the phenomenon of packet loss does not occur. Thus reducing the number of article demand information adjustment failures. Furthermore, the waste of computational resources is reduced.
With further reference to fig. 2, as an implementation of the method shown in the figures, the present disclosure provides some embodiments of an article demand information adjustment apparatus, which apparatus embodiments correspond to those method embodiments shown in fig. 1, which apparatus is particularly applicable in various electronic devices.
As shown in fig. 2, the article demand information adjustment apparatus 200 of some embodiments includes: an acquisition unit 201, a first generation unit 202, a second generation unit 203, a third generation unit 204, an update unit 205, and an adjustment unit 206. The acquiring unit 201 is configured to acquire an item value to-be-adjusted information set of each item flow source in the item flow source set to obtain an item value to-be-adjusted information set, where the item value to-be-adjusted information in the item value to-be-adjusted information set includes an item identifier, an original item value, a value channel type and a value adjustment reason; the first generating unit 202 is configured to perform message queue asynchronous processing on each item value to-be-adjusted information set in the item value to-be-adjusted information set, so as to generate a value adjustment information set, and obtain a value adjustment information set; the second generating unit 203 is configured to generate a value change execution information set based on each value adjustment information set in the value adjustment information set and an item flow source predefined value information set corresponding to the value adjustment information set, so as to obtain a value change execution information set, wherein the item flow source predefined value information set includes an online first predefined value information set, an online second predefined value information set, an offline first predefined value information set, and an offline second predefined value information set; the third generation unit 204 is configured to generate a value change notification information group set based on the value change execution information group set; the updating unit 205 is configured to update, for each item circulation source in the item circulation source set, item value information of each item identifier corresponding to the item circulation source based on a value change notification information group corresponding to the item circulation source in the value change notification information group set; the adjustment unit 206 is configured to adjust, for each item flow source in the item flow source set, item demand information of each item identifier corresponding to the item flow source based on a value change notification information group corresponding to the item flow source in the value change notification information group set.
It will be appreciated that the elements described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting benefits described above for the method are equally applicable to the apparatus 200 and the units contained therein, and are not described in detail herein.
Referring now to fig. 3, a schematic diagram of an electronic device 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The computer program, when executed by the processing means 301, performs the functions defined in the methods of some embodiments of the present disclosure.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring an article value to-be-adjusted information group of each article flow source in an article flow source set to obtain an article value to-be-adjusted information group set, wherein the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason; carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set to generate a value adjustment information group, so as to obtain a value adjustment information group set; generating a value change execution information group based on each value adjustment information group in the value adjustment information group set and an article flow source predefined value information group corresponding to the value adjustment information group to obtain a value change execution information group set, wherein the article flow source predefined value information group comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group; generating a value change notification information set based on the value change execution information set; for each item circulation source in the item circulation source set, updating item value information of each item identifier corresponding to the item circulation source based on a value change notification information set corresponding to the item circulation source in the value change notification information set; and adjusting the item demand information of each item identifier corresponding to the item circulation source based on the value change notification information set corresponding to the item circulation source in the value change notification information set for each item circulation source in the item circulation source set.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a first generation unit, a second generation processing unit, a third generation input unit, an update unit, and an adjustment unit. The names of these units do not limit the unit itself in some cases, for example, the first generating unit may also be described as "a unit that performs message queue asynchronous processing on each item value to be adjusted information group in the item value to be adjusted information group set to generate a value adjustment information group, and obtains the value adjustment information group set".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.
Claims (9)
1. An article demand information adjustment method, comprising:
acquiring an article value to-be-adjusted information group of each article flow source in an article flow source set to obtain an article value to-be-adjusted information group set, wherein the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason;
carrying out message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set to generate a value adjustment information group, so as to obtain a value adjustment information group set;
generating a value change execution information group based on each value adjustment information group in the value adjustment information group set and an item flow source predefined value information group corresponding to the value adjustment information group to obtain a value change execution information group set, wherein the item flow source predefined value information group comprises an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group and an offline second predefined value information group;
generating a value change notification information set based on the value change execution information set;
For each item circulation source in the item circulation source set, updating item value information of each item identifier corresponding to the item circulation source based on a value change notification information group corresponding to the item circulation source in the value change notification information group set;
and for each item circulation source in the item circulation source set, adjusting item demand information of each item identifier corresponding to the item circulation source based on a value change notification information group corresponding to the item circulation source in the value change notification information group set.
2. The method of claim 1, wherein the performing message queue asynchronous processing on each item value to be adjusted information set in the item value to be adjusted information set to generate a value adjustment information set, and obtaining the value adjustment information set includes:
for each value to be adjusted information group in the value to be adjusted information group set of the article, executing the following message queue asynchronous processing steps:
in response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are online channels and the value adjustment reasons are original value adjustment, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are online original item value adjustment;
In response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are online channels and the value adjustment reasons are value transfer adjustments, determining the value to-be-adjusted information of each item as an initial value adjustment information set with the value channel types being online value transfer adjustments;
in response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are off-line channels and the value adjustment reasons are original value adjustment, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are off-line original item value adjustment;
in response to determining that the value channel types in the value to-be-adjusted information of each item in the value to-be-adjusted information group are off-line channels and the value adjustment reasons are value transfer adjustments, determining the value to-be-adjusted information of each item as an initial value adjustment information set of which the value channel types are off-line value transfer adjustments;
for each initial value adjustment information in the determined initial value adjustment information set, writing the initial value adjustment information into an asynchronous operation message queue to update the asynchronous operation message queue in response to determining that an initial value adjustment information distribution timer meets a first preset transmission condition;
The following judging steps are executed for the updated asynchronous operation message queue:
checking each initial value adjustment information in the updated asynchronous operation message queue to obtain a checking result as a first checking result;
responding to the fact that the first verification result represents successful writing, and generating a value adjustment information task corresponding to the initial value adjustment information set according to the updated initial value adjustment information set and the value channel type corresponding to the initial value adjustment information set in an asynchronous operation message queue;
in response to determining that the first information judgment result represents writing failure, rewriting initial value adjustment information which is in writing failure in the initial value adjustment information set into an updated asynchronous operation message queue to obtain a compensation queue;
executing the judging step again according to the compensation queue;
executing the generated value adjustment information task to obtain a value adjustment information group corresponding to the value channel type of the determined initial value adjustment information set;
determining each obtained value adjustment information group as a value adjustment information group set, wherein the value adjustment type of the value adjustment information group in the value adjustment information group set is one of the following: online original item value adjustment, online value transfer adjustment, offline original item value adjustment, and offline value transfer adjustment.
3. The method of claim 1, wherein the generating a value change execution information set based on each value adjustment information set in the value adjustment information set and a predefined value information set of the item flow sources corresponding to the value adjustment information set, the value change execution information set comprising:
for each value adjustment information group in the set of value adjustment information groups, performing the steps of:
determining a price adjustment type of the value adjustment information group;
generating an initial value change execution information set according to the value adjustment information set and the online first predefined value information set in response to determining that the value adjustment type of the value adjustment information set is online original item value adjustment;
generating an initial value change execution information set according to the value adjustment information set and the online second predefined value information set in response to determining that the value type of the value adjustment information is online value transfer adjustment;
generating an initial value change execution information set according to the value adjustment information set and the off-line first predefined value information set in response to determining that the value type of the value adjustment information is an off-line original item value adjustment;
Generating an initial value change execution information set according to the value adjustment information set and the off-line second predefined value information set in response to determining that the value type of the value adjustment information is an off-line value transfer adjustment;
for each initial value change execution information in the generated initial value change execution information group, writing the initial value change execution information into a planned refresh message queue to update the planned refresh message queue in response to determining that a value change execution information distribution timer meets a second preset transmission condition;
checking each initial value change execution information in the updated plan refreshing message queue to obtain a check result as a second check result;
responding to the fact that the second checking result represents that writing is successful, and generating a planned refreshing task according to the updated initial value change execution information in the planned refreshing message queue;
in response to determining that the second information judgment result represents writing failure, rewriting the initial value change execution information which is failed to be written in the initial value change execution information group into an updated planned refreshing message queue;
executing the scheduled refreshing task to determine a value change execution information set;
The determined value change execution information sets are determined as a value change execution information set.
4. The method of claim 1, wherein the generating a value change notification information set based on the value change execution information set comprises:
for each value change execution information group in the value change execution information group set, performing the steps of:
generating an information notification task corresponding to the value change execution information group according to the value change execution information group and a preset notification time corresponding to the value change execution information group;
executing the information notification task to obtain a value change notification information group, wherein the value change notification information in the value change notification information group comprises an article identifier, a value change time, a value adjustment reason, a preset notification time and a changed value, and the preset notification time included in each value change notification information in the value change notification information group is the same;
the determined value change notification information groups are determined as a value change notification information group set.
5. The method of claim 4, wherein updating item value information corresponding to each item identification of the item flow source based on a value change notification information set corresponding to the item flow source in the value change notification information set comprises:
The following monitoring steps are executed for the value change notification information group:
acquiring system time as current time;
determining a start time of a periodic timer as the current time;
determining the time interval of the periodic timer as a preset time interval;
determining a preset notification time corresponding to the value change notification information group;
in response to determining that the current time is greater than the preset notification time, sending the value change notification information group to terminal equipment corresponding to the commodity circulation source, so that the terminal equipment updates commodity value information corresponding to each commodity identifier of the commodity circulation source according to the value change notification information group;
and in response to determining that the current time is less than the preset notification time and the time interval reaches the preset time interval of the periodic timer, re-acquiring the system time as the current time, and executing the monitoring step again.
6. The method of claim 1, wherein the item demand information comprises: item identification and item demand; and
the adjusting the article requirement information corresponding to each article identifier of the article circulation source based on the value change notification information group corresponding to the article circulation source in the value change notification information group set comprises the following steps:
Based on the value change notification information group corresponding to the commodity circulation source in the value change notification information group set, executing the following steps:
for each value change notification information in the value change notification information group, performing the steps of:
determining the changed value of the item identifier in the value change notification information according to the value change notification information;
in response to determining that the changed value is greater than the original article value of the corresponding article identifier, increasing the article demand of the article identifier in the corresponding article demand information by a first preset amount to obtain a target article demand;
in response to determining that the changed value is less than the original article value of the corresponding article identifier, reducing the article demand of the article identifier in the corresponding article demand information by a second preset amount to obtain a target article demand;
updating the article demand in the article demand information to be the target article demand;
and controlling the associated article scheduling equipment to execute article scheduling operation corresponding to the article demand in the updated article demand information according to the updated article demand information.
7. An article demand information adjustment device, comprising:
The system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is configured to acquire an article value to-be-adjusted information group of each article circulation source in an article circulation source set to obtain an article value to-be-adjusted information group set, and the article value to-be-adjusted information in the article value to-be-adjusted information group comprises an article identifier, an original article value, a value channel type and a value adjustment reason;
the first generation unit is configured to perform message queue asynchronous processing on each article value to-be-adjusted information group in the article value to-be-adjusted information group set so as to generate a value adjustment information group and obtain a value adjustment information group set;
a second generation unit configured to generate a value change execution information group based on each value adjustment information group in the value adjustment information group set and an item flow source predefined value information group corresponding to the value adjustment information group, to obtain a value change execution information group set, wherein the item flow source predefined value information group includes an online first predefined value information group, an online second predefined value information group, an offline first predefined value information group, and an offline second predefined value information group;
a third generation unit configured to generate a value change notification information group set based on the value change execution information group set;
An updating unit configured to update, for each item circulation source in the item circulation source set, item value information of each item identifier corresponding to the item circulation source based on a value change notification information group corresponding to the item circulation source in the value change notification information group set;
an adjustment unit configured to adjust, for each item circulation source in the item circulation source set, item demand information of each item identifier corresponding to the item circulation source based on a value change notification information group corresponding to the item circulation source in the value change notification information group set.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1 to 6.
9. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310704093.5A CN116681464A (en) | 2023-06-14 | 2023-06-14 | Article demand information adjustment method, device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310704093.5A CN116681464A (en) | 2023-06-14 | 2023-06-14 | Article demand information adjustment method, device, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116681464A true CN116681464A (en) | 2023-09-01 |
Family
ID=87787016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310704093.5A Pending CN116681464A (en) | 2023-06-14 | 2023-06-14 | Article demand information adjustment method, device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116681464A (en) |
-
2023
- 2023-06-14 CN CN202310704093.5A patent/CN116681464A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113408797A (en) | Method for generating flow-traffic prediction multi-time-sequence model, information sending method and device | |
CN115599640A (en) | Abnormal supply end warning method, electronic device and medium | |
CN115130065A (en) | Method, device and equipment for processing characteristic information of supply terminal and computer readable medium | |
CN114202130A (en) | Flow transfer amount prediction multitask model generation method, scheduling method, device and equipment | |
CN114781351B (en) | Bid file analysis method, device, equipment and medium based on power data | |
CN114048931B (en) | Replenishment information generation method and device, electronic equipment and computer readable medium | |
CN116388112B (en) | Abnormal supply end power-off method, device, electronic equipment and computer readable medium | |
CN116562772A (en) | Method, apparatus, device, medium and program product for generating article replenishment information | |
CN117035842A (en) | Model training method, traffic prediction method, device, equipment and medium | |
CN115907136B (en) | Electric automobile dispatching method, device, equipment and computer readable medium | |
CN116681464A (en) | Article demand information adjustment method, device, electronic equipment and medium | |
CN115619170A (en) | Method, device, equipment, computer medium and program product for adjusting electric quantity load | |
CN112989203A (en) | Material delivery method, device, equipment and medium | |
CN116911577B (en) | Comprehensive energy scheduling method, device, electronic equipment and computer readable medium | |
CN116703262B (en) | Distribution resource adjustment method, distribution resource adjustment device, electronic equipment and computer readable medium | |
CN117235535B (en) | Abnormal supply end power-off method and device, electronic equipment and medium | |
CN113554385B (en) | Distribution robot control method, distribution robot control device, electronic equipment and computer readable medium | |
CN115641059B (en) | Method, device, electronic equipment, medium and program product for generating replenishment information | |
CN116702168B (en) | Method, device, electronic equipment and computer readable medium for detecting supply end information | |
CN116800834B (en) | Virtual gift merging method, device, electronic equipment and computer readable medium | |
CN112348587B (en) | Information pushing method and device and electronic equipment | |
CN114792258B (en) | Information generation method and device, electronic equipment and computer readable medium | |
CN117319312B (en) | Data flow control method and device | |
CN116205572A (en) | Buffer inventory information generation method, apparatus, device and computer readable medium | |
CN117689412A (en) | Method, device, equipment and computer readable medium for processing article circulation information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |