Farming cost data processing method, device, computer equipment and storage medium
By obtaining the pending event identification and target breeding nodes and determining and setting target processing rules, the problem of inaccurate processing of breeding cost data in traditional technology is solved, the accuracy and efficiency of processing of breeding cost data is improved, and higher automation is achieved degree.
Patent Information
- Application Number
- CN202410652191.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-05-23
AI Technical Summary
When traditional manufacturing cost accounting systems process breeding cost data, they cannot accurately match manufacturing links and breeding nodes, resulting in low accuracy in processing breeding cost data.
By obtaining the pending event identifier and target breeding node, determining the target processing rules, creating a page based on the processing rules to set the target processing rules, which is used to transfer the data from the source cost account to the cost account when carrying forward the cost event, and increase the breeding cost. Data processing accuracy and efficiency.
It improves the accuracy of data processing of breeding costs, reduces the need for manual adjustments, improves processing efficiency, and the accounting organization can set processing rules that meet the needs on its own, avoiding the necessity of developers to modify in the background.
Smart Images

Figure CN118377807B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment, storage medium and computer program product for processing breeding cost data. Background Art
[0002] my country is the world's largest pig farming and consumption country, and the pig farming industry is in the process of developing from decentralization to scale and intensiveness. In order to assist pig farming companies in achieving better cost management, a flexible pig farming cost accounting solution with sufficiently fine calculation granularity and high degree of automation is needed.
[0003] In traditional technology, the standard manufacturing cost accounting system is used to collect and allocate breeding cost data. Since the manufacturing links in the standard manufacturing industry do not match the breeding nodes in the breeding process, the breeding cost data of the breeding nodes are processed according to the collection and allocation rules corresponding to the manufacturing links, resulting in low accuracy in the processing of breeding cost data. Summary of the invention
[0004] Based on this, it is necessary to provide a breeding cost data processing method, device, computer equipment, computer readable storage medium and computer program product that can improve the accuracy of breeding cost data processing in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for processing breeding cost data. The method comprises:
[0006] Obtaining the pending event identifier corresponding to the target object and the target breeding node corresponding to the pending event identifier;
[0007] Based on the event identifier to be processed and the target breeding node, determine the target processing rule corresponding to the event identifier to be processed; the target processing rule is obtained based on the processing rule creation page setting;
[0008] In the case where the pending event corresponding to the pending event identifier is a carry-over cost event, based on the entry cost account, source breeding node and source cost account in the target processing rule, the breeding cost data corresponding to the target object at the source breeding node in the source cost account is transferred to the entry cost account to obtain the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account.
[0009] In a second aspect, the present application also provides a breeding cost data processing device. The device comprises:
[0010] An acquisition module, used to acquire an event identifier to be processed corresponding to a target object, and a target breeding node corresponding to the event identifier to be processed;
[0011] A determination module, used to determine a target processing rule corresponding to the event identifier to be processed based on the event identifier to be processed and the target breeding node; the target processing rule is obtained based on the processing rule creation page setting;
[0012] A processing module is used to transfer the breeding cost data corresponding to the target object at the source breeding node in the source cost account to the entry cost account based on the entry cost account, source breeding node and source cost account in the target processing rule when the event to be processed corresponding to the event to be processed identifier is a carry-over cost event, so as to obtain the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account.
[0013] In a third aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0015] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0016] The above-mentioned breeding cost data processing method, device, computer equipment, storage medium and computer program product determine the target processing rule corresponding to the pending event identifier based on the pending event identifier and the target breeding node. The target processing rule is set based on the processing rule creation page, that is, the target processing rule is set based on the actual needs of the accounting organization. The target processing rule meets the needs of the accounting organization. The breeding cost data is processed using the target processing rule, and there is no need to manually adjust the breeding cost data again. The target processing rule corresponds to the target breeding node and the pending event identifier. The breeding cost data corresponding to the pending event identifier is processed using the target processing rule, which is more in line with the changes in the breeding cost data caused by the pending event corresponding to the pending event identifier, thereby improving the accuracy of the breeding cost data processing. Moreover, the accounting organization can set the target processing rule that meets the needs through the processing rule creation page, which improves the efficiency of breeding cost data processing compared to the need for developers to modify it in the background. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is an application environment diagram of a breeding cost data processing method according to an embodiment;
[0018] FIG2 is a schematic flow chart of a method for processing breeding cost data in one embodiment;
[0019] FIG3 is a schematic diagram of a processing rule creation page in one embodiment;
[0020] FIG4 is a schematic diagram of a flow chart of a computing node determination step according to an embodiment;
[0021] FIG5 is a schematic diagram of a flow chart of a computing node determination step in another embodiment;
[0022] FIG6 is a flow chart of a process for determining a rule set in one embodiment;
[0023] FIG7 is a schematic diagram of an event list creation page in one embodiment;
[0024] FIG8 is a schematic diagram of the correspondence between candidate event identifiers and farming actions in one embodiment;
[0025] FIG9 is a schematic diagram of a candidate event logic setting page in one embodiment;
[0026] FIG10 is a schematic diagram of a page for creating an association between a breeding node and a cost account in one embodiment;
[0027] FIG11 is a schematic diagram of the association relationship between a breeding node and a cost account in one embodiment;
[0028] FIG12 is a flowchart of automatic transfer of breeding cost data in one embodiment;
[0029] FIG13 is a schematic diagram of a breeding cost data processing process in one embodiment;
[0030] FIG14 is a timing diagram of breeding cost data processing in one embodiment;
[0031] FIG15 is a schematic diagram of a method for caching breeding cost data in one embodiment;
[0032] FIG16 is a block diagram of a breeding cost data processing device according to an embodiment;
[0033] FIG. 17 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] The breeding cost data processing method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Both the terminal and the server can be used alone to execute the breeding cost data processing method provided in the embodiment of the present application. The terminal and the server can also be used in collaboration to execute the breeding cost data processing method provided in the embodiment of the present application. For example, the server obtains the pending event identifier corresponding to the target object, and the target breeding node corresponding to the pending event identifier; based on the pending event identifier and the target breeding node, the target processing rule corresponding to the pending event identifier is determined; the target processing rule is obtained based on the processing rule creation page setting; when the pending event corresponding to the pending event identifier is a carryover cost event, based on the entry cost account, source breeding node and source cost account in the target processing rule, the breeding cost data corresponding to the target object in the source breeding node in the source cost account is transferred to the entry cost account, and the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account are obtained. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0036] In one embodiment, as shown in FIG2 , a method for processing breeding cost data is provided, which can be applied to a computer device, which can be a terminal or a server, and can be executed by the terminal or the server itself alone, or can be implemented through interaction between the terminal and the server. This embodiment is described by taking the method applied to a computer device as an example, and includes steps 202 to 206.
[0037] Step 202, obtaining the to-be-processed event identifier corresponding to the target object and the target breeding node corresponding to the to-be-processed event identifier.
[0038] Among them, the target object refers to the object that the breeding cost data is generated, that is, the breeding object. The target object can be a group of breeding objects or a single breeding object. For example, the target object can be pigs from the same batch or a single pig, or the target object can be ducks from the same batch or a single duck. The pending event identifier refers to the identifier of the event that needs to be processed for breeding cost data. It can be understood that the pending event identifier refers to the name of the event that needs to be processed for breeding cost data. The pending event identifier refers to a string that represents the pending event, which can be composed of numbers, letters, words, and symbols. The pending event refers to the event that generates changes in breeding cost data, that is, the event that needs to be processed for breeding cost data. For example, the pending event identifiers are conversion of reserve sows to production sows, sow weaning, transfer to reserve, and procurement. A breeding node refers to the breeding stage of a breeding object, which can be understood as a cost object, that is, the entity that collects and allocates various breeding costs in the breeding process, such as reserve boars, reserve gilts, production boars, production sows, suckling piglets, nursery pigs and fattening pigs, etc. A target breeding node refers to the breeding node where the target object generates a pending event corresponding to the pending event identifier. For example, if the pending event corresponding to the pending event identifier is the conversion of reserve gilts to production sows, then the breeding stage where the target object generates the pending event is reserve gilts, and the target breeding node is reserve gilts.
[0039] Exemplarily, the computer device obtains an event identifier to be processed corresponding to the target object from the breeding system, and determines a target breeding node corresponding to the event identifier to be processed based on the event identifier to be processed.
[0040] In one embodiment, based on the pending event identifier, the target breeding node corresponding to the pending event identifier is determined: the transfer-out cost object corresponding to the pending event identifier is determined as the target breeding node corresponding to the pending event identifier; the pending event identifier corresponds to the transfer-out cost object, the transfer-out cost object status, the transfer-out cost status, the transfer-in cost object, the transfer-in cost object status and the transfer-in cost status.
[0041] Step 204, based on the event identifier to be processed and the target breeding node, determine the target processing rule corresponding to the event identifier to be processed; the target processing rule is obtained based on the processing rule creation page settings.
[0042] Among them, the target processing rule refers to the logical rule for breeding cost processing. The processing rule creation page refers to the page used to create a set of processing rules corresponding to the candidate breeding node, and the processing rule creation page includes but is not limited to breeding node settings, marking cost event settings, and carry-over cost event settings. For example, the processing rule creation page shown in Figure 3 includes breeding node settings, marking cost event settings, creating biological asset events settings, cost carry-over semen event settings, and carry-over cost event settings.
[0043] Exemplarily, after obtaining the identifier of the event to be processed and the target breeding node, the computer device determines the target processing rule corresponding to the identifier of the event to be processed based on the identifier of the event to be processed and the target breeding node; the target processing rule is obtained based on the processing rule creation page setting, that is, the target processing rule is obtained by different cost organizations through the processing rule creation page setting according to actual conditions.
[0044] Step 206, when the pending event corresponding to the pending event identifier is a carry-over cost event, based on the entry cost account, source breeding node and source cost account in the target processing rule, the breeding cost data corresponding to the target object in the source cost account at the source breeding node is transferred to the entry cost account, and the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account are obtained.
[0045] Among them, the carryover cost event refers to the event that requires the carryover of breeding cost data. It can be understood that when the carryover cost event occurs, the breeding cost data needs to be carried over from one cost account to another cost account. The entry cost account refers to the account into which the breeding cost data is transferred, and the source cost account refers to the account from which the breeding cost data is transferred. The source breeding node refers to the breeding node corresponding to the source cost account. The source breeding node can be the target breeding node, or it can be the breeding stage of the target object after the pending event corresponding to the pending event identifier occurs. For example, if the target breeding node is a production sow, if the pending event identifier is transfer to production, the source breeding node is an immature sow; if the pending event identifier is death, the source breeding node is a production sow.
[0046] Exemplarily, the computer device obtains the entry cost account, source breeding node and source cost account in the target processing rule, obtains the breeding cost data corresponding to the target object in the source cost account at the source breeding node, transfers the breeding cost data corresponding to the target object in the source cost account at the source breeding node to the entry cost account, adds the historical breeding cost data of the target object in the entry cost account to the transferred breeding cost data, and obtains the current breeding cost data of the target object in the entry cost account; subtracts the transferred breeding cost data from the historical breeding cost data of the target object in the source cost account to obtain the current breeding cost data of the target object in the source cost account.
[0047] In the above-mentioned breeding cost data processing method, the target processing rule corresponding to the pending event identifier is determined based on the pending event identifier and the target breeding node. The target processing rule is obtained based on the processing rule creation page setting, that is, the target processing rule is set based on the actual needs of the accounting organization. The target processing rule meets the needs of the accounting organization. The breeding cost data is processed using the target processing rule, and there is no need to manually adjust the breeding cost data again. The target processing rule corresponds to the target breeding node and the pending event identifier. The breeding cost data corresponding to the pending event identifier is processed using the target processing rule, which is more in line with the changes in the breeding cost data caused by the pending event corresponding to the pending event identifier, thereby improving the accuracy of the breeding cost data processing. Moreover, the accounting organization can set the target processing rule that meets the needs through the processing rule creation page, which improves the efficiency of breeding cost data processing compared to the need for developers to modify it in the background.
[0048] In one embodiment, based on the event identifier to be processed and the target breeding node, determining the target processing rule corresponding to the event identifier to be processed includes:
[0049] The processing rule set corresponding to the candidate breeding node that is the same as the target breeding node is determined as the target processing rule set corresponding to the target breeding node; the target processing rule set includes at least one candidate processing rule corresponding to a candidate event identifier; the candidate processing rule corresponding to the candidate event identifier that is the same as the event identifier to be processed in the target processing rule set is determined as the target processing rule.
[0050] Among them, the candidate breeding node refers to a pre-set breeding node, the number of candidate breeding nodes is multiple, and the candidate breeding nodes include various breeding nodes of the breeding object. The candidate breeding nodes can be set according to actual needs. For example, the breeding object is pigs, and the candidate breeding nodes include but are not limited to reserve boars, reserve gilts, production boars, production sows, suckling piglets, nursery pigs and fattening pigs. The processing rule set refers to a set of candidate processing rules corresponding to multiple candidate event identifiers. The processing rule set corresponds to the candidate breeding node one by one, that is, one candidate breeding node corresponds to one processing rule set. The candidate event identifier refers to a pre-set event identifier, and the number of candidate event identifiers is multiple. For example, the breeding object is pigs, and the candidate event identifiers include but are not limited to procurement, sales within the group, sales outside the group, transfer to reserve-transfer out, transfer to reserve, transfer to reserve-transfer in, reserve to production, reserve gilt to production sow, reserve boar to production boar, sow weaning and piglet weaning. The candidate event identifier is obtained based on the event list creation page setting, and the accounting organization can be set according to actual needs. The candidate processing rule refers to the processing rule of the breeding cost data corresponding to the candidate event identifier, and the candidate processing rule is obtained based on the settings of the processing rule creation page.
[0051] Exemplarily, the computer device obtains multiple candidate breeding nodes corresponding to the target organization, determines the processing rule set corresponding to the candidate breeding nodes that are the same as the target breeding node as the target processing rule set corresponding to the target breeding node, and determines the candidate processing rules corresponding to the candidate event identifiers that are the same as the event identifier to be processed in the target processing rule set as the target processing rules.
[0052] In this embodiment, the processing rule set corresponding to the candidate breeding node that is the same as the target breeding node is determined as the target processing rule set corresponding to the target breeding node, and the candidate processing rules corresponding to the candidate event identifier that is the same as the event identifier to be processed in the target processing rule set are determined as the target processing rules, that is, the target processing rules correspond to the target breeding node and the event identifier to be processed, and the target processing rules can be determined through the target breeding node and the event identifier to be processed, which provides a processing logic for the subsequent processing of the breeding cost data of the target breeding node, that is, it provides a processing method for the subsequent processing of the breeding cost data of the target breeding node.
[0053] In one embodiment, as shown in FIG4 , when the number of target objects counted is multiple, before obtaining the pending event identifier corresponding to the target object and the target breeding node corresponding to the pending event identifier, the following is further included:
[0054] Step 402, obtaining a breeding data processing request corresponding to the target object; the breeding data processing request is used to instruct processing of breeding cost data of the target object.
[0055] The breeding data processing request refers to an instruction for instructing to process the breeding cost data of the target object.
[0056] Exemplarily, the computer device obtains a breeding data processing request corresponding to the target object.
[0057] Step 404: When the statistical quantity of the target objects is greater than the quantity threshold, the breeding data processing request is saved in the first queue; the breeding data processing request in the first queue is processed by the first computing node.
[0058] Among them, the statistical quantity refers to the total number of target objects, for example, the target objects include 10 batches of fattening pigs, or the target objects include 100 production sows. The quantity threshold refers to the minimum statistical quantity for saving the breeding data processing request in the first queue, and the quantity threshold can be set according to actual needs. The first queue refers to the queue corresponding to the large resource node, and it can be understood that the breeding data processing request saved in the first queue is processed by the large resource node. The first computing node refers to a large resource node, for example, the memory of the first computing node is 30G or 50G.
[0059] Exemplarily, the computer device compares the statistical number of target objects with a quantity threshold. If the statistical number is greater than the quantity threshold, the breeding data processing request is saved in the first queue. When the breeding data processing request is at the head of the first queue, the first message queue sends the breeding data processing request to the idle first computing node, and the idle first computing node processes the breeding data processing request.
[0060] Step 406, when the statistical number of target objects is less than or equal to the quantity threshold, the breeding data processing request is saved in the second queue; the breeding data processing request in the second queue is processed by the second computing node, and the memory of the first computing node is greater than the memory of the second computing node.
[0061] The second queue refers to a queue corresponding to a small resource node, and it can be understood that the farming data processing request stored in the second queue is processed by the small resource node. The second computing node refers to a small resource node, for example, the memory of the first computing node is 5G or 10G.
[0062] Exemplarily, the computer device compares the statistical number of target objects with a quantity threshold. If the statistical number is less than or equal to the quantity threshold, the breeding data processing request is saved in the second queue. When the breeding data processing request is at the head of the second queue, the second message queue sends the breeding data processing request to an idle second computing node, and the idle second computing node processes the breeding data processing request.
[0063] In one embodiment, as shown in FIG5 , when the computer device receives farming data processing requests from multiple accounting organizations at the same time, for each farming data processing request, the computer device obtains the target object in the farming data processing request, obtains the statistical quantity of the target object, and when the statistical quantity of the target object is greater than the quantity threshold, determines the accounting organization corresponding to the farming data processing request as a large-volume accounting organization, and saves the farming data processing request corresponding to the accounting organization in the VIP (Very Important Person, very important) message queue, when the above-mentioned breeding data processing request is at the head of the VIP message queue, the VIP message queue sends the breeding data processing request to the idle large resource computing node, and the idle large resource computing node processes the breeding cost data of the target breeding node based on the target processing rule. The memory of the large resource computing node can be 30G; when the number of target objects is equal to or less than the number threshold, the breeding data processing request corresponding to the accounting organization is saved in the ordinary message queue. When the above-mentioned breeding data processing request is at the head of the ordinary message queue, the ordinary message queue sends the breeding data processing request to the idle ordinary resource computing node. The idle ordinary resource computing node processes the breeding cost data of the target breeding node based on the target processing rule. The memory of the ordinary source computing node can be 10G.
[0064] In this embodiment, when the statistical number of target objects is greater than the quantity threshold, the breeding data processing request is saved in the first queue; when the statistical number of target objects is less than or equal to the quantity threshold, the breeding data processing request is saved in the second queue. That is, when the statistical number of target objects is greater than the quantity threshold, the breeding data processing request is sent to the first computing node with larger memory for processing, thereby improving the efficiency of breeding data processing.
[0065] In one embodiment, when the event to be processed corresponding to the event identifier to be processed is a marked cost event, the breeding cost data processing method further includes:
[0066] Obtain the cost data corresponding to the target object at the target breeding node; transfer the cost data to the entry cost account to obtain the breeding cost of the target object in the entry cost account; based on the target object, the target breeding node and the cost data, generate data processing information corresponding to the target object's pending event identifier; the data processing information is used to provide the breeding cost data corresponding to the target object at the target breeding node.
[0067] Among them, the marked cost event refers to an event that requires recording of data processing information. It can be understood that when the marked cost event occurs, after the corresponding breeding cost data is processed, the data processing information of the breeding cost data processing needs to be recorded. The expense cost data represents the expenses incurred by the target object at the target breeding node, and the expense cost data can be obtained from the financial statements. Data processing information refers to the information recording the target object, the target breeding node and the expense cost data.
[0068] Exemplarily, the computer device obtains the entry cost account in the target processing rule, obtains the expense cost data corresponding to the target object at the target breeding node, transfers the expense cost data to the entry cost account, adds the historical breeding cost data of the target object in the entry cost account to the transferred expense cost data, and obtains the breeding cost of the target object in the entry cost account, and then generates data processing information corresponding to the target object's event identifier to be processed based on the target object, the target breeding node and the expense cost data; the data processing information is used to provide the breeding cost data corresponding to the target object at the target breeding node.
[0069] In this embodiment, for marked cost events, after the breeding cost data is processed, data processing information corresponding to the target object's pending event identifier is generated based on the target object, target breeding node and expense cost data, so as to obtain the breeding cost data corresponding to the target object in the source cost account at the source breeding node in the carryover cost event, thereby providing accurate basic information and improving the accuracy of breeding cost data processing.
[0070] In one embodiment, as shown in FIG6 , before obtaining the to-be-processed event identifier corresponding to the target object and the target breeding node corresponding to the to-be-processed event identifier, the method further includes:
[0071] Step 602, in response to the trigger operation for the creation of the processing rule, displaying the processing rule creation page; the processing rule creation page includes a breeding node setting item and a carry-over cost event setting item.
[0072] Among them, the breeding node setting item refers to the module used to set the breeding node in the processing rule creation page. The carry-over cost event setting item refers to the module used to set the processing rule corresponding to the transfer cost event in the processing rule creation page. For example, the breeding node setting item and the carry-over cost event setting item in the processing rule creation page shown in Figure 3.
[0073] Exemplarily, an operator of the target organization clicks on a processing rule creation control, and the computer device displays a processing rule creation page in response to a trigger operation for processing rule creation, wherein the processing rule creation page includes a breeding node setting item and a carry-over cost event setting item.
[0074] In one embodiment, before displaying the processing rule creation page in response to the trigger operation for the creation of the processing rule, it also includes: displaying the event list creation page in response to the trigger operation for the creation of the event list, displaying the event setting box in the event list creation page in response to the trigger operation of the newly added control, and generating candidate event identifiers and candidate event information corresponding to the candidate event identifiers in response to the setting operation of the event setting box. For example, the event list creation page shown in Figure 7 includes multiple candidate event identifiers, and the candidate event information corresponding to the candidate event identifiers includes event codes, event names, usage status, data status, event attributes, and event descriptions. The candidate event identifiers correspond to the breeding actions one by one, as shown in Figure 8, that is, one breeding action corresponds to one candidate event identifier.
[0075] In one embodiment, after generating the candidate event identifier and the candidate event information corresponding to the candidate event identifier, it also includes: in response to the trigger operation of the candidate event logic setting, displaying the candidate event logic setting page, in response to the setting operation of the candidate event logic setting page, generating the candidate event logic corresponding to the candidate event identifier, and the candidate event logic is used to determine the target event identifier. For example, the candidate event logic setting page shown in Figure 9 includes basic information items and event logic items.
[0076] In one embodiment, before displaying the processing rule creation page in response to the trigger operation for the creation of the processing rule, it also includes: displaying the breeding node and cost account association creation page in response to the trigger operation for the creation of the breeding node and the cost account, displaying the association setting box in response to the trigger operation of adding the association, and generating the association relationship between the breeding node and the cost account in response to the setting operation of the association setting box. For example, the breeding node and cost account association creation page shown in Figure 10 includes the association relationship between multiple candidate breeding nodes and cost accounts, and the schematic diagram of the association relationship between the breeding node and the cost account is shown in Figure 11.
[0077] Step 604: In response to the selection operation on the breeding node setting item, the selected breeding node is determined as a candidate breeding node.
[0078] Exemplarily, an operator of the target organization selects a breeding node in the breeding node setting item, and the computer device determines the selected breeding node as a candidate breeding node in response to the selection operation on the breeding node setting item.
[0079] Step 606: In response to the selection operation of the candidate event identifier in the carry-forward cost event setting item, a first setting box corresponding to the candidate event identifier is displayed in the carry-forward cost event setting item.
[0080] Among them, the first setting box refers to a display box used to set the processing rules corresponding to the candidate event identifier, and the first setting box includes but is not limited to the cost flow direction, entry cost account, source breeding node and source cost account.
[0081] Exemplarily, an operator of the target organization selects a candidate event identifier in the carry-forward cost event setting item, and the computer device displays a first setting box corresponding to the candidate event identifier in the carry-forward cost event setting item in response to the selection operation of the candidate event identifier in the carry-forward cost event setting item.
[0082] Step 608, in response to the setting operations of the cost flow direction, the entry cost account, the source breeding node and the source cost account in the first setting box, a candidate processing rule corresponding to the candidate event identifier is generated.
[0083] Exemplarily, an operator of the target organization inputs the cost flow direction, entry cost account, source breeding node and source cost account in a first setting box, and the computer device generates a candidate processing rule corresponding to the candidate event identifier in response to the setting operations of the cost flow direction, entry cost account, source breeding node and source cost account in the first setting box.
[0084] Step 610, based on the candidate processing rules corresponding to at least one candidate event identifier of the carry-over cost event setting item, obtain the processing rule set corresponding to the candidate breeding node; the processing rule set corresponding to the candidate breeding node is used to determine the target processing rule corresponding to the event identifier to be processed based on the event identifier to be processed and the target breeding node.
[0085] Exemplarily, the computer device obtains a processing rule set corresponding to the candidate breeding node based on the candidate processing rule corresponding to at least one candidate event identifier of the carry-over cost event setting item; the processing rule set corresponding to the candidate breeding node is used to determine the target processing rule corresponding to the event identifier to be processed based on the event identifier to be processed and the target breeding node.
[0086] In this embodiment, the operator realizes the custom configuration of the processing rule set by setting the processing rule set corresponding to the candidate breeding node. Each organization can set up its own breeding cost processing plan that meets actual needs. Compared with requiring developers to change the code according to the needs of each organization, the generation efficiency of the processing rule set is improved.
[0087] In one embodiment, before obtaining the pending event identifier corresponding to the target object and the target breeding node corresponding to the pending event identifier, it also includes: in response to a trigger operation for processing rule creation, displaying a processing rule creation page; the processing rule creation page includes a breeding node setting item and a marking cost event setting item; in response to a selection operation for the breeding node setting item, determining the selected breeding node as a candidate breeding node; in response to a selection operation for the candidate event identifier in the marking cost event setting item, displaying a second setting box corresponding to the candidate event identifier in the marking cost event setting item; in response to the setting operation of the cost flow direction, the breeding node and the entry cost account in the second setting box, generating a candidate processing rule corresponding to the candidate event identifier; based on the candidate processing rule corresponding to at least one candidate event identifier of the processing cost event setting item and the candidate processing rule corresponding to at least one candidate event identifier of the marking cost event setting item, a processing rule set corresponding to the candidate breeding node is obtained.
[0088] The marking cost event setting item refers to a module in the processing rule creation page for setting the processing rule corresponding to the marking cost event, for example, the marking cost event setting item shown in Figure 3. The second setting box refers to a display box for setting the processing rule corresponding to the candidate event identifier, and the second setting box includes but is not limited to the cost flow direction, breeding node and entry cost account.
[0089] Exemplarily, an operator of the target organization clicks on a processing rule creation control, and the computer device displays a processing rule creation page in response to a trigger operation for processing rule creation, the processing rule creation page including a breeding node setting item and a marking cost event setting item, the operator of the target organization selects a breeding node in the breeding node setting item, the computer device determines the selected breeding node as a candidate breeding node in response to the selection operation for the breeding node setting item, the operator of the target organization selects a candidate event identifier in the marking cost event setting item, and the computer device displays a second setting box corresponding to the candidate event identifier in the marking cost event setting item in response to the selection operation of the candidate event identifier in the marking cost event setting item; the operator of the target organization enters the cost flow direction, breeding node, and entry cost account in the second setting box, and the computer device generates a candidate processing rule corresponding to the candidate event identifier in response to the setting operation of the cost flow direction, breeding node, and entry cost account in the second setting box; then, based on the candidate processing rule corresponding to at least one candidate event identifier of the processing cost event setting item and the candidate processing rule corresponding to at least one candidate event identifier of the marking cost event setting item, a processing rule set corresponding to the candidate breeding node is obtained.
[0090] In this embodiment, the operator sets the processing rules corresponding to the marked cost events through the marked cost event setting items, and generates a processing rule set corresponding to the candidate breeding nodes based on the processing rules corresponding to the marked cost events and the processing rules corresponding to the carry-over cost events, thereby realizing the custom configuration of the processing rule set. Each organization can set up the breeding cost processing plan that meets the actual needs. Compared with requiring developers to change the code according to the needs of each organization, the generation efficiency of the processing rule set is improved.
[0091] In an exemplary embodiment, the breeding cost data processing method includes:
[0092] Generate a flow chart for automatic transfer of breeding cost data. The breeding objects of the target organization are pigs. In response to the trigger operation for event list creation, the computer device displays the event list creation page. In response to the trigger operation of the newly added control, the event setting box is displayed in the event list creation page. In response to the setting operation of the event setting box, the candidate event identifier and the candidate event information corresponding to the candidate event identifier are generated. In response to the trigger operation of the candidate event logic setting, the candidate event logic setting page is displayed. In response to the setting operation of the candidate event logic setting page, the candidate event logic corresponding to the candidate event identifier is generated. The candidate event logic is used to determine the target event identifier. In response to the trigger operation for the association creation of the breeding node and the cost account, the breeding node and cost account association creation page is displayed. In response to the trigger operation of adding the association, the association setting box is displayed. In response to the setting operation of the association setting box, the association relationship between the breeding node and the cost account is generated.
[0093] The operator of the target organization clicks on the processing rule creation control, and the computer device responds to the trigger operation for the processing rule creation and displays the processing rule creation page, which includes a breeding node setting item and a carry-over cost event setting item; the operator of the target organization selects a breeding node in the breeding node setting item, and the computer device responds to the selection operation for the breeding node setting item and determines the selected breeding node as a candidate breeding node; the operator of the target organization selects a candidate event identifier in the carry-over cost event setting item, and the computer device responds to the selection operation of the candidate event identifier in the carry-over cost event setting item and displays a first setting box corresponding to the candidate event identifier in the carry-over cost event setting item; the operator of the target organization enters the cost flow direction, entry cost account, source breeding node and source cost account in the first setting box, and the computer device responds to the setting operations of the cost flow direction, entry cost account, source breeding node and source cost account in the first setting box to generate a candidate processing rule corresponding to the candidate event identifier.
[0094] The operator of the target organization selects a candidate event identifier in the marking cost event setting item, and the computer device displays a second setting box corresponding to the candidate event identifier in the marking cost event setting item in response to the selection operation of the candidate event identifier in the marking cost event setting item; the operator of the target organization inputs the cost flow direction, breeding node and entry cost account in the second setting box, and the computer device generates a candidate processing rule corresponding to the candidate event identifier in response to the setting operation of the cost flow direction, breeding node and entry cost account in the second setting box; then, based on the candidate processing rule corresponding to at least one candidate event identifier of the processing cost event setting item and the candidate processing rule corresponding to at least one candidate event identifier of the marking cost event setting item, a processing rule set corresponding to the candidate breeding node is obtained. The candidate breeding nodes include reserve boars, reserve gilts, production boars, production sows, suckling piglets, nursery pigs and fattening pigs.
[0095] The computer system generates a flow chart for automatic transfer of breeding cost data as shown in FIG12 based on the pre-placed accounting steps and the processing rule set corresponding to the candidate breeding nodes.
[0096] The breeding cost data processing process is shown in FIG13, and includes: when the computer device receives breeding data processing requests from multiple accounting organizations at the same time, for each breeding data processing request, obtaining the target object in the breeding data processing request, obtaining the number of target objects, and when the number of target objects is greater than the quantity threshold, determining the accounting organization corresponding to the breeding data processing request as a large-volume accounting organization, and saving the breeding data processing request corresponding to the accounting organization in the VIP (Very Important Person, very important) message queue, when the above-mentioned breeding data processing request is at the head of the VIP message queue, the VIP message queue sends the breeding data processing request to the idle large resource computing node, and the idle large resource computing node processes the breeding cost data of the target breeding node based on the target processing rule. The memory of the large resource computing node can be 30G; when the number of target objects is equal to or less than the number threshold, the breeding data processing request corresponding to the accounting organization is saved in the ordinary message queue. When the above-mentioned breeding data processing request is at the head of the ordinary message queue, the ordinary message queue sends the breeding data processing request to the idle ordinary resource computing node. The idle ordinary resource computing node processes the breeding cost data of the target breeding node based on the target processing rule. The memory of the ordinary source computing node can be 10G.
[0097] Process the breeding cost data of the target breeding node. The timing diagram of processing the breeding cost data of the target breeding node is shown in Figure 14. The computer device obtains the pending event identifier corresponding to the target object from the breeding system, and determines the transfer-out cost object corresponding to the pending event identifier as the target breeding node corresponding to the pending event identifier; obtains multiple candidate breeding nodes corresponding to the target organization, and determines the processing rule set corresponding to the candidate breeding node identical to the target breeding node as the target processing rule set corresponding to the target breeding node, and determines the candidate processing rule corresponding to the candidate event identifier identical to the pending event identifier in the target processing rule set as the target processing rule.
[0098] In the case where the pending event corresponding to the pending event identifier is a carry-over cost event, the computer device obtains the cost flow direction, the entry cost account, the source breeding node and the source cost account in the target processing rule. In the case where the cost flow direction is transfer-in, based on the data processing information corresponding to the target object, the breeding cost data corresponding to the target object at the source breeding node in the source cost account is obtained, and the breeding cost data corresponding to the target object at the source breeding node in the source cost account is transferred to the entry cost account, and the historical breeding cost data of the target object in the entry cost account is added to the transferred breeding cost data to obtain the current breeding cost data of the target object in the entry cost account; the historical breeding cost data of the target object in the source cost account Subtract the transferred breeding cost data to obtain the current breeding cost data of the target object in the source cost account; when the cost flow direction is transferred out, based on the data processing information corresponding to the target object, obtain the breeding cost data corresponding to the target object in the source cost account at the source breeding node, transfer the breeding cost data corresponding to the target object in the source cost account at the source breeding node to the entry cost account, add the historical breeding cost data of the target object in the entry cost account to the transferred breeding cost data, and obtain the current breeding cost data of the target object in the entry cost account; subtract the transferred breeding cost data from the historical breeding cost data of the target object in the source cost account to obtain the current breeding cost data of the target object in the source cost account. The current breeding cost data of the target object in the entry cost account and the current breeding cost data of the target object in the source cost account are saved in a cache manner as shown in FIG15, that is, the target computing node saves the results in each step, and saves the results in the storage node after each step is executed.
[0099] When the pending event corresponding to the pending event identifier is a marked cost event, the computer device obtains the entry cost account in the target processing rule, obtains the expense cost data corresponding to the target object at the target breeding node, transfers the expense cost data to the entry cost account, adds the historical breeding cost data of the target object in the entry cost account to the transferred expense cost data, and obtains the breeding cost of the target object in the entry cost account, and then generates data processing information corresponding to the pending event identifier of the target object based on the target object, the target breeding node and the expense cost data; the data processing information is used to provide the breeding cost data corresponding to the target object at the target breeding node.
[0100] In the above-mentioned breeding cost data processing method, the target processing rule corresponding to the event identifier to be processed is determined based on the event identifier to be processed and the target breeding node. The target processing rule is set based on the processing rule creation page, that is, the target processing rule is set based on the actual needs of the accounting organization. The target processing rule meets the needs of the accounting organization. After the breeding cost data of the target breeding node is processed based on the target processing rule, it does not need to be manually adjusted again, thereby improving the accuracy of the breeding cost data processing. Moreover, the accounting organization can set the target processing rule that meets the needs through the processing rule creation page, which improves the efficiency of breeding cost data processing compared to requiring developers to modify it in the background.
[0101] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0102] Based on the same inventive concept, the embodiment of the present application also provides a breeding cost data processing device for implementing the breeding cost data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more breeding cost data processing devices provided below can refer to the limitations of the breeding cost data processing method above, and will not be repeated here.
[0103] In one embodiment, as shown in FIG. 16 , a breeding cost data processing device is provided, including: an acquisition module 1602, a determination module 1604 and a processing module 1606, wherein:
[0104] The acquisition module 1602 is used to acquire the to-be-processed event identifier corresponding to the target object and the target breeding node corresponding to the to-be-processed event identifier;
[0105] Determination module 1604, used to determine the target processing rule corresponding to the event identifier to be processed based on the event identifier to be processed and the target breeding node; the target processing rule is obtained based on the processing rule creation page setting;
[0106] Processing module 1606 is used to transfer the breeding cost data corresponding to the target object in the source cost account at the source breeding node to the entry cost account based on the entry cost account, source breeding node and source cost account in the target processing rule when the to-be-processed event corresponding to the to-be-processed event identifier is a carry-over cost event, so as to obtain the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account.
[0107] In one embodiment, the determination module 1604 is also used to: determine the processing rule set corresponding to the candidate breeding node that is the same as the target breeding node as the target processing rule set corresponding to the target breeding node; the target processing rule set includes at least one candidate processing rule corresponding to a candidate event identifier; and determine the candidate processing rule corresponding to the candidate event identifier that is the same as the event identifier to be processed in the target processing rule set as the target processing rule.
[0108] In one embodiment, the acquisition module 1602 is also used to: obtain a breeding data processing request corresponding to the target object; the breeding data processing request is used to indicate the processing of the breeding cost data of the target object; when the statistical number of the target object is greater than the quantity threshold, the breeding data processing request is saved in the first queue; the breeding data processing requests in the first queue are processed by the first computing node; when the statistical number of the target object is less than or equal to the quantity threshold, the breeding data processing request is saved in the second queue; the breeding data processing requests in the second queue are processed by the second computing node, and the memory of the first computing node is greater than the memory of the second computing node.
[0109] In one embodiment, the processing module 1606 is also used to: obtain the cost data corresponding to the target object at the target breeding node; transfer the cost data to the entry cost account to obtain the breeding cost of the target object in the entry cost account; based on the target object, the target breeding node and the cost data, generate data processing information corresponding to the event identifier to be processed of the target object; the data processing information is used to provide the breeding cost data corresponding to the target object at the target breeding node.
[0110] In one embodiment, the breeding cost data processing device also includes a setting module, which is used to: display a processing rule creation page in response to a trigger operation for processing rule creation; the processing rule creation page includes a breeding node setting item and a carryover cost event setting item; in response to a selection operation for the breeding node setting item, determine the selected breeding node as a candidate breeding node; in response to a selection operation of a candidate event identifier in the carryover cost event setting item, display a first setting box corresponding to the candidate event identifier in the carryover cost event setting item; in response to the setting operations of the cost flow direction, the entry cost account, the source breeding node and the source cost account in the first setting box, generate a candidate processing rule corresponding to the candidate event identifier; based on the candidate processing rule corresponding to at least one candidate event identifier of the carryover cost event setting item, obtain a processing rule set corresponding to the candidate breeding node; the processing rule set corresponding to the candidate breeding node is used to determine the target processing rule corresponding to the event identifier to be processed based on the event identifier to be processed and the target breeding node.
[0111] In one embodiment, the setting module is used to: display a processing rule creation page in response to a trigger operation for processing rule creation; the processing rule creation page includes a breeding node setting item and a marking cost event setting item; in response to a selection operation for the breeding node setting item, determine the selected breeding node as a candidate breeding node; in response to a selection operation of a candidate event identifier in the marking cost event setting item, display a second setting box corresponding to the candidate event identifier in the marking cost event setting item; in response to the setting operations of the cost flow direction, breeding node and entry cost account in the second setting box, generate candidate processing rules corresponding to the candidate event identifier; based on the candidate processing rules corresponding to at least one candidate event identifier of the carryover cost event setting item, obtain a processing rule set corresponding to the target breeding node, including: based on the candidate processing rules corresponding to at least one candidate event identifier of the processing cost event setting item, and the candidate processing rules corresponding to at least one candidate event identifier of the marking cost event setting item, obtain a processing rule set corresponding to the target breeding node.
[0112] Each module in the above-mentioned breeding cost data processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0113] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG17. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing breeding cost data is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0114] Those skilled in the art will understand that the structure shown in FIG. 17 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0117] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0121] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing breeding cost data, characterized in that: The method comprises: Obtaining the pending event identifier corresponding to the target object and the target breeding node corresponding to the pending event identifier; The processing rule set corresponding to the candidate breeding node identical to the target breeding node is determined as the target processing rule set corresponding to the target breeding node; the target processing rule set includes at least one candidate processing rule corresponding to a candidate event identifier; the candidate processing rule corresponding to the candidate event identifier identical to the event identifier to be processed in the target processing rule set is determined as the target processing rule; the processing rule set is obtained based on the processing rule creation page setting, including: in response to a trigger operation for processing rule creation, displaying a processing rule creation page; the processing rule creation page includes a breeding node setting item, a marking cost event setting item, and a carryover cost event setting item; in response to a selection operation for the breeding node setting item, determining the selected breeding node as a candidate breeding node; in response to a selection operation for a candidate event identifier in the carryover cost event setting item, displaying a first setting box corresponding to the candidate event identifier in the carryover cost event setting item ; In response to the setting operations of the cost flow direction, the entry cost account, the source breeding node and the source cost account in the first setting box, the candidate processing rules corresponding to the candidate event identifier of the carry-forward cost event setting item are generated; in response to the selection operation of the candidate event identifier in the marking cost event setting item, the second setting box corresponding to the candidate event identifier is displayed in the marking cost event setting item; in response to the setting operations of the cost flow direction, the breeding node and the entry cost account in the second setting box, the candidate processing rules corresponding to the candidate event identifier of the marking cost event setting item are generated; based on the candidate processing rules corresponding to at least one candidate event identifier of the carry-forward cost event setting item and the candidate processing rules corresponding to at least one candidate event identifier of the marking cost event setting item, the processing rule set corresponding to the candidate breeding node is obtained; the candidate breeding nodes include reserve boars, reserve gilts, production boars, production sows, suckling piglets, nursery pigs and fattening pigs; In the case where the pending event corresponding to the pending event identifier is a carry-over cost event, based on the entry cost account, source breeding node and source cost account in the target processing rule, the breeding cost data corresponding to the target object at the source breeding node in the source cost account is transferred to the entry cost account to obtain the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account.
2. The method according to claim 1, characterized in that The obtaining of the to-be-processed event identifier corresponding to the target object and the target breeding node corresponding to the to-be-processed event identifier includes: Get the pending event ID corresponding to the target object; Based on the event identifier to be processed, a target breeding node corresponding to the event identifier to be processed is determined.
3. The method according to claim 1, characterized in that In the case where the statistical number of the target objects is multiple, before obtaining the to-be-processed event identifier corresponding to the target object and the target breeding node corresponding to the to-be-processed event identifier, the method further includes: Acquire a breeding data processing request corresponding to the target object; the breeding data processing request is used to instruct to process the breeding cost data of the target object; When the statistical number of the target objects is greater than the number threshold, the breeding data processing request is stored in the first queue; the breeding data processing request in the first queue is processed by the first computing node; When the statistical number of the target objects is less than or equal to the quantity threshold, the breeding data processing request is saved in the second queue; the breeding data processing requests in the second queue are processed by the second computing node, and the memory of the first computing node is greater than the memory of the second computing node.
4. The method according to claim 1, characterized in that: In the case where the to-be-processed event corresponding to the to-be-processed event identifier is a marking cost event, the method further includes: Obtain the cost data corresponding to the target object at the target breeding node; Transferring the expense cost data to the entry cost account to obtain the breeding cost data of the target object in the entry cost account; Based on the target object, the target breeding node and the cost data, data processing information corresponding to the event identifier to be processed of the target object is generated; the data processing information is used to provide the breeding cost data corresponding to the target object at the target breeding node.
5. The method according to claim 1, characterized in that Before displaying the processing rule creation page in response to the trigger operation for the processing rule creation, the method further includes: In response to a trigger operation for event list creation, displaying an event list creation page; In response to a triggering operation of the newly added control, an event setting box is displayed in the event list creation page; In response to the setting operation of the event setting box, a candidate event identifier and candidate event information corresponding to the candidate event identifier are generated.
6. The method according to claim 5, characterized in that After generating the candidate event identifier and the candidate event information corresponding to the candidate event identifier, the method further includes: In response to a triggering operation of a candidate event logic setting, displaying a candidate event logic setting page; In response to the setting operation of the candidate event logic setting page, a candidate event logic corresponding to the candidate event identifier is generated, and the candidate event logic is used to determine the target event identifier.
7. A breeding cost data processing device, characterized in that: The device comprises: An acquisition module, used to acquire an event identifier to be processed corresponding to a target object, and a target breeding node corresponding to the event identifier to be processed; A determination module, used to determine the processing rule set corresponding to the candidate breeding node that is the same as the target breeding node as the target processing rule set corresponding to the target breeding node; the target processing rule set includes at least one candidate processing rule corresponding to a candidate event identifier; the candidate processing rule corresponding to the candidate event identifier that is the same as the event identifier to be processed in the target processing rule set is determined as the target processing rule; the processing rule set is obtained based on the processing rule creation page setting, including: in response to a trigger operation for processing rule creation, displaying a processing rule creation page; the processing rule creation page includes a breeding node setting item, a marking cost event setting item, and a carryover cost event setting item; in response to a selection operation for the breeding node setting item, determining the selected breeding node as a candidate breeding node; in response to a selection operation for a candidate event identifier in the carryover cost event setting item, displaying a first event corresponding to the candidate event identifier in the carryover cost event setting item A setting box; in response to the setting operations of the cost flow direction, the entry cost account, the source breeding node and the source cost account in the first setting box, a candidate processing rule corresponding to the candidate event identifier of the carry-forward cost event setting item is generated; in response to the selection operation of the candidate event identifier in the marking cost event setting item, a second setting box corresponding to the candidate event identifier is displayed in the marking cost event setting item; in response to the setting operations of the cost flow direction, the breeding node and the entry cost account in the second setting box, a candidate processing rule corresponding to the candidate event identifier of the marking cost event setting item is generated; based on the candidate processing rule corresponding to at least one candidate event identifier of the carry-forward cost event setting item and the candidate processing rule corresponding to at least one candidate event identifier of the marking cost event setting item, a processing rule set corresponding to the candidate breeding node is obtained; the candidate breeding nodes include reserve boars, reserve gilts, production boars, production sows, suckling piglets, nursery pigs and fattening pigs; A processing module is used to transfer the breeding cost data corresponding to the target object at the source breeding node in the source cost account to the entry cost account based on the entry cost account, source breeding node and source cost account in the target processing rule when the event to be processed corresponding to the event to be processed identifier is a carry-over cost event, so as to obtain the breeding cost data of the target object in the entry cost account and the breeding cost data of the target object in the source cost account.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.
10. A computer program product, comprising a computer program, 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 6 are implemented.
Citation Information
Patent Citations
Livestock insurance claim method and apparatus, computer device and storage medium
CN108492198A
Pig farm cost analysis method and device and electronic equipment
CN110910268A