Task node-based day change method, device, equipment and storage medium

By determining and controlling the target daily cut order of multiple transaction nodes, the problems of daily cut complexity and diversity are solved, and efficient and accurate daily cut processing is achieved.

CN117149731BActive Publication Date: 2025-12-05CHONGQING ANT CONSUMER FINANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311099746.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-12-05
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

As the number of trading nodes increases, the complexity and diversity of daily switching also increase, making effective control of daily switching across multiple trading nodes a research hotspot.

Method used

By acquiring multiple task nodes to be cut daily, the target daily cutting order is determined based on the type of each task node and the daily cutting dependency, and the task nodes are controlled to perform daily cutting according to this order, including the corresponding processing of accounting nodes, transaction nodes and financial nodes.

Benefits of technology

It reduces the difficulty of daily cutting, improves daily cutting efficiency, and ensures the accuracy and completeness of daily cutting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117149731B_ABST
    Figure CN117149731B_ABST
Patent Text Reader

Abstract

The specification discloses a task node-based day switching method, device, equipment and storage medium. The method comprises the following steps: in the case that the day switching time of the current date is reached, a plurality of task nodes to be subjected to day switching are acquired, and the types of different task nodes are different; based on the types of the task nodes and the day switching dependency relationship between the plurality of task nodes, the target day switching sequence of the plurality of task nodes is determined; and the plurality of task nodes are controlled to perform day switching according to the target day switching sequence.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present specification relate to the technical field of computer technology, and particularly relate to a task node-based day switching method and device, equipment, and storage medium. BACKGROUND

[0002] With the development of network technology, more and more transactions are completed through the network. In order to ensure the accuracy of transaction data, different transaction nodes will switch the accounting time every day, that is, perform day switching.

[0003] In related technologies, with the increase in the number of transaction nodes, the complexity and diversity of day switching also increase, and how to effectively control the day switching of multiple transaction nodes is a research hotspot. SUMMARY

[0004] Embodiments of the present specification provide a task node-based day switching method, device, equipment, and storage medium, which can effectively control multiple transaction nodes to perform day switching. The technical solutions are as follows:

[0005] In one aspect, a task node-based day switching method is provided, and the method includes:

[0006] In the case of reaching the day switching time of the current date, a plurality of task nodes to be switched are obtained, and different task nodes have different types;

[0007] Based on the types of each task node and the day switching dependency relationship between the plurality of task nodes, a target day switching order of the plurality of task nodes is determined;

[0008] The plurality of task nodes are controlled to perform day switching according to the target day switching order.

[0009] In one possible implementation, the obtaining of the plurality of task nodes to be switched in the case of reaching the day switching time of the current date includes:

[0010] In the case of reaching the day switching time of the current date, a day processing task of the current date is obtained, and the day processing task is a day switching task that needs to be executed;

[0011] The plurality of task nodes corresponding to the day processing task are determined.

[0012] In one possible implementation, the determining of the target day switching order of the plurality of task nodes based on the types of each task node and the day switching dependency relationship between the plurality of task nodes includes:

[0013] Based on the types of each task node, an initial day switching order of the plurality of task nodes is determined;

[0014] Adjust the initial day change order based on the day change dependency relationship among the plurality of task nodes to obtain the target day change order.

[0015] In a possible implementation, the adjusting the initial day change order based on the day change dependency relationship among the plurality of task nodes to obtain the target day change order comprises:

[0016] Determining at least one node set from the plurality of task nodes, the node set comprising at least two task nodes, and the task nodes in the node set having a day change dependency relationship;

[0017] Adjusting the positions of the task nodes in the at least one node set in the initial day change order to make the task nodes in the same node set adjacent to obtain the target day change order.

[0018] In a possible implementation, the plurality of task nodes comprise an accounting node and a plurality of transaction nodes, the accounting node is after the plurality of transaction nodes in the target day change order, and the controlling the plurality of task nodes to perform day change according to the target day change order comprises:

[0019] Controlling the plurality of transaction nodes to perform day change in sequence according to the target day change order;

[0020] In a case where the plurality of transaction nodes complete day change, performing completion detection on the plurality of transaction nodes and executing an accounting task of the accounting node;

[0021] In a case where the accounting task is completed, controlling the accounting node to perform day change.

[0022] In a possible implementation, the performing completion detection on the plurality of transaction nodes and executing the accounting task of the accounting node in a case where the plurality of transaction nodes complete day change comprises:

[0023] In a case where the plurality of transaction nodes complete day change, obtaining a plurality of day change data of the plurality of transaction nodes and a day change state of each day change data, the day change state being used to indicate whether day change is completed;

[0024] In a case where the day change states of each day change data are all completed day change, executing the accounting task of the accounting node.

[0025] In a possible implementation, the executing the accounting task of the accounting node in a case where the day change states of each day change data are all completed day change comprises:

[0026] In a case where the day change states of each day change data are all completed day change, processing settlement resource amounts of different subjects.

[0027] In the case of completing the processing of the settlement resource amount of different subjects, a resource accounting report is generated.

[0028] In a possible implementation, the controlling the accounting node to perform the day switching in the case that the accounting task is completed includes:

[0029] In the case that the accounting task is completed, the resource transfer data of the accounting node is balanced, and the resource transfer data includes resource transfer-out data and resource transfer-in data;

[0030] In the case that the resource transfer data passes the balance check, the accounting node is controlled to perform the day switching.

[0031] In a possible implementation, the plurality of task nodes further include a finance node, and the controlling the accounting node to perform the day switching in the case that the resource transfer data passes the balance check includes:

[0032] In the case that the resource transfer data passes the balance check, a day switching instruction is sent to the finance node, and the day switching instruction is used to instruct the finance node to perform the day switching;

[0033] In the case that the finance node completes the day switching, the accounting node is controlled to perform the day switching.

[0034] In a possible implementation, the method further includes:

[0035] In the case that any task node of the plurality of task nodes completes the day switching, a day switching log of the task node is generated;

[0036] and / or,

[0037] In the case that the plurality of task nodes all complete the day switching, a day switching log of the current date is generated.

[0038] In one aspect, a task node-based day switching apparatus is provided, and the apparatus includes:

