Account processing method, device, electronic device and computer-readable medium
By receiving and saving account declaration information and automatically processing the emergency plan of the State Administration of Foreign Exchange, the problems of banks' slow response and large manual processing volume are solved, and the efficiency of account processing is improved.
Patent Information
- Application Number
- CN202110768086.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-07
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-07-07
AI Technical Summary
The bank's untimely response to the SAFE's emergency plan and the heavy workload of manual processing resulted in low business processing efficiency.
Generate account declaration information by receiving account processing requests and save it to a preset location when the SAFE emergency plan is activated. Perform account declaration when the interface is available. Support automatic reversal and exception handling to reduce manual intervention.
It achieved timely response to the emergency plan of the State Administration of Foreign Exchange, improved the speed of accounting processing, and reduced the pressure and workload of handling emergency plans.
Smart Images

Figure CN113487413B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of automatic programming technology, and more particularly to an accounting processing method, device, electronic device and computer-readable medium. Background Art
[0002] Currently, when banks process personal foreign exchange settlement and sales business, when the State Administration of Foreign Exchange activates the emergency plan, they can only notify the bank branch through a business announcement, and then notify each outlet. The real-time nature of business processing is poor, and manual recording is required, resulting in low efficiency.
[0003] During the implementation of this application, the inventors discovered that the prior art has at least the following problems:
[0004] The bank did not respond promptly to the SAFE's emergency plan and the workload of manual processing was heavy. Summary of the Invention
[0005] In view of this, the embodiments of the present application provide an accounting processing method, device, electronic device and computer-readable medium, which can solve the problems of existing banks' untimely response to the emergency plans of the State Administration of Foreign Exchange and the large workload of manual processing.
[0006] To achieve the above objectives, according to one aspect of an embodiment of the present application, an accounting processing method is provided, comprising:
[0007] Receive accounting processing requests and generate accounting reporting information;
[0008] In response to determining that the interface identifier of the accounting processing node is the first preset identifier, saving the accounting declaration information to a preset location;
[0009] In response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, the account processing node is called to perform account declaration based on the account declaration information saved in the preset location.
[0010] Optionally, before receiving the accounting processing request, the method further includes:
[0011] Obtaining a list of accounting processing tasks, and then determining the preset execution time of each accounting processing task in the accounting processing task list;
[0012] In response to determining that the current time reaches one of the preset execution times, an accounting processing request is generated according to the accounting processing task corresponding to the preset execution time.
[0013] Optionally, performing account declaration based on account information saved to a preset location includes:
[0014] In response to determining that the account declaration based on the account information saved in the preset location has failed, the currently declared account is automatically reversed.
[0015] Optionally, the method further comprises:
[0016] Get the query ID in the accounting processing request;
[0017] Call the account processing node to query the account declaration information corresponding to the query identifier.
[0018] Optionally, the accounting processing method further includes:
[0019] Get the modification configuration information corresponding to the accounting processing request;
[0020] Based on the modified configuration information, the account declaration information corresponding to the account processing request is modified.
[0021] Optionally, the accounting processing method further includes:
[0022] Cancel the accounting processing task corresponding to the accounting processing request.
[0023] Optionally, generate account declaration information, including:
[0024] Determine the corresponding exchange rate based on accounting processing requests;
[0025] Generate accounting declaration information based on exchange rates.
[0026] Optionally, before performing the account declaration based on the account information saved in the preset location, the method further includes:
[0027] In response to determining that the accounting processing node is called abnormally, the corresponding accounting declaration information when the accounting processing node is called abnormally is recorded, and then the corresponding accounting declaration information when the accounting processing node is called abnormally is pushed to a preset offline node for account declaration.
[0028] In addition, the present application also provides an accounting processing device, including:
[0029] a receiving unit configured to receive an accounting processing request and generate accounting declaration information;
[0030] a storage unit configured to, in response to determining that the interface identifier of the accounting processing node is the first preset identifier, store the accounting declaration information in a preset location;
[0031] The account processing unit is configured to call the account processing node in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, so as to perform account declaration based on the account declaration information saved in the preset location.
[0032] Optionally, the accounting processing apparatus further includes a request generating unit configured to:
[0033] Obtaining a list of accounting processing tasks, and then determining the preset execution time of each accounting processing task in the accounting processing task list;
[0034] In response to determining that the current time reaches one of the preset execution times, an accounting processing request is generated according to the accounting processing task corresponding to the preset execution time.
[0035] Optionally, the accounting processing unit is further configured to:
[0036] In response to determining that the account declaration based on the account information saved in the preset location has failed, the currently declared account is automatically reversed.
[0037] Optionally, the accounting processing device further includes a query unit configured to:
[0038] Get the query ID in the accounting processing request;
[0039] Call the account processing node to query the account declaration information corresponding to the query identifier.
[0040] Optionally, the accounting processing device further includes a modification unit configured to:
[0041] Get the modification configuration information corresponding to the accounting processing request;
[0042] Based on the modified configuration information, the account declaration information corresponding to the account processing request is modified.
[0043] Optionally, the accounting processing device further includes a revocation unit configured to:
[0044] Cancel the accounting processing task corresponding to the accounting processing request.
[0045] Optionally, the receiving unit is further configured to:
[0046] Determine the corresponding exchange rate based on accounting processing requests;
[0047] Generate accounting declaration information based on exchange rates.
[0048] Optionally, the accounting processing device further includes an exception processing unit configured to:
[0049] In response to determining that the accounting processing node is called abnormally, the corresponding accounting declaration information when the accounting processing node is called abnormally is recorded, and then the corresponding accounting declaration information when the accounting processing node is called abnormally is pushed to a preset offline node for account declaration.
[0050] In addition, the present application also provides an accounting processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the accounting processing method as described above.
[0051] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the accounting processing method as described above is implemented.
[0052] One embodiment of the above invention has the following advantages or beneficial effects: the present application generates account declaration information by receiving an account processing request; in response to determining that the interface identifier of the account processing node is a first preset identifier, saves the account declaration information to a preset location; in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to a second preset identifier, calls the account processing node to perform an account declaration based on the account declaration information saved to the preset location. This enables timely response to the emergency plan of the account processing node (such as the State Administration of Foreign Exchange), thereby improving the account processing speed, reducing the account processing pressure when the emergency plan is activated on the account processing node, and reducing the account processing workload.
[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are provided to facilitate a better understanding of the present application and do not constitute an undue limitation on the present application.
[0055] Figure 1 This is a schematic diagram of the main process of the accounting processing method according to the first embodiment of the present application;
[0056] Figure 2 is a schematic diagram of the main process of the accounting processing method according to the second embodiment of the present application;
[0057] Figure 3 2 is a schematic diagram of an application scenario of the accounting processing method according to the third embodiment of the present application;
[0058] Figure 4 is a schematic diagram of the main units of the accounting processing device according to an embodiment of the present application;
[0059] Figure 5 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
[0060] Figure 6 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following description of exemplary embodiments of the present application is made in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0062] Figure 1 This is a schematic diagram of the main process of the accounting processing method according to the first embodiment of the present application. Figure 1 As shown, the accounting treatment methods include:
[0063] Step S101: receiving an accounting processing request and generating accounting declaration information.
[0064] In this embodiment, the execution subject of the account processing method (for example, a server) can receive an account processing request through a wired connection or a wireless connection. The account processing request can be a request for a customer to declare, query, modify, or cancel the quota for personal foreign exchange settlement and sale. The execution subject can obtain an identifier in the account processing request (for example, the identifier can be a country name) and obtain the latest foreign exchange rate based on the identifier. For example, the identifier can be A or B, representing country A and country B respectively. The execution subject can then determine the currency exchange direction based on the account processing request (for example, if the currency of country A is exchanged into the currency of country B, the exchange direction is A to B, which can be represented by AB. If the exchange direction is B to A, it can be represented by BA. This application does not specifically limit the exchange direction). The execution subject can then obtain a real-time exchange rate (currency exchange rate) based on the exchange direction and the identifier of the corresponding country. For example, for example, A yuan (currency of country A) / B yuan (currency of country B) is 120.78 / 121.08, that is, the exchange rate for exchanging A yuan for B yuan.
[0065] After determining the exchange rate, the executing entity can call the account declaration template, obtain the corresponding field values based on the fields in the account declaration template, and then generate the account declaration information based on the account declaration template with the field values filled in. For example, the account declaration information may include: the declarant's resident country code, advance payment, whether it is a bonded area, transaction code, amount (for example, the declared amount of payment), transaction remarks (general trade export payment or general trade advance payment), etc. This application does not limit the specific content of the account declaration information.
[0066] In this embodiment, before receiving the accounting processing request, the accounting processing method further includes:
[0067] The execution entity obtains a list of accounting processing tasks and then determines a preset execution time for each accounting processing task in the list. Specifically, each accounting processing task in the list may be an asynchronous task. A preset execution time may be set for each asynchronous task so that the corresponding asynchronous task is executed according to the preset execution time.
[0068] In response to determining that the current time has reached one of the preset execution times, the execution entity generates an accounting processing request based on the accounting processing task corresponding to the preset execution time. Specifically, when the current time reaches any of the preset execution times, an accounting processing request corresponding to the accounting processing task corresponding to the reached preset execution time is generated, and the corresponding accounting processing task is executed based on the request.
[0069] Step S102: In response to determining that the interface identifier of the accounting processing node is the first preset identifier, save the accounting declaration information to a preset location.
[0070] Specifically, the first preset identifier can be, for example, a binary number 0, and the first preset identifier is used to indicate that the interface cannot be called (for example, when the emergency plan switch is turned on, the interface cannot be called). Of course, the first preset identifier can also be a binary number 1. This application does not limit the specific representation of the first preset identifier (the first preset identifier can be a binary number or a number in another base). When the executing entity determines that the interface identifier of the accounting processing node is the first preset identifier, that is, the interface is unavailable (that is, the emergency plan switch is turned on), the accounting declaration information can be saved in the emergency plan system, so that when the interface of the accounting processing node is callable, the interface of the accounting processing node can be called for supplementary declaration.
[0071] Step S103 : in response to determining that the interface identifier of the accounting processing node is converted from the first preset identifier to the second preset identifier, calling the accounting processing node to perform accounting declaration based on the accounting declaration information saved in the preset location.
[0072] When the executing entity determines that the interface identifier of the accounting processing node is converted from a first preset identifier (for example, 0) to a second preset identifier (for example, 1), that is, the accounting processing node is converted from non-callable to callable, the executing entity can call the accounting processing node to declare the stored accounting declaration information.
[0073] In this embodiment, before performing the account declaration based on the account information saved in the preset location, the method further includes:
[0074] In response to determining that an abnormality has occurred in the invocation of an accounting processing node, the corresponding accounting declaration information is recorded, and the corresponding accounting declaration information is then pushed to a preset offline node (e.g., a manual review node) for accounting declaration. For example, when an unrecognized abnormality (e.g., a timeout) occurs when the execution entity calls an accounting processing node, the abnormality can be recorded, and a query interface and a processing interface for the recorded abnormality are provided at the preset offline node (e.g., a manual review node), allowing the user to call the corresponding interfaces to query and process the abnormality.
[0075] In this embodiment, the account declaration is performed based on the account information saved in the preset location, including:
[0076] In response to determining that an account declaration based on account information saved to a preset location has failed, the execution entity automatically reverses (i.e., restores the program or data to the last correct state) the currently declared account, thereby achieving security, stability, and ease of use for account declaration.
[0077] In some optional implementations of this embodiment, the accounting processing method further includes:
[0078] Obtain the query identifier in the account processing request; call the account processing node to query the account declaration information corresponding to the query identifier. When a user wants to query a certain account declaration information, they can call the query interface of the execution entity and enter the query identifier (for example, the account declaration information number) to send a query request to the execution entity. After receiving the query request, the execution entity can obtain the account declaration information number to be queried and query based on the number to obtain the query result of the account declaration information.
[0079] In some optional implementations of this embodiment, the accounting processing method further includes:
[0080] Obtain modification configuration information corresponding to the accounting processing request; based on the modification configuration information, modify the accounting declaration information corresponding to the accounting processing request. The executing entity can obtain the query identifier in the accounting processing request, and then query and obtain the corresponding accounting declaration information, and then modify the queried accounting declaration information based on the modification configuration information corresponding to the accounting processing request. Specifically, the modification configuration information may include information such as the declared amount, the declarant, and whether it is a bonded area. This application does not limit the specific content of the modification configuration information.
[0081] In some optional implementations of this embodiment, the accounting processing method further includes:
[0082] In response to determining that the identifier in the accounting processing request corresponds to a cancellation operation, for example, identifier 4 (which can be any set value) corresponds to cancellation of accounting declaration, the accounting processing task corresponding to the accounting processing request is canceled.
[0083] This embodiment receives an account processing request and generates account declaration information; in response to determining that the interface identifier of the account processing node is a first preset identifier, saves the account declaration information to a preset location; and in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to a second preset identifier, calls the account processing node to perform an account declaration based on the account declaration information saved to the preset location. This enables timely response to emergency plans of the account processing node (such as the State Administration of Foreign Exchange), improves account processing speed, and reduces the pressure on the account processing node when the emergency plan is activated.
[0084] Figure 2 This is a schematic diagram of the main flow of the accounting processing method according to the second embodiment of the present application. Figure 2 As shown, the accounting treatment methods include:
[0085] Step S201: receiving an accounting processing request and generating accounting declaration information.
[0086] The principle of step S201 is similar to that of step S101 and will not be described again here.
[0087] Specifically, step S201 can also be implemented through steps S2011 to S2012:
[0088] Step S2011: Determine the corresponding exchange rate according to the accounting processing request.
[0089] The executing entity can obtain the corresponding country identifier according to the accounting processing request, and determine the exchange direction by the arrangement order of the country identifiers (for example, if the country identifier is BA, the exchange direction is the exchange of the currency of country B for the currency of country A; if the country identifier is AB, the exchange direction is the exchange of the currency of country A for the currency of country B. In addition, the exchange direction can also be determined by the correspondence between an exchange identifier in the accounting processing request and the preset exchange identifier and the exchange direction. This application does not limit the exchange identifier), and then the executing entity can accurately determine the latest exchange rate based on the country identifier and the exchange direction.
[0090] Step S2012: Generate account declaration information based on the exchange rate.
[0091] Step S202: In response to determining that the interface identifier of the accounting processing node is the first preset identifier, save the accounting declaration information to a preset location.
[0092] Step S203 : in response to determining that the interface identifier of the accounting processing node is converted from the first preset identifier to the second preset identifier, calling the accounting processing node to perform accounting declaration based on the accounting declaration information saved in the preset location.
[0093] The principle of step S202 is similar to that of step S203 and will not be repeated here.
[0094] Figure 3 This is a schematic diagram of an application scenario of the accounting processing method according to the third embodiment of the present application. The accounting processing method of the embodiment of the present application can be applied to the customer's foreign exchange account declaration scenario. Figure 3 As shown, a customer (referred to as a user in this application) initiates a personal foreign exchange settlement and sale transaction through mobile banking, online banking, or self-service channels, entering the transaction module of the executing entity (e.g., a server). Foreign exchange settlement and sale is a general term for both foreign exchange settlement and sale. Bank foreign exchange settlement and sale refers to the settlement and sale of foreign exchange conducted by banks for their clients and themselves, including forward foreign exchange settlement and sale performance data and option exercise data, but excluding interbank foreign exchange market transaction data. Bank foreign exchange settlement and sale statistics are collected at the time the RMB-foreign exchange exchange transaction occurs. Foreign exchange settlement, also known as "foreign exchange settlement," refers to the act of the owner of foreign exchange income selling their foreign exchange income to a designated foreign exchange bank, which then pays the equivalent amount in local currency at a certain exchange rate. Foreign exchange sale, also known as "foreign exchange sales," refers to the act of a designated foreign exchange bank selling foreign exchange to a foreign exchange user and receiving the equivalent amount in RMB based on the RMB exchange rate on the date of the transaction. The transaction module performs account information verification, price inquiries, accounting, and declaration processing; price inquiries invoke the price module, while declaration processing invokes the declaration module.
[0095] When executing a price inquiry, the transaction module can call the price module to access the quotation platform and access the latest SAFE conversion rate from external data sources (including the SAFE personal foreign exchange monitoring system and external price sources). It can then call the price module to refresh the SAFE conversion rate and update the foreign exchange quotation to the latest SAFE conversion rate (the foreign exchange quotation is the exchange rate between two currencies, or a ratio. For example, USD / JPY 120.78 / 121.08 refers to the exchange rate for converting USD into JPY, or vice versa. Since the bank's quotation is based on the real-time exchange rate of the international financial market plus a certain bid-ask spread, the exchange rate changes with changes in the international market). Based on the spread maintained by the business (the smallest floating unit, when the exchange rate changes, the difference in point fluctuations is called "spread", for example, when the USD / JPY (USDJPY) changes from 120.00 to 121.00, 121.00-120.00=1.00 yen, and the spread is 100 points. In this conversion, 0.0001 USD corresponds to 1 point, which depends on how many significant digits there are after the decimal point), and other information such as customer discounts, the customer price, cost price, and maximum customer discount price are calculated to call the price module for real-time market transaction price refresh, and determine the account declaration amount based on the latest foreign exchange quotation (i.e., the exchange rate updated in real time).
[0096] The execution entity's declaration module supports the entry, re-entry, modification, cancellation, and query of foreign exchange settlement and sales data. It also determines whether to directly access the SAFE Personal Foreign Exchange Monitoring System based on the emergency plan switch set for the business. If the execution entity determines that the emergency plan switch is on, it directly accesses the emergency plan module to save the declaration information (i.e., perform pre-recording of declarations) without directly accessing the SAFE Personal Foreign Exchange Monitoring System. If the execution entity determines that the emergency plan switch is off, it then submits the saved declaration information (i.e., performs supplementary declarations). If the emergency plan switch is off, it directly accesses the SAFE Personal Foreign Exchange Monitoring System for account declarations.
[0097] If an unrecognized exception (such as a timeout) occurs when directly accessing the SAFE's personal foreign exchange monitoring system, the system will invoke the exception monitoring module to record the exception (i.e., perform exception monitoring logging), generating an exception record that can be queried through the interface and manually addressed (i.e., perform exception query and handling). If a normal error message is returned (i.e., a clear declaration failure), the system will automatically roll back the account and the transaction will not occur.
[0098] For example, the system deployment architecture of the present application may include: a personal funds transaction component (including personal foreign exchange settlement and sales business), which may include application P8 servers * 12 (configuration information: X86 4C16G), P8 end-of-day servers * 6 (X864C16G), and P8 high-frequency servers * 6 (X86 8C32G). The component is connected to the P5-external online server cluster via the http protocol, and the cluster may include: P5 component server (X86 8C32G), P5 component server (X86 8C32G), and P5 component server (X86 8C32G). The P5-external online server cluster can be connected to the F5 cluster via the DMZ local area network via the http protocol, and the F5 cluster may include two F5 servers. The F5 cluster can be connected to the P5-external front-end service and MQ server (two MQs use HA equipment) via the http protocol, and the P5-external front-end service and MQ server may include two MQserver foreign exchange interface machines 2C8G. P5-external front-end service and MQ server can be connected to the external local area network through the message queue MQ, and then pass the MQ (message queue, for example, it can be an account processing request) to the message queue server MQ Server of the State Administration of Foreign Exchange through the external local area network for account declaration processing. Specifically, the application server of the personal fund transaction component is responsible for receiving and processing online transactions; the end-of-day server is responsible for processing scheduled batch processing; the high-frequency server is responsible for processing price access and calculation. P5-external online server cluster: receives external connection requests from the internal system. F5-cluster: receives requests from the "P5-external online server cluster" and performs load balancing to the "P5-external front-end service and MQ server". P5-external front-end service and MQ server: receives requests and directly connects to the external system (State Administration of Foreign Exchange) through MQ.
[0099] The embodiments of the present application can enable direct connection with the State Administration of Foreign Exchange (SAFE) for individual foreign exchange settlement and sales, allowing for timely response to emergency plans and improving the rate of account reporting. This allows for support for full-channel inquiries regarding individual foreign exchange settlement and sales quotas, full-channel foreign exchange settlement and sales transactions with quotas occupied, full-channel foreign exchange settlement and sales transactions without quotas occupied, direct connection with the SAFE to query foreign exchange settlement / purchase declaration information with quotas occupied, direct connection with the SAFE to query foreign exchange settlement / purchase declaration information without quotas occupied, direct connection to the SAFE to modify declaration information, direct connection to cancel declaration information, abnormal transaction processing, foreign exchange settlement and sales transactions under SAFE emergency plans, timed acquisition of SAFE conversion rates, and consistent processing of account reversals and declaration cancellations.
[0100] Figure 4 Schematic diagram of the main modules of the accounting processing device according to the embodiment of the present application. Figure 4As shown, the accounting processing device includes a receiving unit 401 , a storage unit 402 and an accounting processing unit 403 .
[0101] The receiving unit 401 is configured to receive an account processing request and generate account declaration information. The receiving unit 401 may include Figure 3 The transaction module and price module in .
[0102] The storage unit 402 is configured to save the account declaration information to a preset location in response to determining that the interface identifier of the account processing node is the first preset identifier. The storage unit 402 may include Figure 3 The emergency plan module and abnormal monitoring module in it.
[0103] The account processing unit 403 is configured to call the account processing node in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, so as to perform account declaration based on the account declaration information saved to the preset location. The account processing unit 403 may include Figure 3 The declaration module in .
[0104] In some embodiments, the accounting processing device further includes Figure 4 The request generation unit not shown in the figure is configured to: obtain a list of accounting processing tasks, and then determine the preset execution time of each accounting processing task in the accounting processing task list; in response to determining that the current time reaches a preset execution time among the preset execution times, generate an accounting processing request according to the accounting processing task corresponding to a preset execution time.
[0105] In some embodiments, the account processing unit 403 is further configured to: in response to determining that the account declaration based on the account information saved to the preset location fails, automatically reverse the currently declared account.
[0106] In some embodiments, the accounting processing device further includes Figure 4 The query unit not shown in the figure is configured to: obtain the query identifier in the account processing request; and call the account processing node to query the account declaration information corresponding to the query identifier.
[0107] In some embodiments, the accounting processing device further includes Figure 4 The modification unit not shown in the figure is configured to: obtain modification configuration information corresponding to the account processing request; and modify the account declaration information corresponding to the account processing request based on the modification configuration information.
[0108] In some embodiments, the accounting processing device further includes Figure 4 The cancellation unit not shown in the figure is configured to cancel the accounting processing task corresponding to the accounting processing request.
[0109] In some embodiments, the receiving unit 401 is further configured to: determine a corresponding exchange rate according to the account processing request; and generate account declaration information based on the exchange rate.
[0110] In some embodiments, the accounting processing device further includes Figure 4 The exception handling unit not shown in the figure is configured to: in response to determining that the accounting processing node call is abnormal, record the corresponding accounting declaration information when the accounting processing node call is abnormal, and then push the corresponding accounting declaration information when the accounting processing node call is abnormal to the preset offline node for account declaration.
[0111] It should be noted that the accounting processing method and the accounting processing device of the present application have a corresponding relationship in terms of specific implementation content, so the repeated content will not be explained again.
[0112] Figure 5 An exemplary system architecture 500 is shown to which the accounting processing method or accounting processing apparatus according to the embodiments of the present application can be applied.
[0113] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0114] Clients can use terminal devices 501, 502, and 503 to interact with server 505 via network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, and 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0115] The terminal devices 501 , 502 , and 503 may be various electronic devices that have an account processing screen and support web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0116] Server 505 can be a server that provides various services, such as a backend management server (for example only) that supports account processing requests submitted by clients using terminal devices 501, 502, and 503. The backend management server can receive account processing requests and generate account declaration information; in response to determining that the interface identifier of the account processing node is a first preset identifier, save the account declaration information to a preset location; in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, call the account processing node to perform an account declaration based on the account declaration information saved to the preset location. This enables timely response to the emergency plan of the account processing node, thereby improving the account processing speed, reducing the pressure on the account processing node when the emergency plan is activated, and reducing the workload of account processing.
[0117] It should be noted that the accounting processing method provided in the embodiment of the present application is generally executed by the server 505 , and accordingly, the accounting processing device is generally set in the server 505 .
[0118] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0119] Reference below Figure 6 , which shows a structural diagram of a computer system 600 of a terminal device suitable for implementing an embodiment of the present application. Figure 6 The terminal device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0120] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the computer system 600 are also stored in the RAM 603. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0121] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including displays such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.
[0122] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0123] It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. Computer-readable storage media can include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The units described in the embodiments of this application may be implemented in software or hardware. The units described may also be provided in a processor. For example, a processor may be described as including a receiving unit, a storage unit, and an accounting processing unit. The names of these units do not, in some cases, limit the units themselves.
[0126] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device receives an account processing request and generates account declaration information; in response to determining that the interface identifier of the account processing node is a first preset identifier, the account declaration information is saved to a preset location; in response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, the account processing node is called to perform an account declaration based on the account declaration information saved to the preset location.
[0127] According to the technical solution of the embodiment of the present application, a timely response to the emergency plan of the accounting processing node is achieved to improve the accounting processing speed, reduce the accounting processing pressure when the emergency plan is started at the accounting processing node, and reduce the accounting processing workload.
[0128] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. An accounting processing method, characterized in that: include: Obtaining a list of accounting processing tasks, and then determining a preset execution time for each accounting processing task in the accounting processing task list; In response to determining that the current time reaches one of the preset execution times, generating an accounting processing request according to the accounting processing task corresponding to the one of the preset execution times; wherein each accounting processing task is an asynchronous task; Receiving an accounting processing request and generating accounting declaration information, including: calling an accounting declaration template, obtaining corresponding field values based on each field in the accounting declaration template, and then generating accounting declaration information based on the accounting declaration template with the field values filled in; In response to determining that the interface identifier of the accounting processing node is the first preset identifier, saving the accounting declaration information to a preset location; In response to determining that the interface identifier of the account processing node is converted from the first preset identifier to the second preset identifier, calling the account processing node to perform an account declaration based on the account declaration information saved in the preset location, including: in response to determining that the account declaration based on the account information saved in the preset location fails, automatically reversing the currently declared account; It also includes: judging whether the exception is unrecognizable. If so, calling the exception monitoring module to generate an exception record. Otherwise, a normal error is returned, and the system automatically rolls back the account, and the transaction does not occur.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a query identifier from the accounting processing request; The account processing node is called to query the account declaration information corresponding to the query identifier.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining modification configuration information corresponding to the accounting processing request; Based on the modification configuration information, the account declaration information corresponding to the account processing request is modified.
4. The method according to claim 1, wherein The method further comprises: The accounting processing task corresponding to the accounting processing request is canceled.
5. The method according to claim 1, wherein The generating of account declaration information includes: Determine the corresponding exchange rate according to the accounting processing request; Based on the exchange rate, account declaration information is generated.
6. The method according to claim 1, characterized in that Before performing the account declaration based on the account information saved in the preset location, the method further includes: In response to determining that the account processing node call is abnormal, the account declaration information corresponding to the account processing node call abnormality is recorded, and then the account declaration information corresponding to the account processing node call abnormality is pushed to a preset offline node for account declaration.
7. An accounting processing device, characterized in that: include: a request generating unit configured to obtain a list of accounting processing tasks and then determine a preset execution time of each accounting processing task in the list of accounting processing tasks; In response to determining that the current time reaches one of the preset execution times, generating an accounting processing request according to the accounting processing task corresponding to the one of the preset execution times; wherein each accounting processing task is an asynchronous task; The receiving unit is configured to receive the account processing request and generate account reporting information, including: calling the account reporting template, obtaining corresponding field values based on each field in the account reporting template, and then generating the account reporting information according to the account reporting template with the field values filled in; a storage unit configured to, in response to determining that the interface identifier of the accounting processing node is the first preset identifier, save the accounting declaration information to a preset location; The accounting processing unit is configured to, in response to determining that the interface identifier of the accounting processing node is converted from the first preset identifier to the second preset identifier, call the accounting processing node, and perform an account declaration based on the account declaration information saved to the preset location, including: in response to determining that the account declaration based on the account information saved to the preset location fails, automatically reversing the currently declared account; and is also configured to determine whether the exception is unrecognizable, and if so, call the exception monitoring module to generate an exception record, otherwise, a normal error is returned, the system automatically rolls back the account, and the transaction does not occur.
8. An electronic device for accounting processing, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Accounting data processing method and device, electronic equipment and storage medium
CN110689416A