CN113448380A - Method and device for synchronously switching accounting dates - Google Patents

Method and device for synchronously switching accounting dates Download PDF

Info

Publication number
CN113448380A
CN113448380A CN202110783233.3A CN202110783233A CN113448380A CN 113448380 A CN113448380 A CN 113448380A CN 202110783233 A CN202110783233 A CN 202110783233A CN 113448380 A CN113448380 A CN 113448380A
Authority
CN
China
Prior art keywords
accounting
switching
date
shared data
data unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110783233.3A
Other languages
Chinese (zh)
Inventor
简季铭
熊维
闫琨
邢海岚
赵书祥
朱江波
池振强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110783233.3A priority Critical patent/CN113448380A/en
Publication of CN113448380A publication Critical patent/CN113448380A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method and a device for synchronously switching accounting dates, which relate to the technical field of distributed systems, wherein the method comprises the following steps: switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; the host core node is selected as a standard accounting reference system based on a transaction amount; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit; the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day; when each distributed core unit receives the online transaction request, the current accounting date is obtained from the distributed core shared data unit, and the online transaction request is processed according to the current accounting date. The invention can realize synchronous switching of the accounting dates of the multiple systems of the bank, ensure that the bank can provide uniform account processing service to the outside and improve the user experience.

Description

Method and device for synchronously switching accounting dates
Technical Field
The invention relates to the technical field of distributed systems, in particular to a method and a device for synchronously switching accounting dates.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The existing bank system has two or more sets of systems for providing services to the outside, which may cause the inconsistency of the accounting date, especially the inconsistency of the accounting. A synchronization method is needed to unify accounting dates and provide a unified accounting time standard to customers.
Disclosure of Invention
The embodiment of the invention provides a method for synchronously switching accounting dates, which is used for synchronously switching the accounting dates of multiple systems in a bank, is applied to a core bank system and comprises the following steps: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; the method comprises the following steps:
switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
after receiving the accounting date switching message, the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day;
when each distributed core unit receives the online transaction request, the current accounting date is obtained from the distributed core shared data unit, and the online transaction request is processed according to the current accounting date.
The embodiment of the invention also provides a device for synchronously switching the accounting dates, which is used for synchronously switching the accounting dates of the multiple systems in the bank, is applied to a core bank system and comprises the following components: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; the device includes:
the host core node is used for switching the accounting date from T day to T +1 day at the end of each day and carrying out batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
the distributed core shared data unit is used for switching the public accounting date in the distributed core shared data unit to T +1 day after receiving the accounting date switching message;
each distributed core unit is used for acquiring the current accounting date from the distributed core shared data unit when the online transaction request is received, and processing the online transaction request according to the current accounting date.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the method for synchronously switching the accounting dates.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for synchronously switching the accounting dates.
In the embodiment of the invention, the scheme for synchronously switching the accounting dates is applied to a core bank system and comprises the following steps: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; by: switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit; after receiving the accounting date switching message, the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day; when each distributed core unit receives the online transaction request, the current accounting date is acquired from the distributed core shared data unit, the online transaction request is processed according to the current accounting date, synchronous switching of the accounting dates of multiple systems of a bank can be achieved, the bank can be guaranteed to provide uniform account processing service, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart illustrating a method for synchronously switching accounting dates according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for switching accounting date synchronization according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for synchronously switching accounting dates according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an apparatus for synchronously switching accounting dates according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for synchronously switching accounting dates according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing embodiments of the present invention, terms related to the embodiments of the present invention will be described.
Accounting date: the date switching can be manual or based on specific conditions, for example, the date switching MQ message of the system working date generated by the core bank system every day can be adopted to carry out the date switching of the system, so as to achieve the requirement of keeping the date switching synchronization with the core bank system.
The embodiment of the invention provides a scheme for synchronously switching accounting dates, which selects a main system and sets the main system as a reference standard of the accounting dates of other systems. When the system is switched on day, the day-switching and batch operation of the system can be completed firstly, and then the selected day-switching accounting time is sent to other systems, and the other systems perform day-switching and batch processing based on the time. The following describes the scheme of synchronous switching of accounting dates in detail.
Fig. 1 is a schematic flow chart of a method for synchronously switching accounting dates in an embodiment of the present invention, where the method for synchronously switching accounting dates is applied to a core banking system, and includes: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; as shown in fig. 1, the method comprises the steps of:
step 101: switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
step 102: after receiving the accounting date switching message, the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day;
step 103: when each distributed core unit receives the online transaction request, the current accounting date is obtained from the distributed core shared data unit, and the online transaction request is processed according to the current accounting date.
The scheme for synchronously switching the accounting dates provided by the embodiment of the invention can realize synchronous switching of the accounting dates of multiple systems in a bank, ensure that the bank can provide uniform account processing service to the outside and improve user experience. The individual steps involved in the process are described in detail below.
1. The reference system is preselected based on the transaction amount. As shown in fig. 5, the existing core banking system is composed of a host core node and a plurality of distributed core units, and the transaction amount of the host core node is relatively large, the accounting date of the core banking system is mainly based on the host core node, the accounting date of the host core bank (node) is referred to by the plurality of distributed core units, and other units can be selected as reference systems. Namely, the core banking system may include: a host core node and a plurality of distributed core units, i.e., in one embodiment, the host core node is selected to be a standard accounting reference system based on a transaction amount.
2. And the core bank system switches the accounting date from the day T to the day T +1 for batch processing. The host core node firstly performs the daily end accounting date switching processing.
3. After the accounting date switching is completed, the host core node issues a daily switching message (accounting date switching message) to the distributed core shared data unit through a message queue mq (message queue). Of course, it is also possible that the host core node sends the accounting date switching message to a database for the distributed core unit to read the accounting date switching message. That is, in one embodiment, issuing a date counting switch message to the distributed core shared data unit after completing the date counting switch process may include: after the accounting date switching process is completed, an accounting date switching message is issued to the distributed core shared data unit through the message queue.
4. And after the distributed core shared data unit receives the day switching message, switching the public accounting date in the distributed core shared data unit to T +1 day, and finishing the switching processing of the current accounting date of the distributed core system.
In one embodiment, as shown in fig. 2, the method for switching accounting date synchronization may further include step 104: whether the public accounting date in the distributed core shared data unit is successfully switched to the T +1 day or not is detected, and the accuracy of synchronous switching of the accounting date is further improved.
5. When each unit of the distributed core receives the online transaction, the current accounting date is obtained from the distributed core shared data unit, and the transaction is processed by using the current latest accounting date.
The embodiment of the invention can solve the problem of consistency of accounting dates of multiple systems of the bank, so that the bank can provide uniform account processing for the outside, and the user experience is improved.
The embodiment of the invention also provides a device for synchronously switching the accounting dates, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the method for synchronously switching the accounting dates, the implementation of the device can refer to the implementation of the method for synchronously switching the accounting dates, and repeated parts are not described again.
Fig. 3 is a schematic structural diagram of an apparatus for synchronously switching accounting dates in an embodiment of the present invention, which is applied to a core banking system, and includes: a host core node and a plurality of distributed core units, the host core node being selected as a standard accounting reference system based on a transaction amount; as shown in fig. 3, the apparatus includes:
the host core node 01 is used for switching the accounting date from T day to T +1 day for batch processing at the end of each day; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
the distributed core shared data unit 02 is used for switching the public accounting date in the distributed core shared data unit to T +1 day after receiving the accounting date switching message;
each distributed core unit 03 is configured to, when receiving an online transaction request, obtain a current accounting date from the distributed core shared data unit, and process the online transaction request according to the current accounting date.
In one embodiment, the host core node is specifically selected to be a standard accounting reference system based on the transaction amount.
In one embodiment, as shown in fig. 4, the device for synchronously switching accounting dates may further include: and the detection unit 04 is used for detecting whether the public accounting date in the distributed core shared data unit is successfully switched to the T +1 day.
In one embodiment, the host core node is specifically configured to: after the accounting date switching process is completed, an accounting date switching message is issued to the distributed core shared data unit through the message queue.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the method for synchronously switching the accounting dates.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for synchronously switching the accounting dates.
In the embodiment of the invention, the scheme for synchronously switching the accounting dates is applied to a core bank system and comprises the following steps: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; by: switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit; after receiving the accounting date switching message, the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day; when each distributed core unit receives the online transaction request, the current accounting date is acquired from the distributed core shared data unit, the online transaction request is processed according to the current accounting date, synchronous switching of the accounting dates of multiple systems of a bank can be achieved, the bank can be guaranteed to provide uniform account processing service, and user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A synchronous switching method for accounting dates is applied to a core bank system and comprises the following steps: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; the method for synchronously switching the accounting dates comprises the following steps:
switching the accounting date from T day to T +1 day by the core node of the host computer at the end of each day, and performing batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
after receiving the accounting date switching message, the distributed core shared data unit switches the public accounting date in the distributed core shared data unit to T +1 day;
when each distributed core unit receives the online transaction request, the current accounting date is obtained from the distributed core shared data unit, and the online transaction request is processed according to the current accounting date.
2. The method of accounting date synchronization switching as claimed in claim 1, wherein said host core node is selected as a standard accounting reference system based on transaction amount.
3. The method for synchronized switching of accounting dates as set forth in claim 1, further comprising: and detecting whether the public accounting date in the distributed core shared data unit is successfully switched to T +1 day.
4. The method for switching accounting date synchronization of claim 1, wherein issuing a date counting switching message to the distributed core shared data unit after completing the accounting date switching process comprises: after the accounting date switching process is completed, an accounting date switching message is issued to the distributed core shared data unit through the message queue.
5. The utility model provides a device that accounting date switched in step, is applied to core bank system, includes: the system comprises a host core node and a plurality of distributed core units, wherein the host core node is selected as a standard accounting reference system; the device that the accounting date switches in step includes:
the host core node is used for switching the accounting date from T day to T +1 day at the end of each day and carrying out batch processing; after the accounting date switching processing is completed, issuing a counting date switching message to a distributed core shared data unit;
the distributed core shared data unit is used for switching the public accounting date in the distributed core shared data unit to T +1 day after receiving the accounting date switching message;
each distributed core unit is used for acquiring the current accounting date from the distributed core shared data unit when the online transaction request is received, and processing the online transaction request according to the current accounting date.
6. The apparatus for accounting date synchronous switching as claimed in claim 5, wherein said host core node is selected as a standard accounting reference system based on transaction amount.
7. The apparatus for synchronously switching accounting dates according to claim 5, further comprising: and the detection unit is used for detecting whether the public accounting date in the distributed core shared data unit is successfully switched to T +1 day.
8. The apparatus for accounting date synchronous hand-off as claimed in claim 5, wherein said host core node is specifically configured to: after the accounting date switching process is completed, an accounting date switching message is issued to the distributed core shared data unit through the message queue.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202110783233.3A 2021-07-12 2021-07-12 Method and device for synchronously switching accounting dates Pending CN113448380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110783233.3A CN113448380A (en) 2021-07-12 2021-07-12 Method and device for synchronously switching accounting dates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110783233.3A CN113448380A (en) 2021-07-12 2021-07-12 Method and device for synchronously switching accounting dates

