Data processing method and device for accepted cattle
By dividing the adopted cattle requests into two queues and processing them one by one, the data processing pressure caused by the ranch server receiving a large number of requests in a short time is solved, and the user-friendly adoption process is realized, which improves the stability and user experience of the system.
Patent Information
- Application Number
- CN202411272456.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-06
AI Technical Summary
In the context of digital economy, ranch servers receive a large number of requests for adoption in a short period of time, resulting in increased data processing pressure, resulting in lag in operation of APP users or inability to adopt.
Using data processing methods, the adopted cattle requests are divided into two queues, sorted according to the reception time, and through the queue processing, each adopted cattle terminal is controlled to display and confirm inventory information one by one, reduce the number of requests processed simultaneously, and optimize the sorting for users to choose.
It slows down the pressure on the data processing of ranch servers during the adoption process, facilitates users to choose their favorite cattle for adoption, and improves the efficiency and fairness of the adoption process.
Smart Images

Figure CN119088568A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information interaction, and in particular to a data processing method and device for adopting a cattle. Background Art
[0002] People's work and life are gradually affected by the digital economy. Under this trend, people hope to adopt animals and plants according to their own preferences. Taking cattle as an example, ranches can provide batches of cattle for people with relevant hobbies to adopt. Ranches usually publish cattle adoption information at a fixed time point through APP. If there are a large number of people who want to adopt, people will send a large number of cattle adoption requests to the pasture server through APP in a very short time, which may bring data processing pressure to the ranch server, and the APP user operation will be stuck, or even unable to adopt. Summary of the invention
[0003] In view of the problems in the prior art, an embodiment of the present invention provides a data processing method and device for adopting a cattle, which can at least partially solve the problems in the prior art.
[0004] On the one hand, the present invention provides a data processing method for adopting cattle, comprising:
[0005] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0006] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0007] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0008] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0009] The remaining adopted cow information in the inventory is determined according to the actions performed by each adopted cow terminal in the first queue, including:
[0010] In response to each adopted cattle terminal in the first queue confirming the adoption action of the target cattle selected for adoption according to the displayed adopted cattle information remaining in the inventory, the target adopted cattle information corresponding to the target cattle is removed from the adopted cattle information remaining in the inventory to obtain updated adopted cattle information remaining in the inventory;
[0011] In response to each adopted cow terminal in the first queue performing a confirmation or non-adoption action according to the displayed information of the adopted cows remaining in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged.
[0012] The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0013] The remaining adopted cattle information in the inventory is displayed and compared with the adopted cattle preference information corresponding to each adopted cattle terminal in the first queue for similarity, and the remaining adopted cattle information in the inventory with optimized sorting is arranged and displayed in order from high to low in each adopted cattle terminal in the first queue, so that each adopted cattle terminal in the first queue can perform a confirmation adoption action on the target cattle selected for adoption according to the remaining adopted cattle information in the inventory with optimized sorting;
[0014] The adopt-a-cow preference information is input by a user corresponding to the adopt-a-cow terminal identifier in a pre-published adopt-a-cow information filling template.
[0015] Wherein, the data processing method for adopting cattle also includes:
[0016] In response to the attention field content confirmation action performed by each adopted cattle terminal in the first queue according to the displayed optimized sorted adopted cattle information remaining in the inventory, the adopted cattle information remaining in the inventory is screened to obtain the target adopted cattle information remaining in the inventory containing the confirmed attention field content;
[0017] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal in the first queue can perform the confirmation adoption action on the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory.
[0018] The remaining adopted cow information in the inventory is determined according to the actions performed by each adopted cow terminal traversed in the second queue, including:
[0019] In response to each adopted cattle terminal traversed in the second queue performing a confirmation adoption action on the target cattle selected for adoption according to the displayed adopted cattle information remaining in the inventory, the target adopted cattle information corresponding to the target cattle is removed from the adopted cattle information remaining in the inventory to obtain updated adopted cattle information remaining in the inventory;
[0020] In response to each adopted cow terminal traversed in the second queue performing a confirmation or non-adoption action according to the displayed remaining adopted cow information in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged.
[0021] The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0022] The remaining adopted cattle information in the inventory is displayed and compared with the adopted cattle preference information corresponding to each adopted cattle terminal traversed in the second queue for similarity, and the remaining adopted cattle information in the inventory with optimized sorting is arranged and displayed in order from high to low in each adopted cattle terminal traversed in the second queue, so that each adopted cattle terminal traversed in the second queue can perform a confirmation adoption action on the target cattle selected for adoption according to the remaining adopted cattle information in the inventory with optimized sorting;
[0023] The adopt-a-cow preference information is input by a user corresponding to the adopt-a-cow terminal identifier in a pre-published adopt-a-cow information filling template.
[0024] Wherein, the data processing method for adopting cattle also includes:
[0025] In response to the attention field content confirmation action performed by each adopted cow terminal traversed in the second queue according to the displayed optimized sorted adopted cow information remaining in the inventory, the adopted cow information remaining in the inventory is screened to obtain the target adopted cow information remaining in the inventory containing the confirmed attention field content;
[0026] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal traversed in the second queue can perform the confirmation adoption action on the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory.
[0027] In one aspect, the present invention provides a data processing device for adopting cattle, comprising:
[0028] A adding unit is used to receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0029] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0030] A first control unit is used to obtain the first adopting cattle terminal identifier in the first queue from the first queue, control the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, perform an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically control the next adopting cattle terminal in the first queue to display the determined remaining adopting cattle information in the inventory, and perform an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0031] The second control unit is used to obtain the first adopted cow terminal identifier in the second queue from the second queue if it is determined that the number of adopted cows remaining in the inventory is not zero, control the first adopted cow terminal in the second queue to display the adopted cow information remaining in the inventory, perform actions according to the first adopted cow terminal in the second queue to determine the adopted cow information remaining in the inventory, periodically control the next adopted cow terminal in the second queue to display the determined adopted cow information remaining in the inventory, and perform actions according to the next adopted cow terminal in the second queue to determine the adopted cow information remaining in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0032] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:
[0033] The processor and the memory communicate with each other via the bus;
[0034] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:
[0035] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0036] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0037] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0038] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0039] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
[0040] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:
[0041] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0042] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0043] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0044] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0045] The data processing method and device for adopting cattle provided by the embodiment of the present invention receive adopting cattle requests sent by adopting cattle terminals, add the first target adopting cattle requests whose quantity is equal to the first preset quantity to the first queue, and add the second target adopting cattle requests whose quantity is equal to the second preset quantity to the second queue; wherein the first preset quantity is equal to the pre-released number of adopted cattle, the second preset quantity is determined according to the pre-released number of adopted cattle, the first target adopting cattle requests in the first queue are sorted in the order of receiving time, and the second target adopting cattle requests in the second queue are sorted in the order of receiving time; the adopting cattle requests carry the adopting cattle terminal identifier; the first adopting cattle terminal identifier in the first queue is obtained from the first queue, the first adopting cattle terminal in the first queue is controlled to display the remaining adopting cattle information in the inventory, the remaining adopting cattle information in the inventory is determined according to the execution of an action by the first adopting cattle terminal in the first queue, and the control of the first queue is periodically executed. The next adopted cow terminal in the first queue displays the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the first queue, until all the cattle terminal identifiers in the first queue are traversed; if it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the first adopted cow terminal in the second queue executes an action to determine the remaining adopted cow information in the inventory, and periodically controls the next adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the second queue, until the number of adopted cows remaining in the inventory is zero, which can reduce the data processing pressure on the ranch server during the adoption of cows, and facilitate the adoption of cows users to choose their favorite cows for adoption. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0047] Figure 1 It is a flowchart of a data processing method for adopting a cow provided by an embodiment of the present invention.
[0048] Figure 2 It is a schematic diagram of the structure of a data processing device for adopting a cow provided by an embodiment of the present invention.
[0049] Figure 3 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.
[0051] Figure 1 FIG. 1 is a flow chart of a data processing method for adopting a cow provided by an embodiment of the present invention. Figure 1 As shown, the data processing method for adopting a cow provided by an embodiment of the present invention includes:
[0052] Step S1: receiving the adopt-a-cow request sent by the adopt-a-cow terminal, adding the first target adopt-a-cow request received first and whose quantity is equal to the first preset quantity to the first queue, and adding the second target adopt-a-cow request received second and whose quantity is equal to the second preset quantity to the second queue;
[0053] Among them, the first preset number is equal to the pre-released number of adopted cows, the second preset number is determined according to the pre-released number of adopted cows, the first target adoption cow requests in the first queue are sorted in order of receipt time, and the second target adoption cow requests in the second queue are sorted in order of receipt time; the adoption cow request carries the adoption cow terminal identifier.
[0054] Step S2: obtaining the first adopt cow terminal identifier in the first queue from the first queue, controlling the first adopt cow terminal in the first queue to display the remaining adopt cow information in the inventory, executing an action according to the first adopt cow terminal in the first queue to determine the remaining adopt cow information in the inventory, periodically controlling the next adopt cow terminal in the first queue to display the determined remaining adopt cow information in the inventory, and executing an action according to the next adopt cow terminal in the first queue to determine the remaining adopt cow information in the inventory, until all cattle terminal identifiers in the first queue are traversed.
[0055] Step S3: If it is determined that the number of adopted cows remaining in the inventory is not zero, obtain the first adopted cow terminal identifier in the second queue from the second queue, control the first adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory, perform actions according to the first adopted cow terminal in the second queue to determine the remaining adopted cow information in the inventory, periodically control the next adopted cow terminal in the second queue to display the determined remaining adopted cow information in the inventory, and perform actions according to the next adopted cow terminal in the second queue to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0056] In the above step S1, the device receives the adoption cow request sent by the adoption cow terminal, adds the first target adoption cow request received first and the number of which is equal to the first preset number to the first queue, and adds the second target adoption cow request received second and the number of which is equal to the second preset number to the second queue;
[0057] Wherein, the first preset number is equal to the pre-released number of adopted cows, the second preset number is determined according to the pre-released number of adopted cows, the first target adoption requests in the first queue are sorted in order of reception time, and the second target adoption requests in the second queue are sorted in order of reception time; the adoption request carries an adoption terminal identifier. The device may be a computer device that executes the method, for example, it may include a server, specifically a ranch server. It should be noted that the acquisition and analysis of data involved in the embodiments of the present invention are authorized by the user. The adoption terminal may include a mobile phone held by a user who wants to adopt a cow, etc.
[0058] Since there are many users who want to adopt a cow, the server will receive many adopt cow requests sent by adopt cow terminals within a short period of time after the adopt cow release time, and each adopt cow user can be limited to adopt only one cow.
[0059] The number of pre-released adopted cows can be set independently according to actual conditions, and can be selected as 50. The second preset number can be determined by equaling the product of the pre-released adopted cows and the preset ratio. The preset ratio can be set independently according to actual conditions, and can be selected as 40%. Referring to the above example, the second preset number is 20.
[0060] The first queue can be denoted as Q1 = {q11, q12…q150}, and the second queue can be denoted as Q2 = {q21, q22…q220}. The request reception time t11 corresponding to q11 < the request reception time t12 corresponding to q12, the request reception time t12 corresponding to q12 < the request reception time t13 corresponding to q13, and so on. The request reception time t150 corresponding to q150 < the request reception time t21 corresponding to q21, the request reception time t21 corresponding to q21 < the request reception time t22 corresponding to q22, and so on until the request reception time t219 corresponding to q219 < the request reception time t220 corresponding to q220.
[0061] Taking the adopted cattle terminal as a mobile phone as an example, the adopted cattle terminal identifier can be a mobile phone number.
[0062] In the above step S2, the device obtains the first adopted cattle terminal identifier in the first queue, controls the first adopted cattle terminal in the first queue to display the remaining adopted cattle information in the inventory, determines the remaining adopted cattle information in the inventory according to the actions performed by the first adopted cattle terminal in the first queue, and periodically controls the next adopted cattle terminal in the first queue to display the determined remaining adopted cattle information in the inventory, and determines the remaining adopted cattle information in the inventory according to the actions performed by the next adopted cattle terminal in the first queue, until all the adopted cattle terminal identifiers in the first queue are traversed. The first adopted cattle terminal identifier in the first queue is denoted as d11 and corresponds to the adoption request q11.
[0063] The next adopted cattle terminal identifier in the first queue is denoted as d12 and corresponds to the adoption request q12, and so on.
[0064] The adopted cattle information can include digital cattle images, which correspond one-to-one with real cattle, and can also include the species, weight, age, average daily milk production, etc. of the corresponding real cattle.
[0065] The first adopted cattle terminal in the first queue displays the remaining adopted cattle information in the inventory, which is the adopted cattle information with the quantity equal to the pre-released adopted cattle quantity. Thereafter, for each adopted cattle terminal that confirms an adopted cattle, the remaining adopted cattle quantity in the inventory is reduced by 1. Correspondingly, the remaining adopted cattle information in the inventory is the remaining adopted cattle information after subtracting the confirmed adopted cattle. It can be understood that if each adopted cattle terminal in the first queue confirms an adopted cattle, then when all the adopted cattle terminal identifiers in the first queue are traversed, the remaining adopted cattle quantity in the inventory is zero, which means that the users corresponding to the adopted cattle terminals in the second queue, which is the candidate queue, cannot select an adopted cattle.
[0066] If at least one cattle adoption terminal in the first queue has not confirmed the adoption of the cattle, then when all the cattle adoption terminal identifiers in the first queue are traversed, the number of cattle adoption terminals remaining in the inventory is equal to the number of cattle adoption terminals that have not confirmed the adoption of the cattle, which means that the user corresponding to the cattle adoption terminal in the second queue as the waiting queue has the opportunity to choose to adopt the cattle.
[0067] The following are some examples:
[0068] Control d11 to display the remaining adopted cattle information in the inventory (50 adopted cattle). If d11 selects a cattle for adoption based on the remaining adopted cattle information in the inventory (50 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is the adopted cattle information corresponding to 49 adopted cattle.
[0069] If d11 does not select a cow for adoption based on the remaining adoption cow information in the inventory (50 adoption cows) and confirms it, it is determined that the remaining adoption cow information in the inventory is still the adoption cow information corresponding to the 50 adoption cows.
[0070] If the remaining adopted cattle information in the inventory at this time is the adopted cattle information corresponding to 49 adopted cattle, control d12 to display the remaining adopted cattle information in the inventory (49 adopted cattle). If d12 selects a cattle for adoption according to the remaining adopted cattle information in the inventory (49 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is the adopted cattle information corresponding to 48 adopted cattle; if d12 does not select a cattle for adoption according to the remaining adopted cattle information in the inventory (49 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is the adopted cattle information corresponding to 49 adopted cattle, and so on.
[0071] If the remaining adopted cattle information in the inventory at this time is the adopted cattle information corresponding to 50 adopted cattle, control d12 to display the remaining adopted cattle information in the inventory (50 adopted cattle). If d12 selects a cow for adoption according to the remaining adopted cattle information in the inventory (50 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is the adopted cattle information corresponding to 49 adopted cattle; if d12 does not select a cow for adoption according to the remaining adopted cattle information in the inventory (50 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is the adopted cattle information corresponding to 50 adopted cattle, and so on.
[0072] In the above step S3, if the device determines that the number of adopted cows remaining in the inventory is not zero, then the device obtains the first adopted cow terminal identifier in the second queue from the second queue, controls the first adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory, performs an action according to the first adopted cow terminal in the second queue to determine the remaining adopted cow information in the inventory, periodically controls the next adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory after determination, and performs an action according to the next adopted cow terminal in the second queue to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero. If the number of adopted cows remaining after traversing the first queue is 2, that is, there are two adopted cow terminals in the first queue that have not adopted cows, then control d21 to display the remaining adopted cow information in the inventory (2 adopted cows), if d21 selects one cow for adoption according to the remaining adopted cow information in the inventory (2 adopted cows), and confirms, then it is determined that the remaining adopted cow information in the inventory is the adopted cow information corresponding to 1 adopted cow.
[0073] If d21 does not select a cow for adoption based on the remaining adopted cow information in the inventory (2 adopted cows) and confirms it, it is determined that the remaining adopted cow information in the inventory is still the adopted cow information corresponding to the 2 adopted cows.
[0074] If the remaining adopted cattle information in the inventory at this time is the adopted cattle information corresponding to 1 adopted cattle, control d22 to display the remaining adopted cattle information in the inventory (1 adopted cattle). If d22 selects a cattle for adoption according to the remaining adopted cattle information in the inventory (1 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is zero, and the method terminates execution. If d22 does not select a cattle for adoption according to the remaining adopted cattle information in the inventory (1 adopted cattle) and confirms it, it is determined that the remaining adopted cattle information in the inventory is 1, and so on.
[0075] If the remaining adoption cow information in the inventory at this time is the adoption cow information corresponding to 2 adoption cows, control d22 to display the remaining adoption cow information in the inventory (2 adoption cows). If d22 selects a cow for adoption based on the remaining adoption cow information in the inventory (2 adoption cows) and confirms it, then the remaining adoption cow information in the inventory is determined to be the adoption cow information corresponding to 1 adoption cow; if d22 does not select a cow for adoption based on the remaining adoption cow information in the inventory (2 adoption cows) and confirms it, then the remaining adoption cow information in the inventory is determined to be the adoption cow information corresponding to 2 adoption cows, and so on.
[0076] The method of the present invention can control the number of adopt cow requests in the first queue and the second queue by setting the pre-released number of adopt cows. When the number of adopt cow requests received first is equal to the second preset number, no more adopt cow requests will be received, thereby controlling the number of visits to adopt cow requests.
[0077] In addition, the method of the present invention ensures that only one cow can be selected or not selected at the same time by allowing the adopting cow terminals in the first queue and the second queue to select the adopted cows one by one, thereby avoiding the problem of too large a number of concurrent selections caused by the same cow being favored by many adopting cow terminal users and scrambling to grab the same cow.
[0078] In addition, by allowing the adoptive cow terminal users who receive the request first to choose the adopted cow first and have more choices than the adoptive cow terminal users who receive the request later (displaying more adoptive cow information remaining in the inventory), on the one hand, the enthusiasm of the adoptive cow terminal users to participate in the adoption is guaranteed, and they are more likely to choose the adopted cow of their choice, and on the other hand, a fair mechanism for adopting cows is guaranteed.
[0079] The remaining adopted cow information in the inventory is determined according to the actions performed by each adopted cow terminal in the first queue, including:
[0080] In response to each adopted cow terminal in the first queue performing a confirmation adoption action on the target cow selected for adoption based on the remaining adopted cow information in the displayed inventory, the target adopted cow information corresponding to the target cow is removed from the remaining adopted cow information in the inventory to obtain the updated remaining adopted cow information in the inventory; please refer to the above-mentioned relevant instructions and no further details will be given.
[0081] In response to each adopted cow terminal in the first queue performing the confirmation or non-adoption action according to the displayed information of the adopted cows remaining in the inventory, or failing to perform the confirmation action within the preset time, the remaining adopted cow information in the inventory remains unchanged. The preset time can be set independently according to the actual situation, and can be selected as 3 minutes. Taking d11 as an example, if the user of d11 does not confirm the adoption of any adopted cow within 3 minutes, it can be considered that the user of d11 has given up the adoption. By setting the preset time, the subsequent user of d12 can also avoid waiting too long.
[0082] In order to prevent d11 users from missing the opportunity to adopt a cow they want to adopt due to being overwhelmed by the choices or having a fear of choosing, a reminder can be given to d11 in the first 10 seconds before the end of the 3 minutes.
[0083] The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0084] The remaining adopted cow information in the displayed inventory is compared with the adopted cow preference information corresponding to each adopted cow terminal in the first queue for similarity, and the remaining adopted cow information in the optimized inventory is arranged and displayed in order of similarity from high to low in each adopted cow terminal in the first queue, so that each adopted cow terminal in the first queue can perform a confirmation adoption action on the target cow selected for adoption according to the remaining adopted cow information in the optimized inventory; taking d11 as an example, the corresponding adopted cow preference information may include that the type of real cow is grassland red cow, the weight is 300-350 kg, the age is 2 years, and the average daily milk production is 30-40 kg. The displayed remaining adopted cow information in the optimized inventory, for example, includes:
[0085] 1. Grassland Red Cow, weight 320 kg, age 2 years, average daily milk production 25 kg.
[0086] 2. Grassland Red Cow, weight 300 kg, age 1 year, average daily milk production 30 kg.
[0087] 3. Black and white dairy cow, weight 330 kg, age 2 years, average daily milk production 35 kg.
[0088] 4. Grassland Red Cow, weight 370 kg, age 2 years, average daily milk production 45 kg.
[0089] 5. Grassland Red Cow, weight 300 kg, age 1 year, average daily milk production 25 kg.
[0090] Items 1 to 5 are the remaining adopted cow information in the optimized sorted inventory arranged in descending order of similarity, which can make it more convenient for d11 users to select the target cow to adopt by browsing the information corresponding to items 1 to 5.
[0091] The adopted cattle preference information is input by the user corresponding to the adopted cattle terminal identifier in the pre-published adopted cattle information filling template. Each user who participates in adopting cattle needs to first download and install the ranch APP or follow the official account, and then fill in the adopted cattle preference information through the adopted cattle information filling template in the ranch APP or official account. It can ensure that the field content format of the adopted cattle preference information is consistent with the remaining adopted cattle information in the inventory for similarity comparison, thereby improving the accuracy of similarity calculation.
[0092] The data processing method for adopting cattle also includes:
[0093] In response to the attention field content confirmation action performed by each adoptable cow terminal in the first queue based on the displayed optimized sorted adoptable cow information remaining in the inventory, the adoptable cow information remaining in the inventory is screened to obtain the target adoptable cow information remaining in the inventory containing the confirmed attention field content; the attention field content can be determined according to user preferences. Referring to the above example, if user d11 selects an attention field "Grassland Red Cattle", the target adoptable cow information remaining in the inventory containing the confirmed attention field content is the target adoptable cow information remaining in the inventory with the first column being "Grassland Red Cattle".
[0094] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal in the first queue can perform the confirmation adoption action of the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory. The non-target adopted cattle information is the remaining adopted cattle information in the inventory corresponding to the first column "black and white dairy cow" or other cattle species (none in this example), and the remaining target adopted cattle information in the optimized sorted inventory is obtained as follows:
[0095] 1. Grassland Red Cow, weight 320 kg, age 2 years, average daily milk production 25 kg.
[0096] 2. Grassland Red Cow, weight 300 kg, age 1 year, average daily milk production 30 kg.
[0097] 3. Grassland Red Cow, weight 370 kg, age 2 years, average daily milk production 45 kg.
[0098] 4. Grassland Red Cow, weight 300 kg, age 1 year, average daily milk production 25 kg.
[0099] The attention field can be one or more. Taking two as an example, if the user of d11 selects an attention field "Grassland Red Cattle" and another attention field "Age is 2 years", the remaining target adoption cattle information in the inventory containing the confirmed attention field content is the remaining target adoption cattle information in the inventory with the first column being "Grassland Red Cattle" and the third column being "Age is 2 years".
[0100] The non-target adopted cattle information is the remaining adopted cattle information in the inventory corresponding to the first column of "black and white dairy cow" or other types (none in this example), and the third column of "age 1 year" or other ages (none in this example). The remaining target adopted cattle information in the optimized sorted inventory is:
[0101] 1. Grassland Red Cow, weight 320 kg, age 2 years, average daily milk production 25 kg.
[0102] 2. Grassland Red Cow, weight 370 kg, age 2 years, average daily milk production 45 kg.
[0103] It is understandable that the remaining target cow information in the optimized sorted inventory is more concise and in line with user preferences, which further facilitates users to quickly and accurately select the target cows they want to adopt.
[0104] The remaining adopted cow information in the inventory is determined based on the actions performed by each adopted cow terminal traversed in the second queue, including:
[0105] In response to each cow adoption terminal traversed in the second queue performing a confirmation adoption action on the target cow selected for adoption based on the remaining adoption cow information in the displayed inventory, the target cow adoption information corresponding to the target cow is removed from the remaining adoption cow information in the inventory to obtain the updated remaining adoption cow information in the inventory; the relevant instructions for each cow adoption terminal in the first queue mentioned above can be referred to and will not be repeated here.
[0106] In response to each adopted cow terminal traversed in the second queue performing a confirmation or non-adoption action according to the displayed remaining adopted cow information in the inventory, or failing to perform the confirmation adoption action within the preset time, the remaining adopted cow information in the inventory remains unchanged. Please refer to the relevant description of each adopted cow terminal in the first queue above, and no further details will be given.
[0107] The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0108] The adopted cow information remaining in the inventory is displayed and compared with the adopted cow preference information corresponding to each adopted cow terminal traversed in the second queue for similarity, and the adopted cow information remaining in the optimized inventory is arranged and displayed in order from high to low in each adopted cow terminal traversed in the second queue, so that each adopted cow terminal traversed in the second queue can perform the confirmation adoption action of the target cow chosen for adoption according to the adopted cow information remaining in the optimized inventory; the relevant instructions for each adopted cow terminal in the first queue mentioned above can be referred to, and no further details will be given.
[0109] The adopt cow preference information is input by the user corresponding to the adopt cow terminal identifier in the pre-published adopt cow information filling template. Please refer to the relevant description of each adopt cow terminal in the first queue above, and no further details will be given.
[0110] The data processing method for adopting cattle also includes:
[0111] In response to the attention field content confirmation action performed by each adoptive cow terminal traversed in the second queue based on the remaining adopted cow information in the displayed optimized sorted inventory, the remaining adopted cow information in the inventory is screened to obtain the remaining target adopted cow information in the inventory containing the confirmed attention field content; the relevant instructions for each adoptive cow terminal in the first queue mentioned above can be referred to and no further details are given.
[0112] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal traversed in the second queue can perform the confirmation adoption action of the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory. The relevant description of each adopted cattle terminal in the first queue can be referred to above, and no further description is given.
[0113] The data processing method for adopting a cow provided by an embodiment of the present invention receives an adopting cow request sent by an adopting cow terminal, adds the first target adopting cow request whose number is equal to the first preset number to the first queue, and adds the second target adopting cow request whose number is equal to the second preset number to the second queue; wherein the first preset number is equal to the pre-released number of adopted cows, the second preset number is determined according to the pre-released number of adopted cows, the first target adopting cow requests in the first queue are sorted in sequence according to the chronological order of receiving time, and the second target adopting cow requests in the second queue are sorted in sequence according to the chronological order of receiving time; the adopting cow request carries an adopting cow terminal identifier; the first adopting cow terminal identifier in the first queue is obtained from the first queue, the first adopting cow terminal in the first queue is controlled to display the remaining adopting cow information in the inventory, the first adopting cow terminal in the first queue executes an action to determine the remaining adopting cow information in the inventory, and periodically executes the control of the first queue. The next adopted cow terminal displays the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the first queue, until all the cattle terminal identifiers in the first queue are traversed; if it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the first adopted cow terminal in the second queue executes an action to determine the remaining adopted cow information in the inventory, and periodically controls the next adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the second queue, until the number of adopted cows remaining in the inventory is zero, which can reduce the data processing pressure on the ranch server during the adoption of cows, and facilitate the adoption of cows users to choose their favorite cows for adoption.
[0114] Further, according to each adopted cow terminal in the first queue executing an action, the remaining adopted cow information in the inventory is determined, including:
[0115] In response to each adopted cow terminal in the first queue performing a confirmation adoption action on the target cow selected for adoption based on the remaining adopted cow information in the displayed inventory, the target adopted cow information corresponding to the target cow is removed from the remaining adopted cow information in the inventory to obtain the updated remaining adopted cow information in the inventory; the above-mentioned embodiment can be referred to for description and will not be repeated here.
[0116] In response to each adopted cow terminal in the first queue performing a confirmation or non-adoption action according to the displayed remaining adopted cow information in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged. The above-mentioned embodiments can be referred to for explanation and will not be repeated here.
[0117] Furthermore, the adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0118] The adopted cow information remaining in the inventory is displayed and compared with the adopted cow preference information corresponding to each adopted cow terminal in the first queue for similarity, and the adopted cow information remaining in the optimized inventory is arranged and displayed in order from high to low in each adopted cow terminal in the first queue, so that each adopted cow terminal in the first queue can perform the confirmation adoption action of the target cow selected for adoption according to the adopted cow information remaining in the optimized inventory; the above-mentioned embodiment can be referred to for description and will not be repeated here.
[0119] The cow adoption preference information is input by the user corresponding to the cow adoption terminal identifier in a pre-published cow adoption information filling template. The above-mentioned embodiment can be referred to for explanation and will not be described in detail.
[0120] Furthermore, the data processing method for adopting cattle also includes:
[0121] In response to the attention field content confirmation action performed by each adopted cow terminal in the first queue based on the displayed optimized sorted adopted cow information remaining in the inventory, the adopted cow information remaining in the inventory is screened to obtain the target adopted cow information remaining in the inventory containing the confirmed attention field content; the above-mentioned embodiment can be referred to for description and will not be repeated here.
[0122] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal in the first queue can perform the confirmation adoption action of the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory. The above-mentioned embodiment can be referred to for explanation and will not be repeated here.
[0123] Further, the remaining adopted cow information in the inventory is determined according to the actions performed by each adopted cow terminal traversed in the second queue, including:
[0124] In response to each adopted cow terminal traversed in the second queue performing a confirmation adoption action on the target cow selected for adoption based on the remaining adopted cow information in the displayed inventory, the target adopted cow information corresponding to the target cow is removed from the remaining adopted cow information in the inventory to obtain the updated remaining adopted cow information in the inventory; the description can be made with reference to the above embodiment and will not be repeated here.
[0125] In response to each adopted cow terminal traversed in the second queue performing a confirmation or non-adoption action according to the displayed remaining adopted cow information in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged. The above-mentioned embodiments can be referred to for explanation and will not be repeated here.
[0126] Furthermore, the adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes:
[0127] The adopted cow information remaining in the displayed inventory is compared with the adopted cow preference information corresponding to each adopted cow terminal traversed in the second queue for similarity, and the adopted cow information remaining in the optimized inventory is arranged and displayed in order from high to low in each adopted cow terminal traversed in the second queue, so that each adopted cow terminal traversed in the second queue can perform the confirmation adoption action of the target cow selected for adoption according to the adopted cow information remaining in the optimized inventory; the above-mentioned embodiment can be referred to for description and will not be repeated here.
[0128] The cow adoption preference information is input by the user corresponding to the cow adoption terminal identifier in a pre-published cow adoption information filling template. The above-mentioned embodiment can be referred to for explanation and will not be described in detail.
[0129] Furthermore, the data processing method for adopting cattle also includes:
[0130] In response to the attention field content confirmation action performed by each adopted cow terminal traversed in the second queue according to the remaining adopted cow information in the displayed optimized sorted inventory, the remaining adopted cow information in the inventory is screened to obtain the remaining target adopted cow information in the inventory containing the confirmed attention field content; the above-mentioned embodiment can be referred to for description and will not be repeated here.
[0131] The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal traversed in the second queue can perform the confirmation adoption action of the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory. The above-mentioned embodiment can be referred to for explanation and will not be repeated here.
[0132] Figure 2 FIG. 1 is a schematic diagram of a data processing device for adopting a cow according to an embodiment of the present invention. Figure 2 As shown, the data processing device for adopting a cow provided in an embodiment of the present invention includes a joining unit 201, a first control unit 202 and a second control unit 203, wherein:
[0133] The adding unit 201 is used to receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number and which is received first to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number and which is received second to the second queue; wherein, the first preset number is equal to the pre-released number of adopted cows, the second preset number is determined according to the pre-released number of adopted cows, the first target adopt-a-cow requests in the first queue are sorted in sequence according to the chronological order of receiving time, and the second target adopt-a-cow requests in the second queue are sorted in sequence according to the chronological order of receiving time; the adopt-a-cow request carries the adopt-a-cow terminal identifier; the first control unit 202 is used to obtain the first adopt-a-cow terminal identifier in the first queue from the first queue, control the first adopt-a-cow terminal in the first queue to display the remaining adopt-a-cow information in the inventory, and perform an action according to the first adopt-a-cow terminal in the first queue to determine the remaining inventory. Adopted cattle information, periodically execute and control the next adopted cattle terminal in the first queue to display the remaining adopted cattle information in the inventory after confirmation, and determine the remaining adopted cattle information in the inventory according to the next adopted cattle terminal in the first queue, until all cattle terminal identifiers in the first queue are traversed; the second control unit 203 is used to obtain the first adopted cattle terminal identifier in the second queue from the second queue if it is determined that the number of adopted cattle remaining in the inventory is not zero, control the first adopted cattle terminal in the second queue to display the remaining adopted cattle information in the inventory, determine the remaining adopted cattle information in the inventory according to the first adopted cattle terminal in the second queue, periodically execute and control the next adopted cattle terminal in the second queue to display the remaining adopted cattle information in the inventory after confirmation, and determine the remaining adopted cattle information in the inventory according to the next adopted cattle terminal in the second queue, until the number of adopted cattle remaining in the inventory is zero.
[0134] Specifically, the adding unit 201 in the device is used to receive the adopt cattle request sent by the adopt cattle terminal, add the first target adopt cattle request whose number is equal to the first preset number to the first queue, and add the second target adopt cattle request whose number is equal to the second preset number to the second queue; wherein, the first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adopt cattle request in the first queue is sorted in sequence according to the chronological order of receiving time, and the second target adopt cattle request in the second queue is sorted in sequence according to the chronological order of receiving time; the adopt cattle request carries the adopt cattle terminal identifier; the first control unit 202 is used to obtain the first adopt cattle terminal identifier in the first queue from the first queue, control the first adopt cattle terminal in the first queue to display the remaining adopt cattle information in the inventory, and perform an action to determine the inventory according to the first adopt cattle terminal in the first queue. The remaining adopted cow information in the inventory is periodically controlled, and the remaining adopted cow information in the inventory after the determination is completed is determined according to the next adopted cow terminal in the first queue. The action is performed to determine the remaining adopted cow information in the inventory until all the cattle terminal identifiers in the first queue are traversed; the second control unit 203 is used to obtain the first adopted cow terminal identifier in the second queue from the second queue if it is determined that the number of adopted cows remaining in the inventory is not zero, control the first adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory, perform an action to determine the remaining adopted cow information in the inventory according to the first adopted cow terminal in the second queue, periodically control the next adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory after the determination is completed, and perform an action to determine the remaining adopted cow information in the inventory according to the next adopted cow terminal in the second queue, until the remaining number of adopted cows in the inventory is zero.
[0135] The data processing device for adopting a cow provided by an embodiment of the present invention receives an adopting cow request sent by an adopting cow terminal, adds the first target adopting cow request whose number is equal to the first preset number to the first queue, and adds the second target adopting cow request whose number is equal to the second preset number to the second queue; wherein the first preset number is equal to the pre-released number of adopted cows, the second preset number is determined according to the pre-released number of adopted cows, the first target adopting cow requests in the first queue are sorted in sequence according to the chronological order of receiving time, and the second target adopting cow requests in the second queue are sorted in sequence according to the chronological order of receiving time; the adopting cow request carries an adopting cow terminal identifier; the first adopting cow terminal identifier in the first queue is obtained from the first queue, the first adopting cow terminal in the first queue is controlled to display the remaining adopting cow information in the inventory, the remaining adopting cow information in the inventory is determined according to the execution of an action by the first adopting cow terminal in the first queue, and the control of the first queue in the first queue is periodically executed. The next adopted cow terminal displays the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the first queue, until all the cattle terminal identifiers in the first queue are traversed; if it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the first adopted cow terminal in the second queue executes an action to determine the remaining adopted cow information in the inventory, and periodically controls the next adopted cow terminal in the second queue to display the remaining adopted cow information in the inventory after confirmation, and determines the remaining adopted cow information in the inventory according to the next adopted cow terminal in the second queue, until the number of adopted cows remaining in the inventory is zero, which can reduce the data processing pressure on the ranch server during the adoption of cows, and facilitate the adoption of cows users to choose their favorite cows for adoption.
[0136] The embodiment of the data processing device for adopting cattle provided in the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned method embodiments.
[0137] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 3 As shown, the electronic device includes: a processor (processor) 301, a memory (memory) 302 and a bus 303;
[0138] The processor 301 and the memory 302 communicate with each other via a bus 303;
[0139] The processor 301 is used to call the program instructions in the memory 302 to execute the methods provided by the above method embodiments, for example, including:
[0140] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0141] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0142] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0143] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0144] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:
[0145] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0146] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0147] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0148] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0149] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:
[0150] Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue;
[0151] The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier;
[0152] Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed;
[0153] If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
[0154] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0155] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0159] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A data processing method for adopting cattle, It is characterized in that include: Receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue; The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier; Obtaining the first adopting cattle terminal identifier in the first queue from the first queue, controlling the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, executing an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically controlling the next adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory after the determination, and executing an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed; If it is determined that the number of adopted cows remaining in the inventory is not zero, the first adopted cow terminal identifier in the second queue is obtained from the second queue, the first adopted cow terminal in the second queue is controlled to display the remaining adopted cow information in the inventory, and the remaining adopted cow information in the inventory is determined according to the first adopted cow terminal in the second queue. The next adopted cow terminal in the second queue is periodically controlled to display the determined remaining adopted cow information in the inventory, and the next adopted cow terminal in the second queue is executed to determine the remaining adopted cow information in the inventory, until the number of adopted cows remaining in the inventory is zero.
2. The data processing method for adopting a cow according to claim 1, It is characterized in that The remaining adopted cow information in the inventory is determined according to the actions performed by each adopted cow terminal in the first queue, including: In response to each adopted cattle terminal in the first queue confirming the adoption action of the target cattle selected for adoption according to the displayed adopted cattle information remaining in the inventory, the target adopted cattle information corresponding to the target cattle is removed from the adopted cattle information remaining in the inventory to obtain updated adopted cattle information remaining in the inventory; In response to each adopted cow terminal in the first queue performing a confirmation or non-adoption action according to the displayed information of the adopted cows remaining in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged.
3. The data processing method for adopting a cow according to claim 2, It is characterized in that The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes: The remaining adopted cattle information in the inventory is displayed and compared with the adopted cattle preference information corresponding to each adopted cattle terminal in the first queue for similarity, and the remaining adopted cattle information in the inventory with optimized sorting is arranged and displayed in order from high to low in each adopted cattle terminal in the first queue, so that each adopted cattle terminal in the first queue can perform a confirmation adoption action on the target cattle selected for adoption according to the remaining adopted cattle information in the inventory with optimized sorting; The adopt-a-cow preference information is input by a user corresponding to the adopt-a-cow terminal identifier in a pre-published adopt-a-cow information filling template.
4. The data processing method for adopting a cow according to claim 3, It is characterized in that The data processing method for adopting cattle also includes: In response to the attention field content confirmation action performed by each adopted cattle terminal in the first queue according to the displayed optimized sorted adopted cattle information remaining in the inventory, the adopted cattle information remaining in the inventory is screened to obtain the target adopted cattle information remaining in the inventory containing the confirmed attention field content; The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal in the first queue can perform the confirmation adoption action on the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory.
5. The data processing method for adopting a cow according to claim 1, It is characterized in that The remaining adopted cow information in the inventory is determined based on the actions performed by each adopted cow terminal traversed in the second queue, including: In response to each adopted cattle terminal traversed in the second queue performing a confirmation adoption action on the target cattle selected for adoption according to the displayed adopted cattle information remaining in the inventory, the target adopted cattle information corresponding to the target cattle is removed from the adopted cattle information remaining in the inventory to obtain updated adopted cattle information remaining in the inventory; In response to each adopted cow terminal traversed in the second queue performing a confirmation or non-adoption action according to the displayed remaining adopted cow information in the inventory, or failing to perform the confirmation adoption action within a preset time, the remaining adopted cow information in the inventory remains unchanged.
6. The data processing method for adopting a cow according to claim 5, It is characterized in that The adopt-a-cow request also carries the adopt-a-cow preference information corresponding to the adopt-a-cow terminal identifier; accordingly, the adopt-a-cow data processing method further includes: The remaining adopted cattle information in the displayed inventory is compared with the adopted cattle preference information corresponding to each adopted cattle terminal traversed in the second queue for similarity, and the remaining adopted cattle information in the inventory with optimized sorting is arranged and displayed in order from high to low in each adopted cattle terminal traversed in the second queue, so that each adopted cattle terminal traversed in the second queue can perform a confirmation adoption action on the target cattle selected for adoption according to the remaining adopted cattle information in the inventory with optimized sorting; The adopt-a-cow preference information is input by a user corresponding to the adopt-a-cow terminal identifier in a pre-published adopt-a-cow information filling template.
7. The data processing method for adopting a cow according to claim 6, It is characterized in that The data processing method for adopting cattle also includes: In response to the attention field content confirmation action performed by each adopted cow terminal traversed in the second queue according to the displayed optimized sorted adopted cow information remaining in the inventory, the adopted cow information remaining in the inventory is screened to obtain the target adopted cow information remaining in the inventory containing the confirmed attention field content; The non-target adopted cattle information is removed from the remaining adopted cattle information in the optimized sorted inventory to obtain the remaining target adopted cattle information in the optimized sorted inventory, so that each adopted cattle terminal traversed in the second queue can perform the confirmation adoption action on the target cattle selected for adoption according to the remaining target adopted cattle information in the optimized sorted inventory.
8. A data processing device for adopting cattle, It is characterized in that include: A adding unit is used to receive the adopt-a-cow request sent by the adopt-a-cow terminal, add the first target adopt-a-cow request whose number is equal to the first preset number to the first queue, and add the second target adopt-a-cow request whose number is equal to the second preset number to the second queue; The first preset number is equal to the pre-released number of adopted cattle, the second preset number is determined according to the pre-released number of adopted cattle, the first target adoption cattle requests in the first queue are sorted in the order of reception time, and the second target adoption cattle requests in the second queue are sorted in the order of reception time; the adoption cattle request carries the adoption cattle terminal identifier; A first control unit is used to obtain the first adopting cattle terminal identifier in the first queue from the first queue, control the first adopting cattle terminal in the first queue to display the remaining adopting cattle information in the inventory, perform an action according to the first adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, periodically control the next adopting cattle terminal in the first queue to display the determined remaining adopting cattle information in the inventory, and perform an action according to the next adopting cattle terminal in the first queue to determine the remaining adopting cattle information in the inventory, until all cattle raising terminal identifiers in the first queue are traversed; The second control unit is used to obtain the first adopted cow terminal identifier in the second queue from the second queue if it is determined that the number of adopted cows remaining in the inventory is not zero, control the first adopted cow terminal in the second queue to display the adopted cow information remaining in the inventory, perform actions according to the first adopted cow terminal in the second queue to determine the adopted cow information remaining in the inventory, periodically control the next adopted cow terminal in the second queue to display the determined adopted cow information remaining in the inventory, and perform actions according to the next adopted cow terminal in the second queue to determine the adopted cow information remaining in the inventory, until the number of adopted cows remaining in the inventory is zero.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