[0039] A task node acquisition module is configured to acquire a plurality of task nodes to be subjected to day switching in the case that a day switching time of a current date is reached, and different task nodes are of different types;

[0040] A target day switching sequence determination module is configured to determine a target day switching sequence of the plurality of task nodes based on the types of the task nodes and a day switching dependency relationship between the plurality of task nodes;

[0041] A day switching control module is configured to control the plurality of task nodes to perform day switching according to the target day switching sequence.

[0042] In a possible implementation, the task node acquisition module is configured to, in a case where a day change time of a current date is reached, acquire a daily processing task of the current date, the daily processing task being a day change task that needs to be executed; and determine the plurality of task nodes corresponding to the daily processing task.

[0043] In a possible implementation, the target day change sequence determination module is configured to determine an initial day change sequence of the plurality of task nodes based on types of the plurality of task nodes; and adjust the initial day change sequence based on the day change dependency relationships between the plurality of task nodes, to obtain the target day change sequence.

[0044] In a possible implementation, the target day change sequence determination module is configured to determine at least one node set from the plurality of task nodes, the node set including at least two task nodes, and the task nodes in the node set having a day change dependency relationship; and adjust positions of the task nodes in the at least one node set in the initial day change sequence, so that the task nodes in the same node set are adjacent, to obtain the target day change sequence.

[0045] In a possible implementation, the plurality of task nodes include an accounting node and a plurality of transaction nodes, the accounting node is located after the plurality of transaction nodes in the target day change sequence, and the day change control module is configured to control the plurality of transaction nodes to perform day change in sequence according to the target day change sequence; perform completion detection on the plurality of transaction nodes and execute an accounting task of the accounting node in a case where the plurality of transaction nodes complete day change; and control the accounting node to perform day change in a case where the accounting task is completed.

[0046] In a possible implementation, the day change control module is configured to, in a case where the plurality of transaction nodes complete day change, acquire a plurality of day change data of the plurality of transaction nodes and a day change state of each day change data, the day change state being used to indicate whether day change is completed; and execute the accounting task of the accounting node in a case where the day change state of each day change data is that day change is completed.

[0047] In a possible implementation, the day change control module is configured to, in a case where the day change state of each day change data is that day change is completed, process settlement resource amounts of different subjects; and generate a resource accounting report in a case where the settlement resource amounts of different subjects are processed.

[0048] In a possible implementation, the day switching control module is configured to, in a case where the accounting task is completed, perform balance checking on resource transfer data of the accounting node, the resource transfer data including resource transfer-out data and resource transfer-in data; and in a case where the resource transfer data passes the balance checking, control the accounting node to perform day switching.

[0049] In a possible implementation, the plurality of task nodes further include a finance node, and the day switching control module is configured to, in a case where the resource transfer data passes the balance checking, send a day switching instruction to the finance node, the day switching instruction being used to instruct the finance node to perform day switching; and in a case where the finance node completes day switching, control the accounting node to perform day switching.

[0050] In a possible implementation, the apparatus further includes:

[0051] a log generation module configured to, in a case where any of the plurality of task nodes completes day switching, generate a day switching log of the task node; and / or, in a case where all of the plurality of task nodes complete day switching, generate a day switching log of the current date.

[0052] In an aspect, a computer device is provided, which includes one or more processors and one or more memories, and the one or more memories store at least one computer program, which is loaded and executed by the one or more processors to implement the task node-based day switching method.

[0053] In an aspect, a computer readable storage medium is provided, which stores at least one computer program, which is loaded and executed by a processor to implement the task node-based day switching method.

[0054] In an aspect, a computer program product or computer program is provided, which includes program code stored in a computer readable storage medium, and a processor of a computer device reads the program code from the computer readable storage medium, and the processor executes the program code to enable the computer device to perform the above-described task node-based day switching method.

[0055] Through the technical solutions provided by the embodiments of the present disclosure, in a case where a day switching time of a current date is reached, a plurality of task nodes to be subjected to day switching are obtained, and different task nodes are of different types. Based on the types of the task nodes and a day switching dependency relationship among the plurality of task nodes, a target day switching sequence of the plurality of task nodes is determined. The plurality of task nodes are controlled to perform day switching according to the target day switching sequence, which can enable the plurality of task nodes of different types to complete day switching, reduce day switching difficulty, and improve day switching efficiency. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 This is a schematic diagram of the implementation environment of a task node-based day-switching method provided in the embodiments of this specification;

[0058] Figure 2 This is a flowchart of a daily switching method based on task nodes provided in the embodiments of this specification;

[0059] Figure 3 This is a flowchart of another day-switching method based on task nodes provided in the embodiments of this specification;

[0060] Figure 4 This is a flowchart of another daily switching method based on task nodes provided in the embodiments of this specification;

[0061] Figure 5 This is a schematic diagram of the structure of a task node-based day-switching device provided in the embodiments of this specification;

[0062] Figure 6 This is a schematic diagram of the structure of a terminal provided in an embodiment of this specification;

[0063] Figure 7 This is a schematic diagram of the structure of a server provided in the embodiments of this specification. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this specification clearer, the embodiments of this specification will be further described in detail below with reference to the accompanying drawings.

[0065] In this manual, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.

[0066] Day-to-day switching: In layman's terms, it means changing the system's accounting time. The system switches from the current working day to the next working day. During the day-to-day switching process, transactions can still be submitted and processed correctly.

[0067] Middleware: Middleware is a kind of software between application systems and system software, which uses the basic services (functions) provided by system software to connect each part of application systems or different applications on the network, so as to achieve the purpose of resource sharing and function sharing.

[0068] Database table: refers to a medium for storing data, in the embodiment of the present specification, the database table is a hundred database table.

[0069] Accounting: is an economic management activity that uses currency as the main unit of measurement and uses special methods to continuously, systematically and comprehensively reflect and supervise the economic activities of enterprises or other economic organizations. Specifically, accounting is the accounting and supervision of the economic activities of a certain subject, and provides accounting information to the relevant parties.

[0070] Finance: refers to the activities involving funds in the production process of an enterprise, which indicates the formal characteristics of finance.

[0071] Service provider interface (SPI): is a standard application program interface provided by a supplier that meets a certain service standard, and the SPI and the application program interface (API) of the service are compatible.

[0072] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present specification are authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant national and regional laws, regulations and standards.

[0073] Figure 1 It is an implementation environment schematic diagram of a task node-based day change method provided by the embodiment of the present specification, see Figure 1 The implementation environment can include an accounting platform 110, a finance platform 120 and a transaction platform 140.

[0074] The accounting platform 110 is a standalone physical accounting platform, or an accounting platform cluster or distributed system composed of multiple physical accounting platforms, or a cloud accounting platform providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and basic cloud computing services such as big data and artificial intelligence platforms. The accounting platform 110 is configured to perform accounting-related processing. In the embodiments of the present specification, the accounting platform 110 is configured to perform the task node-based day change method provided by the embodiments of the present specification, and the accounting platform 110 also belongs to a task node.

[0075] The financial platform 120 is connected to the accounting platform 110 through a wired network or a wireless network. The financial platform 120 is a standalone physical accounting platform, or an accounting platform cluster or distributed system composed of multiple physical accounting platforms, or a cloud accounting platform providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and basic cloud computing services such as big data and artificial intelligence platforms. The financial platform 120 is configured to perform financial-related processing, and the financial platform 120 belongs to a task node in the embodiments of the present specification.

[0076] The transaction platform 140 is connected to the accounting platform 110 and the financial platform 120 through a wired network or a wireless network. The transaction platform 140 is a standalone physical accounting platform, or an accounting platform cluster or distributed system composed of multiple physical accounting platforms, or a cloud accounting platform providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and basic cloud computing services such as big data and artificial intelligence platforms. The transaction platform 140 is configured to perform transaction-related processing, and the transaction platform 140 belongs to a task node in the embodiments of the present specification.

[0077] Those skilled in the art can know that the number of the transaction platforms described above can be more or less. For example, the terminal described above is only one, or the terminal described above is tens or hundreds, or more, and in this case, the implementation environment described above further includes other terminals. The number of terminals and the type of equipment are not limited in the embodiments of the present specification.

[0078] After introducing the implementation environment of the embodiments of the present specification, the application scenarios of the embodiments of the present specification are introduced below. The task node-based day switching method provided by the embodiments of the present specification can be applied in various scenarios that need to perform day switching. For example, the technical solutions provided by the embodiments of the present specification can be applied in a scenario where multiple departments of an enterprise perform day switching, each of the multiple departments acts as a task node at the time of day switching, and the multiple departments include an accounting department. In the embodiments of the present specification, day switching of the multiple departments is performed by an accounting platform, and the accounting platform is a platform corresponding to the accounting department. In the case where the day switching time of the current date is reached, the accounting platform obtains multiple task nodes to be day switched, different task nodes are of different types, and the type refers to the above-mentioned department. The accounting platform determines a target day switching order of the multiple task nodes based on the types of the task nodes and a day switching dependency relationship between the multiple task nodes, and the day switching dependency relationship refers to that one task node starts day switching depending on another task node completing day switching. The accounting platform controls the multiple task nodes to perform day switching according to the target day switching order, that is, day switching of the multiple departments is realized.

[0079] After introducing the implementation environment and the application scenario of the embodiments of the present specification, the task node-based day switching method provided by the embodiments of the present specification is described below, referring to Figure 2 Taking the accounting platform as an example of the execution subject, the method includes the following steps.

[0080] 202. In the case where the day switching time of the current date is reached, the accounting platform obtains multiple task nodes to be day switched, and different task nodes are of different types.

[0081] The day switching time refers to the time when day switching needs to be performed, and the day switching time is set or adjusted by a technical person according to actual conditions, which is not limited in the embodiments of the present specification. In some embodiments, the day switching time is a periodic day switching time, that is, after the day switching time is configured, day switching is triggered at the day switching time every day. The accounting platform is a platform corresponding to the accounting department, and the accounting department can perform accounting-related processing through the accounting platform. The task node is a node that needs to perform day switching, and the type refers to the department. Correspondingly, the multiple task nodes represent multiple departments of the same enterprise, and of course, there is a task node corresponding to the accounting department in the multiple task nodes.

[0082] 204. The accounting platform determines a target day switching order of the multiple task nodes based on the types of the task nodes and a day switching dependency relationship between the multiple task nodes.

[0083] The day change dependency relationship refers to that a task node starts day change depending on another task node completing day change. For example, there are task node A and task node B in the plurality of task nodes, and day change of the task node B depends on day change of the task node A being completed. The target day change sequence of the plurality of task nodes is the sequence of day change of the plurality of task nodes.

[0084] 206. The accounting platform controls the plurality of task nodes to perform day change according to the target day change sequence.

[0085] The technical solution provided by the embodiments of the present specification can obtain a plurality of task nodes to be day-changed when the day change time of the current date is reached, and the types of different task nodes are different. Based on the types of the task nodes and the day change dependency relationship between the plurality of task nodes, the target day change sequence of the plurality of task nodes is determined. The plurality of task nodes are controlled to perform day change according to the target day change sequence, which can complete day change of the plurality of task nodes of different types, reduce the difficulty of day change, and improve the efficiency of day change.

[0086] It should be noted that the above steps 202-206 are a simple description of the technical solution provided by the embodiments of the present specification. The technical solution provided by the embodiments of the present specification will be described more clearly in combination with some examples, see Figure 3 Taking the accounting platform as an example, the method comprises the following steps.

[0087] 302. When the day change time of the current date is reached, the accounting platform obtains a plurality of task nodes to be day-changed, and the types of different task nodes are different.

[0088] The day change time refers to the time when day change needs to be performed, which is set or adjusted by a technician according to actual conditions, and the embodiments of the present specification do not limit this. In some embodiments, the day change time is a periodic day change time, that is, after the day change time is configured, day change will be triggered at the day change time every day. The accounting platform is a platform corresponding to the accounting department, and the accounting department can perform accounting-related processing through the accounting platform. The task node is a node that needs to perform day change, and the type refers to the department. Correspondingly, the plurality of task nodes also indicates a plurality of departments of the same enterprise, and of course, the plurality of task nodes includes a task node corresponding to the accounting department. In some embodiments, the task node is a platform corresponding to the department, and personnel of the department can handle department-related affairs on the corresponding platform. The task node stores transaction data of the department, and the transaction data needs to be checked when day change of the task node is performed, so the transaction data is also called day change data.

[0089] In a possible implementation, in the case that the time of day cutting of the current date is reached, the accounting platform acquires a day processing task of the current date, the day processing task being a day cutting task that needs to be executed. The accounting platform determines the plurality of task nodes corresponding to the day processing task.

[0090] The day processing task of the current date refers to a day cutting task that needs to be executed on the current date, and the task configuration of the day processing task carries the plurality of task nodes that need to be day cut. In some embodiments, the accounting platform uses a target middleware to execute a defined cron (scheduled task) expression, so as to realize the judgment of whether the time reaches the time of day cutting.

[0091] In this implementation, in the case that the time of day cutting of the current date is reached, the day processing task of the current date is acquired, and the plurality of task nodes can be directly acquired from the task configuration of the day processing task, so that the efficiency of acquiring the task nodes is high. In addition, the task configuration can be adjusted as needed, so that the flexibility of the task nodes is improved.

[0092] For example, in the case that the time of day cutting of the current date is reached, the accounting platform executes a day-end day cutting management task and an accounting day-end day cutting task to acquire the task configuration of the day processing task of the current date, the day-end day cutting management task being a day cutting management task of other departments, and the accounting day-end day cutting task being a day cutting task of the accounting department. The accounting platform acquires the plurality of task nodes from the task configuration. The task configuration is set by a technical personnel according to actual conditions, for example, the technical personnel can delete or add task nodes in the task configuration as needed, and the embodiments of the present specification do not limit this. In some embodiments, the task configuration further carries the types of the task nodes and the day cutting dependency relationship between the task nodes.

[0093] For example, in the case that the time of day cutting of the current date is reached, the accounting platform executes a day-end day cutting management task and an accounting day-end day cutting task to acquire the task configuration of the day processing task of the current date. The accounting platform displays the plurality of candidate task nodes carried by the task configuration. In response to a selection operation on the plurality of candidate task nodes, the plurality of task nodes corresponding to the day processing task are determined from the plurality of candidate task nodes. In this implementation, the user of the accounting platform can select the task nodes as needed, and the flexibility of selecting the task nodes is high.

[0094] In a possible implementation, in the case that the time of day cutting of the current date is reached, the accounting platform acquires the plurality of task nodes from a day cutting configuration file of the current date.

[0095] The day switching configuration file is set by the technician according to the actual situation, for example, the technician can delete or add a task node in the day switching configuration file according to the need, and the embodiments of the present specification do not limit this. In some embodiments, the day switching configuration file also carries the type of the task node and the day switching dependency relationship between the task nodes.

[0096] In this implementation, the plurality of task nodes can be obtained directly from the day switching configuration file, and the efficiency of obtaining the plurality of task nodes is high.

[0097] It should be noted that the accounting platform can obtain the plurality of task nodes by any of the above-mentioned implementation manners, and the embodiments of the present specification do not limit this.

[0098] Optionally, after step 302, the accounting platform can further perform the following steps.

[0099] In a possible implementation, the accounting platform performs exclusive lock control.

[0100] The exclusive lock control is performed to prevent data inconsistency caused by high concurrency and ensure the accuracy of day switching. After the exclusive lock control is performed, only one task node is switched at a time, thereby ensuring the accuracy of day switching.

[0101] In some embodiments, the accounting platform performs exclusive lock control through a database row lock, wherein the database row lock is a locking mechanism for a single record in a database, which can prevent other sessions from modifying or deleting the same row of data, thereby ensuring the consistency and integrity of the data.

[0102] In a possible implementation, the accounting platform creates a day switching log, and fills the content in the day switching log in the subsequent day switching process, to ensure the traceability of day switching.

[0103] 304. The accounting platform determines a target day switching sequence of the plurality of task nodes based on the type of each task node and the day switching dependency relationship between the plurality of task nodes.

[0104] The day change dependency relationship refers to that day change of one task node depends on completion of day change of another task node. For example, there are task node A and task node B in the plurality of task nodes, and day change of the task node B depends on completion of day change of the task node A. The target day change sequence of the plurality of task nodes is the sequence of day change of the plurality of task nodes. In some embodiments, the plurality of task nodes arranged in the target day change sequence is also referred to as a day change link. In the day change link, there is an upstream and downstream relationship between the task nodes, which represents the sequence of day change of the task nodes. For example, there are task node A and task node B in the day change link, and the day change time of the task node A is earlier than that of the task node B. Therefore, the task node A is an upstream node of the task node B, and the task node B is a downstream node of the task node A.

[0105] In a possible implementation, the accounting platform determines an initial day change sequence of the plurality of task nodes based on the types of the task nodes. The accounting platform adjusts the initial day change sequence based on the day change dependency relationship between the plurality of task nodes to obtain the target day change sequence.

[0106] In this implementation, the initial day change sequence is determined based on the types of the task nodes, and the initial day change sequence is adjusted based on the day change dependency relationship between the task nodes to obtain the target day change sequence. The target day change sequence combines the types and the day change dependency relationship, and has high accuracy.

[0107] To make the above implementation clearer, the above implementation will be described in two parts.

[0108] In the first part, the accounting platform determines an initial day change sequence of the plurality of task nodes based on the types of the task nodes.

[0109] In a possible implementation, the accounting platform determines a priority of each task node based on the type of the task node. The accounting platform determines an initial day change sequence of the plurality of task nodes based on the priority of each task node.

[0110] The correspondence between the type and the priority of the task node is set by a technician according to actual conditions, and is not limited in the embodiments of the present specification.

[0111] In this implementation, the priority of each task node is determined based on the type of the task node, and the initial day change sequence of the plurality of task nodes is determined based on the priority, which fully utilizes the type of the task node.

[0112] For example, the accounting platform queries based on the types of the task nodes to obtain priorities of the task nodes. The accounting platform determines rankings of the task nodes based on the priorities of the task nodes, where the higher the priority, the higher the ranking. The accounting platform determines an initial day change order of the plurality of task nodes based on the rankings of the task nodes.

[0113] The second part, the accounting platform adjusts the initial day change order based on the day change dependency relationships among the plurality of task nodes to obtain the target day change order.

[0114] In a possible implementation, the accounting platform determines at least one node set from the plurality of task nodes, the node set including at least two task nodes, and the task nodes in the node set having day change dependency relationships. The accounting platform adjusts positions of the task nodes in the at least one node set in the initial day change order so that the task nodes in the same node set are adjacent to obtain the target day change order.

[0115] In this implementation, at least one node set is determined from the plurality of task nodes, and the task nodes in the node set have day change dependency relationships. The initial day change order is adjusted by using the at least one node set to obtain the target day change order, and the target day change order sufficiently integrates the day change dependency relationships among the task nodes, and the rationality of the target day change order is higher.

[0116] In some embodiments, in addition to determining the target day change order by the above step 304, the target day change order can also be configured by a technician according to actual conditions, for example, the target day change order can be configured by the following steps.

[0117] In a possible implementation, before step 302, the accounting platform displays a day change order configuration interface, the day change order configuration interface being used to configure day change orders of task nodes. In response to an operation on the day change order configuration interface, the accounting platform determines a reference day change order of a plurality of candidate task nodes, the plurality of candidate task nodes being all the task nodes available for selection. In a case where a day change time of a current date is reached, the accounting platform acquires a plurality of task nodes to be subjected to day change, the plurality of task nodes belonging to the plurality of candidate task nodes. The accounting platform determines a target day change order of the plurality of task nodes based on the reference day change order.

[0118] In this implementation, the reference day change order is configured by the day change order configuration interface, and the target day change order of the plurality of task nodes is determined by using the reference day change order, thereby improving the accuracy and adaptability of the target day change order.

[0119] For example, the accounting platform displays a day cut order configuration interface including a plurality of candidate task nodes. In response to a drag operation on a candidate task node, the accounting platform determines a reference day cut order of the plurality of candidate task nodes. In a case where a day cut time of a current date is reached, the accounting platform acquires a plurality of task nodes to be day cut. The accounting platform sorts the plurality of task nodes in a sequence indicated by the reference day cut order to obtain a target day cut order.

[0120] 306、The accounting platform controls the plurality of task nodes to perform day cut according to the target day cut order.

[0121] In some embodiments, in the process of controlling the plurality of task nodes to perform day cut according to the target day cut order, the accounting platform can use an exclusive lock to control day cut of the plurality of task nodes, that is, only one task node is controlled to perform day cut at a time, to ensure the accuracy of day cut.

[0122] In one possible implementation, the plurality of task nodes includes an accounting node and a plurality of transaction nodes, the accounting node is after the plurality of transaction nodes in the target day cut order, and the accounting platform controls the plurality of transaction nodes to perform day cut in sequence according to the target day cut order. In a case where the plurality of transaction nodes complete day cut, the accounting platform performs completion detection on the plurality of transaction nodes and executes an accounting task of the accounting node. In a case where the accounting task is completed, the accounting platform controls the accounting node to perform day cut.

[0123] The accounting node is a task node corresponding to an accounting department, that is, the accounting platform, which needs to perform day cut in addition to controlling other departments to perform day cut. The transaction node is a task node corresponding to a transaction department, and the transaction department is a department other than the accounting department and the financial department. The transaction department is a department that performs specific transactions in an enterprise, and the number and types of transactions performed by the transaction department vary according to the settings of the enterprise, which are not limited by the embodiments of the present specification. The completion detection is used to detect whether the plurality of transaction nodes complete day cut, and the accounting task is a task executed by the accounting node before day cut is completed, which is set by a technician according to actual conditions.

[0124] In this implementation, the plurality of transaction nodes are controlled to perform day cut first, in a case where the plurality of transaction nodes complete day cut, the plurality of transaction nodes are subjected to completion detection and the accounting task of the accounting node is executed, and in a case where the accounting task is completed, the accounting node is controlled to perform day cut, to complete day cut of the plurality of task nodes and ensure the accuracy of day cut of the plurality of task nodes.

[0125] In order to more clearly illustrate the above implementation, the above implementation will be described in the following several parts.

[0126] The first part, the accounting platform, controls the plurality of transaction nodes to perform the day switching in sequence according to the target day switching sequence.

[0127] In a possible implementation, the accounting platform sends day switching instructions to the plurality of transaction nodes in sequence according to the target day switching sequence to control the plurality of transaction nodes to perform the day switching.

[0128] The day switching instruction is used to instruct the transaction node to perform the day switching.

[0129] In this implementation, when it is necessary to control the transaction node to perform the day switching, the accounting platform sends day switching instructions to the plurality of transaction nodes in sequence according to the target day switching sequence to instruct the plurality of transaction nodes to perform the day switching, thereby achieving efficient control of the day switching of the plurality of transaction nodes.

[0130] For example, the accounting platform sends a day switching instruction to a first transaction node in the plurality of transaction nodes according to the target day switching sequence. Upon receiving a day switching completion prompt of the first transaction node, the accounting platform sends a day switching instruction to a second transaction node in the plurality of transaction nodes according to the target day switching sequence. Upon receiving a day switching completion prompt of the second transaction node, the accounting platform sends the day switching instruction to other transaction nodes in the plurality of transaction nodes in sequence according to the target day switching sequence until a day switching completion prompt of a last transaction node in the plurality of transaction nodes is received, indicating that the plurality of transaction nodes have all completed the day switching.

[0131] The second part, upon completion of the day switching of the plurality of transaction nodes, the accounting platform performs completion detection on the plurality of transaction nodes and executes the accounting task of the accounting node.

[0132] The plurality of transaction nodes are upstream nodes of the accounting node, and the completion detection on the plurality of transaction nodes is also the completion detection on the upstream nodes, thereby determining whether the upstream nodes have completed the day switching, ensuring that the plurality of transaction nodes in the day switching link have all completed the day switching, and meanwhile, not missing data. In the process of performing the completion detection on the upstream nodes, the accounting platform performs message backlog checking to determine whether there is unprocessed day switching data, thereby avoiding missing the day switching data. After the message backlog checking is completed, the accounting platform queries the state of the day switching data stored in the database table, and the state includes completed day switching and uncompleted day switching. The accounting platform filters the day switching data stored in the database table based on the state of the day switching data, to obtain reference day switching data, and the state of the reference day switching data is uncompleted day switching. The accounting platform performs data splitting on the reference day switching data, and performs the day switching on the split reference day switching data.

[0133] In a possible implementation, in a case where the plurality of transaction nodes complete the day switching, the accounting platform acquires a plurality of day switching data of the plurality of transaction nodes and a day switching state of each day switching data, the day switching state being used to indicate whether the day switching is completed. In a case where the day switching state of each day switching data is that the day switching is completed, the accounting platform performs the accounting task of the accounting node. In a case where the day switching state of each day switching data is that the day switching is completed, the accounting platform processes the settlement resource quantity of different subjects. In a case where the processing of the settlement resource quantity of different subjects is completed, the accounting platform generates a resource accounting report. In a case where the resource accounting report is generated, the accounting platform controls the accounting node to perform the day switching.

[0134] In a third part, in a case where the accounting task is completed, the accounting platform controls the accounting node to perform the day switching.

[0135] In a possible implementation, in a case where the accounting task is completed, the accounting platform performs balance checking on resource transfer data of the accounting node, the resource transfer data including resource transfer-out data and resource transfer-in data. In a case where the resource transfer data passes the balance checking, the accounting platform controls the accounting node to perform the day switching.

[0136] The balance checking is a basic accounting checking method, in which, under the debit-credit accounting method, there is a debit for a credit, and the debit and the credit are equal, so as to reduce accounting errors by comparing the balance of the debit and the credit.

[0137] For example, the plurality of task nodes further include a financial node, in a case where the accounting task is completed, the accounting platform performs balance checking on resource transfer data of the accounting node. In a case where the resource transfer-out data and the resource transfer-in data are the same, the accounting platform sends a day switching instruction to the financial node, the day switching instruction being used to instruct the financial node to perform the day switching. In a case where the financial node completes the day switching, the accounting platform controls the accounting node to perform the day switching.

[0138] The financial node is a task node corresponding to a financial department, the financial department being a department for producing enterprise financial reports, and being the last node on the day switching link, that is, the last node for collecting upstream transaction data and performing the day switching.

[0139] Optionally, in a case where any task node of the plurality of task nodes completes the day switching, the accounting platform generates a day switching log of the task node. That is, a log is generated in a database whenever a task node on a day switching link completes the day switching, so as to facilitate tracking of the execution of the link.

[0140] 308、In a case where the plurality of task nodes all complete the day switching, the accounting platform generates a day switching log of the current date.

[0141] In order to make the technical solutions provided by the embodiments of the present specification clearer, the following will be combined with Figure 4 The above steps 302-308 are described.

[0142] Referring to Figure 4 In the case of reaching the day change time of the current date, the accounting platform performs the end-of-day change management task and the end-of-day change accounting task, and promotes the end-of-day change by managing the end-of-day change schedule and accounting for the end-of-day change schedule. The accounting platform obtains the task configuration of the day processing task of the current date, and obtains a plurality of task nodes from the task configuration. The accounting platform performs exclusive lock control on the plurality of task nodes, determines the decision accounting day state, and the decision accounting day state is used to indicate whether the day processing task is completed. In the case where the day processing task is not completed, the accounting platform creates the end-of-day change log, that is, the day change log of the current date. The accounting platform promotes the plurality of task nodes to change the day according to the target day change order, and in the control process, the upstream nodes of the accounting node are promoted to change the day first. In the case where the upstream node completes the day change, the accounting platform performs completion detection on the upstream node, and in the process of performing completion detection on the upstream node, the accounting platform performs message backlog checking to determine whether there is unprocessed day change data, so as to avoid missing day change data. After completing the message backlog checking, the accounting platform queries the state of the day change data stored in the database table, and the state includes completed day change and uncompleted day change. The accounting platform filters the day change data stored in the database table based on the state of the day change data, obtains reference day change data, and the state of the reference day change data is uncompleted day change. The accounting platform performs data splitting on the reference day change data, and performs day change on the split reference day change data. In the case where the completion detection on the upstream node is completed, the accounting platform performs accounting node detection on the accounting node. In the case where the accounting node detection is completed, the accounting platform performs balance checking on the resource transfer data of the accounting node. In the case where the resource transfer data passes the balance checking, the accounting platform sends a day change instruction to the financial node, and the day change instruction is used to instruct the financial node to change the day. In the case where the financial node completes the day change, the accounting platform controls the accounting node to change the day.

[0143] All the optional technical solutions described above can be combined to form optional embodiments of the present specification, which will not be described one by one here.

[0144] Through the technical solutions provided by the embodiments of the present specification, in the case of reaching the day change time of the current date, a plurality of task nodes to be changed are obtained, and the types of different task nodes are different. Based on the types of the task nodes and the day change dependency relationship between the plurality of task nodes, the target day change order of the plurality of task nodes is determined. The plurality of task nodes are controlled to change the day according to the target day change order, which can complete the day change of the plurality of different types of task nodes, reduce the difficulty of day change, and improve the efficiency of day change.

[0145] Figure 5 is a structural schematic diagram of a task node-based time-switching device provided by an embodiment of the present specification, referring to Figure 5 The device comprises a task node acquisition module 501, a target time-switching sequence determination module 502, and a time-switching control module 503.

[0146] The task node acquisition module 501 is configured to, in the case of reaching a time-switching time of a current date, acquire a plurality of task nodes to be subjected to time switching, wherein different task nodes are of different types.

[0147] The target time-switching sequence determination module 502 is configured to determine a target time-switching sequence of the plurality of task nodes based on the types of the task nodes and a time-switching dependency relationship between the plurality of task nodes.

[0148] The time-switching control module 503 is configured to control the plurality of task nodes to perform time switching in the target time-switching sequence.

[0149] In a possible implementation, the task node acquisition module 501 is configured to, in the case of reaching a time-switching time of a current date, acquire a daily processing task of the current date, wherein the daily processing task is a time-switching task to be executed, and determine a plurality of task nodes corresponding to the daily processing task.

[0150] In a possible implementation, the target time-switching sequence determination module 502 is configured to determine an initial time-switching sequence of the plurality of task nodes based on the types of the task nodes, and adjust the initial time-switching sequence based on the time-switching dependency relationship between the plurality of task nodes to obtain the target time-switching sequence.

[0151] In a possible implementation, the target time-switching sequence determination module 502 is configured to determine at least one node set from the plurality of task nodes, wherein the node set comprises at least two task nodes, and the task nodes in the node set have a time-switching dependency relationship, and adjust the positions of the task nodes in the at least one node set in the initial time-switching sequence so that the task nodes in the same node set are adjacent to obtain the target time-switching sequence.

[0152] In a possible implementation, the plurality of task nodes comprise an accounting node and a plurality of transaction nodes, and the accounting node is after the plurality of transaction nodes in the target time-switching sequence, and the time-switching control module 503 is configured to control the plurality of transaction nodes to perform time switching in sequence according to the target time-switching sequence, perform completion detection on the plurality of transaction nodes and execute an accounting task of the accounting node in the case that the plurality of transaction nodes complete time switching, and control the accounting node to perform time switching in the case that the accounting task is completed.

[0153] In a possible implementation, the day switching control module 503 is configured to, in a case where the plurality of transaction nodes complete day switching, acquire day switching data of the plurality of transaction nodes and a day switching state of each of the day switching data, the day switching state being used to indicate whether day switching is completed. In a case where the day switching state of each of the day switching data is that day switching is completed, the accounting task of the accounting node is performed.

[0154] In a possible implementation, the day switching control module 503 is configured to, in a case where the day switching state of each of the day switching data is that day switching is completed, process settlement resource amounts of different subjects. In a case where the settlement resource amounts of different subjects are processed, a resource accounting report is generated.

[0155] In a possible implementation, the day switching control module 503 is configured to, in a case where the accounting task is completed, balance check resource transfer data of the accounting node, the resource transfer data including resource transfer-out data and resource transfer-in data. In a case where the resource transfer data passes the balance check, the accounting node is controlled to perform day switching.

[0156] In a possible implementation, the plurality of task nodes further include a finance node, and the day switching control module 503 is configured to, in a case where the resource transfer data passes the balance check, send a day switching instruction to the finance node, the day switching instruction being used to instruct the finance node to perform day switching. In a case where the finance node completes day switching, the accounting node is controlled to perform day switching.

[0157] In a possible implementation, the apparatus further includes:

[0158] A log generation module is configured to, in a case where any of the plurality of task nodes completes day switching, generate a day switching log of the task node. And / or, in a case where the plurality of task nodes all complete day switching, generate a day switching log of the current date.

[0159] It should be noted that the task node-based day switching apparatus provided in the above embodiments is only used as an example for division of the above functional modules when performing day switching based on task nodes. In actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the task node-based day switching apparatus provided in the above embodiments and the task node-based day switching method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0160] The technical solution provided by the embodiments of the present specification can, in the case of reaching the time of day change of the current date, acquire a plurality of task nodes to be subjected to day change, and the types of different task nodes are different. Based on the types of the task nodes and the day change dependency relationship between the plurality of task nodes, the target day change sequence of the plurality of task nodes is determined. The plurality of task nodes are controlled to perform day change according to the target day change sequence, which can complete day change of a plurality of different types of task nodes, reduce the difficulty of day change, and improve the efficiency of day change.

[0161] The embodiments of the present specification provide a computer device for executing the above method, and the computer device can be implemented as the above accounting platform.

[0162] Figure 6 FIG. 1 is a structural schematic diagram of a computer device provided by the embodiments of the present specification. The computer device 600 can be a smart phone, a tablet computer, a notebook computer, or a desktop computer. The computer device 600 can also be referred to as a user device, a portable computer device, a laptop computer device, a desktop computer device, and other names.

[0163] Generally, the computer device 600 includes one or more processors 601 and one or more memories 602.

[0164] The processor 601 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 can also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 601 can also include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.

[0165] The memory 602 can include one or more computer-readable storage media. The computer-readable storage media can be non-transitory. The memory 602 can also include high-speed random access memory and can include nonvolatile memory, such as one or more magnetic disk storage devices, optical storage devices, flash memory devices, or other nonvolatile solid-state storage devices.

[0166] In some embodiments, the computer device 600 can further optionally include a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602, and the peripheral device interface 603 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 603 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 604, a display screen 605, a camera component 606, an audio circuit 607, and a power supply 608.

[0167] The peripheral device interface 603 can be used to connect at least one peripheral device related to input / output to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.

[0168] The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 604 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.

[0169] The display screen 605 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 is further configured to capture touch signals on or above the surface of the display screen 605. The touch signals can be input to the processor 601 as control signals for processing. In this case, the display screen 605 can be further configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard.

[0170] The camera assembly 606 is configured to capture images or videos. Optionally, the camera assembly 606 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is disposed on the front panel of the computer device, and the rear-facing camera is disposed on the back of the computer device.

[0171] The audio circuit 607 can include a microphone and a speaker. The microphone is configured to capture sound waves from the user and the environment, and convert the sound waves into electrical signals input to the processor 601 for processing, or input to the radio frequency circuit 604 for voice communication.

[0172] The power supply 608 is configured to supply power to the various components in the computer device 600. The power supply 608 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery.

[0173] In some embodiments, the computer device 600 further includes one or more sensors 609. The one or more sensors 609 include, but are not limited to, an acceleration sensor 610, a gyroscope sensor 611, a pressure sensor 612, an optical sensor 613, and a proximity sensor 614.

[0174] The acceleration sensor 610 is configured to detect the acceleration in three coordinate axes of a coordinate system established by the computer device 600.

[0175] The gyroscope sensor 611 is configured to calculate the orientation and rotation angle of the computer device 600. The gyroscope sensor 611 can work with the acceleration sensor 610 to capture the 3D motion of the user with respect to the computer device 600.

[0176] The pressure sensor 612 can be disposed on the side frame of the computer device 600 and / or under the display screen 605. When the pressure sensor 612 is disposed on the side frame of the computer device 600, the pressure sensor 612 can detect the holding signal of the user with respect to the computer device 600, and the processor 601 can perform left-hand / right-hand recognition or shortcut operation based on the holding signal captured by the pressure sensor 612. When the pressure sensor 612 is disposed under the display screen 605, the processor 601 can control the operable control on the UI based on the pressure operation of the user with respect to the display screen 605.

[0177] An optical sensor 613 is used to collect ambient light intensity. In one embodiment, a processor 601 can control the display brightness of a display screen 605 based on the ambient light intensity collected by the optical sensor 613.

[0178] The proximity sensor 614 is used to detect the distance between the user and the front of the computer device 600.

[0179] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on the computer device 600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0180] Figure 7 This is a schematic diagram of a server structure provided in an embodiment of this specification. The server 700 can vary significantly due to differences in configuration or performance. It may include one or more Central Processing Units (CPUs) 701 and one or more memories 702. The one or more memories 702 store at least one computer program, which is loaded and executed by the one or more processors 701 to implement the methods provided in the various method embodiments described above. Of course, the server 700 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 700 may also include other components for implementing device functions, which will not be elaborated upon here.

[0181] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the task node-based day-switching method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0182] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the above-described task node-based day-switching method.

[0183] In some embodiments, the computer program involved in the embodiments of the present specification can be deployed on a computer device for execution, or on multiple computer devices located in one place, or on multiple computer devices distributed in multiple places and interconnected through a communication network, which can constitute a blockchain system.

[0184] Those of ordinary skill in the present art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by programs instructing relevant hardware, which can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0185] The above is only an optional embodiment of the present specification, and is not intended to limit the present specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present specification shall be included in the protection scope of the present specification.

Claims

1. A daily task switching method based on task nodes, the method comprising: When the day-cutting time of the current date arrives, obtain multiple task nodes to be cut. The types of different task nodes are different, including accounting nodes and multiple transaction nodes. Based on the type of each task node and the daily cutting dependency relationship between the multiple task nodes, the target daily cutting order of the multiple task nodes is determined, in which the accounting node is placed after the multiple transaction nodes in the target daily cutting order; According to the target daily switching order, the multiple transaction nodes are controlled to perform daily switching in sequence; When the multiple transaction nodes complete the day-cut, multiple day-cut data of the multiple transaction nodes and the day-cut status of each day-cut data are obtained, and the day-cut status is used to indicate whether the day-cut is completed; If the daily cut status of each of the aforementioned daily cut data is "completed", then the accounting task of the accounting node is executed. Once the accounting task is completed, control the accounting node to perform daily switching.

2. The method according to claim 1, wherein obtaining multiple task nodes to be subject to day-switching upon reaching the day-switching time of the current date includes: Upon reaching the day-cut time of the current date, obtain the daily processing task for the current date, which is the day-cut task to be executed; Determine the plurality of task nodes corresponding to the daily processing task.

3. The method according to claim 1, wherein determining the target daily cutting order of the multiple task nodes based on the type of each task node and the daily cutting dependency relationship between the multiple task nodes includes: Based on the type of each task node, determine the initial daily cutting order of the multiple task nodes; Based on the daily cutting dependencies among the multiple task nodes, the initial daily cutting order is adjusted to obtain the target daily cutting order.

4. The method according to claim 3, wherein adjusting the initial daily cutting order based on the daily cutting dependency relationship among the plurality of task nodes to obtain the target daily cutting order includes: Determine at least one node set from the plurality of task nodes, the node set comprising at least two task nodes, the task nodes in the node set having a daily dependency relationship; In the initial day-cutting sequence, the positions of the task nodes in the at least one node set are adjusted so that the task nodes in the same node set are adjacent to each other, thereby obtaining the target day-cutting sequence.

5. The method according to claim 1, wherein when the daily cutting status of each of the daily cutting data is "completed", executing the accounting task of the accounting node includes: When the daily cut status of each of the aforementioned daily cut data is "completed", the settlement resource quantity of different subjects is processed; After processing the settlement resource quantities for different subjects, a resource accounting report is generated.

6. The method according to claim 1, wherein controlling the accounting node to perform daily switching upon completion of the accounting task comprises: Upon completion of the accounting task, a balance check is performed on the resource transfer data of the accounting node, wherein the resource transfer data includes resource transfer-out data and resource transfer-in data. If the resource transfer data passes the balance check, the accounting node is controlled to perform daily switching.

7. The method according to claim 6, wherein the plurality of task nodes further includes a financial node, and the step of controlling the accounting node to perform daily switching when the resource transfer data passes the balance check includes: If the resource transfer data passes the balance check, a daily cut-off instruction is sent to the financial node, which instructs the financial node to perform a daily cut-off. When the financial node completes its daily cut, the accounting node is controlled to perform its daily cut.

8. The method according to claim 1, further comprising: If any of the multiple task nodes completes the daily cut, a daily cut log for that task node is generated. And / or, If all the task nodes have completed the daily cut-off, a daily cut-off log for the current date is generated.

9. A task node-based day-switching device, the device comprising: The task node acquisition module is used to acquire multiple task nodes to be cut off when the day-cutting time of the current date arrives. Different task nodes have different types, including accounting nodes and multiple transaction nodes. The target daily cutting order determination module is used to determine the target daily cutting order of the multiple task nodes based on the type of each task node and the daily cutting dependency relationship between the multiple task nodes, wherein the accounting node is after the multiple transaction nodes in the target daily cutting order; The day-cutting control module is used for: According to the target daily switching order, the multiple transaction nodes are controlled to perform daily switching in sequence; When the multiple transaction nodes complete the day-cut, multiple day-cut data of the multiple transaction nodes and the day-cut status of each day-cut data are obtained, and the day-cut status is used to indicate whether the day-cut is completed; If the daily cut status of each of the aforementioned daily cut data is "completed", then the accounting task of the accounting node is executed. Once the accounting task is completed, control the accounting node to perform daily switching.

10. A computer device comprising one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, the computer program being loaded and executed by the one or more processors to implement the task node-based day-switching method as described in any one of claims 1 to 8.

11. A computer-readable storage medium storing at least one computer program, the computer program being loaded and executed by a processor to implement the task node-based day-switching method as described in any one of claims 1 to 8.

12. A computer program product comprising a computer program that, when executed by a processor, implements the task node-based day-switching method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Daily switching method and device for bank system

    CN113254348A

  • Daily switching data processing method and device, computer equipment and storage medium

    CN116225781A