Publications (1)

Publication Number Publication Date
CN113448380A true CN113448380A (en) 2021-09-28

Family

ID=77815860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110783233.3A Pending CN113448380A (en) 2021-07-12 2021-07-12 Method and device for synchronously switching accounting dates

Country Status (1)

Country Link
CN (1) CN113448380A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090605A (en) * 2021-11-30 2022-02-25 中国建设银行股份有限公司 Daily cutting method and device, computer equipment and storage medium
CN114726921A (en) * 2022-04-13 2022-07-08 中国银行股份有限公司 Data processing method and device under unitized architecture
CN114815967A (en) * 2022-05-16 2022-07-29 中国银行股份有限公司 Synchronous switching method and device for accounting date and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090605A (en) * 2021-11-30 2022-02-25 中国建设银行股份有限公司 Daily cutting method and device, computer equipment and storage medium
CN114726921A (en) * 2022-04-13 2022-07-08 中国银行股份有限公司 Data processing method and device under unitized architecture
CN114815967A (en) * 2022-05-16 2022-07-29 中国银行股份有限公司 Synchronous switching method and device for accounting date and electronic equipment

Similar Documents

Publication Publication Date Title
CN113448380A (en) Method and device for synchronously switching accounting dates
CN102456031B (en) A kind of Map Reduce system and the method processing data stream
CN110502310B (en) Time synchronization method and device of virtual machine
CN104182283B (en) A kind of task synchronization method
CN110955523A (en) Service processing method and device
CN107798120B (en) Data conversion method and device
CN111736950B (en) Accelerator resource adding method and related device of virtual machine
CN109981715A (en) A kind of method and device of session management
CN107153679B (en) Extraction statistical method and system for semi-structured big data
CN111680023A (en) Migration data checking method and device
CN109656709B (en) Codis cluster capacity expansion method and device
CN104616197B (en) A kind of dispatching method and device of separable inquiry transaction data
CN1327656C (en) Method for updating system apparatus
CN113382088B (en) Mobile phone banking message pushing method and device
CN112037069B (en) Fund transfer certificate generation method and device
CN111738823A (en) Bank peripheral system and sun-cutting method thereof
CN107241303A (en) A kind of public notification of information method and system
CN112395081A (en) Resource online automatic recovery method, system, server and storage medium
CN107103003B (en) Method for acquiring data in link, acquisition equipment, processing equipment and system
CN115269161B (en) Abnormal process reverse rollback method and system
CN110046192B (en) System and method for generating serial number of request information
CN108921953B (en) Asynchronous distribution method and device for equipment instructions
CN114584567B (en) Block chain-based batch operation processing method and device
CN114138779A (en) Staged account processing method and system based on preprocessing
CN113205413B (en) Mobile phone bank data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination