CN118195802A - Financial data processing method and device - Google Patents

Financial data processing method and device Download PDF

Info

Publication number
CN118195802A
CN118195802A CN202211589286.2A CN202211589286A CN118195802A CN 118195802 A CN118195802 A CN 118195802A CN 202211589286 A CN202211589286 A CN 202211589286A CN 118195802 A CN118195802 A CN 118195802A
Authority
CN
China
Prior art keywords
service
data
charging
service data
business
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
CN202211589286.2A
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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co 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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202211589286.2A priority Critical patent/CN118195802A/en
Publication of CN118195802A publication Critical patent/CN118195802A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a financial data processing method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: receiving a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service; checking the service data according to the service type to determine whether abnormal data exists in the service data; and under the condition that abnormal data does not exist, determining a charging result corresponding to the target service according to the service data. The embodiment is used for pre-checking the business data, solves the problem of low manual processing efficiency, reduces labor cost and improves the financial data processing efficiency.

Description

Financial data processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for processing financial data.
Background
In the technical field of internet, when an upstream business system obtains a bill of a downstream business system according to financial data, the financial system is required to process the financial data of the upstream business system so as to obtain a charging result. At present, in a financial system, financial bill problems caused by abnormal or wrong business data are generally verified by manually checking bills or manually checking abnormal data falling into an abnormal center.
However, this way of post-setting the compliance check of data can lead to delays in bill issue in most cases, and the data processing is generally performed by reconciliation, which is simple in means, increases labor costs, and reduces the efficiency of data processing.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method and a device for processing financial data, which are used for pre-checking business data, so that the problem of low manual processing efficiency is solved, the labor cost is reduced, and the data processing efficiency is improved.
To achieve the above object, according to one aspect of an embodiment of the present invention, there is provided a method of financial data processing, including:
receiving a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service;
checking the service data according to the service type to determine whether abnormal data exists in the service data;
And under the condition that abnormal data does not exist, determining a charging result corresponding to the target service according to the service data.
Optionally, the financial processing request further includes a service theme of the target service, and the verifying the service data according to the service type includes:
And verifying the service data according to the service type and the service theme.
Optionally, verifying the service data according to the service type and the service theme includes:
determining a first real-time processing interface corresponding to the service data according to the service type;
invoking the first real-time processing interface according to the service theme and the service data;
And verifying the service data according to the service theme by utilizing the first real-time processing interface.
Optionally, verifying the service data according to the service theme by using the first real-time processing interface includes:
Determining each charging element corresponding to the target service according to the service theme;
determining charging elements to be supplemented according to each charging element and the service data;
acquiring the charging elements to be supplemented by using the first real-time processing interface;
under the condition that the charging elements to be supplemented are successfully obtained, a charging interface is called according to the service data and the charging elements to be supplemented, so that the service data is checked by utilizing the charging interface;
and under the condition that the acquisition of the charging elements to be supplemented fails, determining that abnormal data exists in the service data.
Optionally, verifying the service data according to the service type includes:
Determining a second real-time processing interface corresponding to the service data according to the service type;
the service data is inversely sequenced into a price inquiring object by utilizing the second real-time processing interface, and the price inquiring object comprises a charging element;
Calling a charging interface according to the service type and the price inquiring object by using the second real-time processing interface;
acquiring an inquiring object code in the charging element by using the charging interface;
Under the condition that the price inquiring object code is successfully obtained, a charging formula corresponding to the price inquiring object is obtained according to the price inquiring object code, and the service data is checked by using the charging formula.
Optionally, verifying the service data by using the charging formula includes:
Judging whether the charging elements meet the calculation conditions of the charging formula or not;
If yes, judging that abnormal data does not exist in the service data;
If not, judging that abnormal data exists in the service data.
Optionally, verifying the service data according to the service type and the service theme includes:
determining each charging element corresponding to the target service according to the service type and the service theme;
Identifying abnormal fields in the service data according to the charging elements;
if the abnormal field is identified, judging that abnormal data exists in the service data.
Optionally, the method further comprises:
returning the exception field to a sender of the financial processing request to obtain updated business data when the exception data exists;
Determining a business rule corresponding to the updated business data according to the business type and the business theme;
If the service rule is a first rule, performing a cancellation operation on the service data, and determining a charging result corresponding to the target service according to the updated service data;
If the service rule is a second rule, acquiring first charging data corresponding to the service data, determining second charging data according to the updated service data, determining difference data according to the second charging data and the first charging data, and taking the first charging data and the difference data as charging results corresponding to the target service.
According to a further aspect of an embodiment of the present invention there is provided an apparatus for financial data processing comprising:
the receiving module receives a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service;
The verification module is used for verifying the service data according to the service type so as to determine whether abnormal data exist in the service data;
and the determining module is used for determining a charging result corresponding to the target service according to the service data under the condition that no abnormal data exists.
According to another aspect of an embodiment of the present invention, there is provided an electronic apparatus including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of financial data processing provided by the present invention.
According to a further aspect of an embodiment of the present invention there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method of financial data processing provided by the present invention.
One embodiment of the above invention has the following advantages or benefits: and receiving a financial processing request of the target service, wherein the financial processing request comprises the service type and service data of the target service, and then checking the service data according to the service type to determine whether abnormal data exist in the service data, and determining a charging result of the target service according to the service data under the condition that the abnormal data do not exist. The method is used for pre-checking the service data, solves the problem of low manual processing efficiency, reduces the labor cost and improves the data processing efficiency.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic illustration of the main flow of a method of financial data processing according to an embodiment of the invention;
FIG. 2 is a schematic illustration of the main flow of another method of financial data processing according to an embodiment of the invention;
FIG. 3 is a schematic illustration of the main flow of a method of financial data processing according to yet another embodiment of the invention;
FIG. 4 is a flow chart of a method of financial data processing according to yet another embodiment of the present invention;
FIG. 5 is a schematic diagram of the main modules of an apparatus for financial data processing according to an embodiment of the invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a schematic illustration of the main flow of a method of financial data processing according to an embodiment of the invention, as shown in FIG. 1, comprising the steps of:
step S101: receiving a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service;
step S102: checking the service data according to the service type to determine whether abnormal data exists in the service data;
step S103: and under the condition that abnormal data does not exist, determining a charging result corresponding to the target service according to the service data.
In an embodiment of the invention, the method of financial data processing is applied to interactions between a plurality of application systems, such as interactions between a production system and a financial system. For example, the financial processing request of the target business may be that the production system sends the financial system, the business data may be order data, the production system is a logistics system, the financial system may verify the order data in the financial processing request sent by the logistics system, and perform charging processing, generate a bill and return the bill to the logistics system, and the logistics system may return the bill to the merchant of the e-commerce platform for the merchant to review. The financial system comprises a financial preprocessing subsystem and a charging subsystem, wherein the financial preprocessing subsystem can verify service data according to service types, the charging subsystem can determine a charging result corresponding to a target service according to the service data, and the service data can be verified in a charging process.
In the embodiment of the invention, in the field of electronic commerce, the target service can be an order freight service, the financial processing request can be a settlement request of order freight, the service type can comprise an existing settlement type and a monthly settlement type, the existing settlement type is real-time settlement, and the monthly settlement type can be real-time settlement or asynchronous settlement. The business data may be order data, which includes a plurality of products.
In the embodiment of the invention, after receiving the financial processing request of the target service, the service data can be checked according to the service type to determine whether abnormal data exists in the service data. Specifically, the financial processing request further includes a service theme of the target service, and the verification of the service data according to the service type includes: and verifying the service data according to the service type and the service theme. The service theme is a message queue theme (topic) corresponding to the target service.
In the embodiment of the invention, the verification of the service data according to the service type and the service theme comprises the following steps:
determining a first real-time processing interface corresponding to the service data according to the service type;
Calling a first real-time processing interface according to the service theme and the service data;
and verifying the service data according to the service theme by using the first real-time processing interface.
In the embodiment of the invention, the real-time processing interfaces corresponding to different service types for checking the service data are different, and the first real-time processing interface corresponding to the service data can be determined aiming at the service type being the current junction type. When the first real-time processing interface is called, the required interface parameters comprise the service theme and the service data, so that the first real-time processing interface can be called according to the service theme and the service data, and then the service data is checked according to the service theme by utilizing the first real-time processing interface. Before the service data is checked according to the service theme by using the first real-time processing interface, the service data can be subjected to serialization processing to obtain JSON format data, and then the JSON (a data exchange format) format data is subjected to deserialization processing to obtain MAP (a collection of stored data) format data, so that data conforming to a charging flow can be obtained, and a check result is more accurate.
In an embodiment of the present invention, as shown in fig. 2, verifying service data according to a service theme by using a first real-time processing interface includes:
Step S201: determining each charging element corresponding to the target service according to the service theme;
Step S202: determining charging elements to be supplemented according to each charging element and service data;
step S203: acquiring charging elements to be supplemented by using a first real-time processing interface, and judging whether the acquisition is successful or not; if yes, go to step S204, if no, go to step S205;
step S204: calling a charging interface according to the service data and the charging elements to be supplemented so as to verify the service data by using the charging interface;
Step S205: and determining that abnormal data exists in the service data.
In the embodiment of the invention, when the service data is checked according to the service theme by utilizing the first real-time processing interface, each charging element corresponding to the service data of the target service is firstly determined according to the service theme, wherein the MAP format data comprises a price inquiring object, namely an object to be charged, the price inquiring object comprises a price inquiring object code of a price inquiring object in the service data and each charging element of the price inquiring object, and the charging elements are elements for calculating to obtain a charging result, such as the volume, the weight and the like of the price inquiring object. Then, determining the charging elements to be supplemented, namely the fields and/or values of the missing charging elements, according to the charging elements and the service data; then, acquiring charging elements to be supplemented from other production systems by utilizing a first real-time processing interface, and calling the charging interface according to each charging element and the charging elements to be supplemented if the acquisition is successful; if the acquisition fails, if there is an abnormality or a lack, the flow is terminated, which indicates that there is abnormal data in the business data, and the failure result is sent to the upstream production system, namely the sender of the financial data processing. The failure result may include a field of the charging element to be supplemented and a failure reason.
When the charging interface is called according to the service data and the charging element to be supplemented, the charging interface is utilized to check the service data, and whether the price inquiry, namely charging, is abnormal or not is judged, or if the charging element does not meet the condition, a service abnormal message is returned to the upstream production system through the first real-time processing interface, wherein the service abnormal message can be set in a self-defined way, and the service abnormal message can comprise all abnormal information of the target service, such as an abnormal field and a state code.
In the embodiment of the invention, the verification of the service data according to the service type comprises the following steps:
Determining a second real-time processing interface corresponding to the service data according to the service type;
the business data is inversely sequenced into a price inquiring object by utilizing a second real-time processing interface, and the price inquiring object comprises a charging element;
calling a charging interface according to the service type and the price inquiring object by using the second real-time processing interface;
Acquiring an inquiring object code in a charging element by using a charging interface;
Under the condition that the price inquiring object code is successfully obtained, a charging formula corresponding to the price inquiring object is obtained according to the price inquiring object code, so that the service data is checked by using the charging formula.
In the embodiment of the invention, when the service type is the current junction type, the service data corresponds to a second real-time processing interface, the service data is reversely sequenced into a price inquiring object by utilizing the second real-time processing interface, the price inquiring object comprises a charging element, then the charging interface is called according to the service type and the price inquiring object so as to realize a real-time calculation function, the price inquiring object code is acquired by utilizing the charging interface, and if the acquisition is successful, a charging formula corresponding to the price inquiring object is acquired by utilizing the price inquiring object code so as to check the service data by utilizing the charging formula; if the acquisition fails, if the price inquiring object code is empty, a charging formula corresponding to the price inquiring object cannot be acquired, and a failure result is returned, namely a charging interface parameter is returned, and the parameter can be 'lack of the price inquiring object'.
In the embodiment of the invention, the verification of the service data by using the charging formula comprises the following steps:
judging whether the charging elements meet the calculation conditions of the charging formula or not;
if yes, judging that abnormal data does not exist in the service data;
if not, judging that abnormal data exists in the service data.
In the embodiment of the invention, according to all charging elements required by a charging formula, judging whether the charging elements in the price inquiring object meet the calculation condition of the charging formula, namely judging whether the charging elements in the price inquiring object comprise all the charging elements required by the charging formula, if not, namely, the price inquiring object lacks part of the charging elements required by the charging formula, the calculation fails, and the abnormal data exist in the service data; if the charging elements of the immediate price inquiry object can be calculated by using a charging formula to obtain a charging result, the calculation is successful, and the fact that abnormal data does not exist in the service data is indicated. For example, if the calculation formula=volume×number of unit price, the charging elements required for the calculation formula include the volume, number of unit price, and the value of unit price of the polling object, and if any charging element of the volume, number of unit price, and the volume of the polling object is absent in the service data, the calculation fails.
In the embodiment of the invention, if not included, that is, if the calculation fails, a service exception message is returned to the sender of the financial data processing request through the second real-time processing interface, the service exception message can be set in a self-defined manner, the service exception message includes the total exception information of the target service, and the service exception message includes an exception field, a status code and the like. The production system can stop sending the financial data processing request after receiving the business abnormality message, and resend the financial data processing request after being regulated, such as perfecting the charging element field of the price inquiring object.
In the embodiment of the invention, the service data is checked by using a charging formula, and the method can also comprise the steps of judging whether the charging elements corresponding to the service data meet a preset rule, for example, whether the numerical value of the charging elements is in a preset range, and whether the obtained charging result is in the preset range, if not, the preset rule is not met, and if the check fails, the abnormal data exist in the service data; if yes, the preset rule is met, the verification is successful, the charging result is obtained, and the fact that abnormal data does not exist in the service data is indicated.
In the embodiment of the present invention, as shown in fig. 3, verifying service data according to a service type and a service theme includes:
Step S301: determining each charging element corresponding to the target service according to the service type and the service theme;
Step S302: identifying abnormal fields in the service data according to each charging element;
step S303: if the abnormal field is identified, judging that abnormal data exists in the service data.
In the embodiment of the invention, when the service type is the moon type, the asynchronous charging can be adopted, each charging element is firstly determined according to the service type and the service theme, then the abnormal field in the service data is identified by each charging element, if part of the charging elements in the service data are inconsistent with each charging element, the abnormal data exist in the service data, and the field corresponding to the corresponding inconsistent charging element is the abnormal field. If the charging elements in the service data are the same as the charging elements, the abnormal data are not existed in the service data.
In an embodiment of the present invention, as shown in fig. 4, the method further includes:
step S401: returning an exception field to a sender of the financial processing request to obtain updated business data when the exception data exists;
Step S402: determining a business rule corresponding to the updated business data according to the business type and the business theme;
step S403: if the service rule is the first rule, performing a cancellation operation on the service data, and determining a charging result corresponding to the target service according to the updated service data;
step S404: if the service rule is a second rule, acquiring first charging data corresponding to the service data, and determining second charging data according to the updated service data;
Step S405: and determining difference data according to the second charging data and the first charging data, and taking the first charging data and the difference data as charging results corresponding to the target service.
In the embodiment of the invention, under the condition that the abnormal data exists in the business data, an asynchronous mode such as returning an abnormal field to a sender of a financial processing request, namely an upstream production system through a message queue theme is adopted, and the message theme, the business identifier of a target business, the abnormal value corresponding to the abnormal field and the like can be returned at the same time. The production system can receive the abnormal information in a message subscription mode, update the abnormal data in the service data according to the abnormal information, and secondarily send an asynchronous message, wherein the asynchronous message comprises the updated service data and the updated service identifier.
After the asynchronous message is received, determining a business rule corresponding to the updated business data according to the business type and the business theme, wherein the business rule comprises a first rule and a second rule, the first rule is a business rule which allows updating operation and the target business meets the current month condition, and then performing offset operation on the business data, namely logically deleting the business data, and performing a charging flow by adopting the updated business data to obtain a charging result corresponding to the updated business data, wherein the business data is obtained by inquiring according to a business identifier; and the second rule is to allow updating but the target service does not meet the current month condition, obtain the first charging data corresponding to the service data, and adopt the updated service data to perform charging flow to obtain the second charging data, and then perform rolling calculation on the second charging data and the first charging data to obtain the difference data, so that the difference data is equal to the second charging data after the first charging data is added with the difference data.
In the embodiment of the invention, under the condition that abnormal data exists, the data state of the business data of the target business is set to be processed, and after the updated business data is adopted for updating operation, the data state of the business data of the target business is modified to be processed.
In the embodiment of the invention, the business rule further comprises a third rule, and the method further comprises the following steps: if the business rule is the third rule, the business data is not processed. If the third rule is that updating is not allowed, the data state of the service data of the target service is set to be processed for manual processing.
In the embodiment of the invention, the business rule can be preconfigured according to the business type and the business theme, and the configuration of the business rule can be realized by adding a field checkflag on the theme rule table. For example, if checkflag is set to 0, the abnormal control is not performed, and if checkflag is set to 1, the abnormal control flow is performed, but the update operation is not accepted; checkflag is 2, an exception handling flow is performed and an update operation is accepted. And determining whether the business data corresponding to the business theme needs to be subjected to an abnormal control flow or not by acquiring the checkflag value corresponding to the business theme.
After receiving the financial data processing request, the method for processing financial data provided by the embodiment of the invention checks the service data according to the service subject, particularly can check the service data in a real-time processing mode and an asynchronous processing mode to determine whether the service data has abnormal data or not, and performs charging processing after the check is passed to obtain a charging result; the method can realize abnormal card control of the service data in two ways and pre-arrange the verification of the service data, thereby improving the efficiency of data processing, reducing the labor cost and overcoming the problems of complicated processing flow, low efficiency and high cost caused by post-arrangement of the data verification in the prior art; in addition, the method can realize automatic updating of service data, flow automation and configurable selection, reduce labor cost and promote user experience.
As shown in FIG. 5, in accordance with yet another aspect of an embodiment of the present invention, there is provided an apparatus 500 for financial data processing, comprising:
A receiving module 501 for receiving a financial processing request of a target business; the financial processing request comprises the service type and service data of the target service;
The checking module 502 checks the service data according to the service type to determine whether abnormal data exists in the service data;
And a determining module 503, configured to determine a charging result corresponding to the target service according to the service data when no abnormal data exists.
In the embodiment of the present invention, the financial processing request further includes a service theme of the target service, and the verification module 502 is further configured to: and verifying the service data according to the service type and the service theme.
In the embodiment of the present invention, the verification module 502 is further configured to: determining a first real-time processing interface corresponding to the service data according to the service type; calling a first real-time processing interface according to the service theme and the service data; and verifying the service data according to the service theme by using the first real-time processing interface.
In the embodiment of the present invention, the verification module 502 is further configured to: determining each charging element corresponding to the target service according to the service theme; determining charging elements to be supplemented according to each charging element and service data; acquiring charging elements to be supplemented by using a first real-time processing interface; under the condition that the charging elements to be supplemented are successfully obtained, calling a charging interface according to the service data and the charging elements to be supplemented so as to verify the service data by using the charging interface; and under the condition that the acquisition of the charging elements to be supplemented fails, determining that abnormal data exists in the service data.
In an embodiment of the present invention, the verification module 502 is further configured to: determining a second real-time processing interface corresponding to the service data according to the service type; the business data is inversely sequenced into a price inquiring object by utilizing a second real-time processing interface, and the price inquiring object comprises a charging element; calling a charging interface according to the service type and the price inquiring object by using the second real-time processing interface; acquiring an inquiring object code in a charging element by using a charging interface; under the condition that the price inquiring object code is successfully obtained, a charging formula corresponding to the price inquiring object is obtained according to the price inquiring object code, so that the service data is checked by using the charging formula.
In the embodiment of the present invention, the verification module 502 is further configured to: judging whether the charging elements meet the calculation conditions of the charging formula or not; if yes, judging that abnormal data does not exist in the service data; if not, judging that abnormal data exists in the service data.
In the embodiment of the present invention, the verification module 502 is further configured to: determining each charging element corresponding to the target service according to the service type and the service theme; identifying abnormal fields in the service data according to each charging element; if the abnormal field is identified, judging that abnormal data exists in the service data.
In the embodiment of the present invention, the determining module 503 is further configured to: returning an exception field to a sender of the financial processing request to obtain updated business data when the exception data exists; determining a business rule corresponding to the updated business data according to the business type and the business theme; if the service rule is the first rule, performing a cancellation operation on the service data, and determining a charging result corresponding to the target service according to the updated service data; if the service rule is a second rule, acquiring first charging data corresponding to the service data, determining second charging data according to the updated service data, determining difference data according to the second charging data and the first charging data, and taking the first charging data and the difference data as charging results corresponding to the target service.
According to another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of financial data processing provided by the present invention.
According to a further aspect of an embodiment of the present invention there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method of financial data processing provided by the present invention.
FIG. 6 illustrates an exemplary system architecture X00 of a financial data processing apparatus or method to which embodiments of the invention may be applied.
As shown in fig. 6, the system architecture 600 may include first servers 601, 602, 603, a second server 604, and a network 605. The network 605 is used as a medium to provide communication links between the first servers 601, 602, 603 and the second server 604. The network 605 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The first server 601, 602, 603 interacts with the second server 604 through a network 605 to receive or send messages or the like. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the first server 601, 602, 603 and the second server 604.
The first server 601, 602, 603 and the second server 604 may be servers providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by a user using a terminal device. The first server 601, 602, 603 may send a financial data processing request to the second server 604, and the second server 604 may perform analysis or the like on the financial processing request and feed back a processing result (e.g., a charging result—merely an example) to the first server 601, 602, 603.
It should be noted that the method for processing financial data according to the embodiment of the present invention is generally performed by the second server 604, and accordingly, the device for processing financial data is generally disposed in the second server 604.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a receiving module, a verification module, and a determination module. The names of these modules do not constitute a limitation on the module itself in some cases, for example, the receiving module may also be described as "receiving a financial processing request of a target service".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: receiving a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service; checking the service data according to the service type to determine whether abnormal data exists in the service data; and under the condition that abnormal data does not exist, determining a charging result corresponding to the target service according to the service data.
According to the technical scheme of the embodiment of the invention, after receiving the financial data processing request, the method for processing the financial data checks the service data according to the service subject, specifically, two modes of real-time processing and asynchronous processing can be adopted to check the service data so as to determine whether the service data has abnormal data or not, and after the check is passed, charging processing is carried out to obtain a charging result; the method can realize abnormal card control of the service data in two ways and pre-arrange the verification of the service data, thereby improving the efficiency of data processing, reducing the labor cost and overcoming the problems of complicated processing flow, low efficiency and high cost caused by post-arrangement of the data verification in the prior art; in addition, the method can realize automatic updating of service data, flow automation and configurable selection, reduce labor cost and promote user experience.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method of financial data processing, comprising:
receiving a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service;
checking the service data according to the service type to determine whether abnormal data exists in the service data;
And under the condition that abnormal data does not exist, determining a charging result corresponding to the target service according to the service data.
2. The method of claim 1, wherein the financial processing request further includes a service topic of the target service, and wherein verifying the service data according to the service type includes:
And verifying the service data according to the service type and the service theme.
3. The method of claim 2, wherein verifying the business data based on the business type and the business topic comprises:
determining a first real-time processing interface corresponding to the service data according to the service type;
invoking the first real-time processing interface according to the service theme and the service data;
And verifying the service data according to the service theme by utilizing the first real-time processing interface.
4. A method according to claim 3, wherein verifying the business data according to the business topic using the first real-time processing interface comprises:
Determining each charging element corresponding to the target service according to the service theme;
determining charging elements to be supplemented according to each charging element and the service data;
acquiring the charging elements to be supplemented by using the first real-time processing interface;
under the condition that the charging elements to be supplemented are successfully obtained, a charging interface is called according to the service data and the charging elements to be supplemented, so that the service data is checked by utilizing the charging interface;
and under the condition that the acquisition of the charging elements to be supplemented fails, determining that abnormal data exists in the service data.
5. The method of claim 1, wherein verifying the traffic data based on the traffic type comprises:
Determining a second real-time processing interface corresponding to the service data according to the service type;
the service data is inversely sequenced into a price inquiring object by utilizing the second real-time processing interface, and the price inquiring object comprises a charging element;
Calling a charging interface according to the service type and the price inquiring object by using the second real-time processing interface;
acquiring an inquiring object code in the charging element by using the charging interface;
Under the condition that the price inquiring object code is successfully obtained, a charging formula corresponding to the price inquiring object is obtained according to the price inquiring object code, and the service data is checked by using the charging formula.
6. The method of claim 5, wherein verifying the traffic data using the billing formula comprises:
Judging whether the charging elements meet the calculation conditions of the charging formula or not;
If yes, judging that abnormal data does not exist in the service data;
If not, judging that abnormal data exists in the service data.
7. The method of claim 2, wherein verifying the business data based on the business type and the business topic comprises:
determining each charging element corresponding to the target service according to the service type and the service theme;
Identifying abnormal fields in the service data according to the charging elements;
if the abnormal field is identified, judging that abnormal data exists in the service data.
8. The method of claim 7, wherein the method further comprises:
returning the exception field to a sender of the financial processing request to obtain updated business data when the exception data exists;
Determining a business rule corresponding to the updated business data according to the business type and the business theme;
If the service rule is a first rule, performing a cancellation operation on the service data, and determining a charging result corresponding to the target service according to the updated service data;
If the service rule is a second rule, acquiring first charging data corresponding to the service data, determining second charging data according to the updated service data, determining difference data according to the second charging data and the first charging data, and taking the first charging data and the difference data as charging results corresponding to the target service.
9. An apparatus for processing financial data, comprising:
the receiving module receives a financial processing request of a target service; the financial processing request comprises the service type and service data of the target service;
The verification module is used for verifying the service data according to the service type so as to determine whether abnormal data exist in the service data;
and the determining module is used for determining a charging result corresponding to the target service according to the service data under the condition that no abnormal data exists.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-8.
11. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
CN202211589286.2A 2022-12-12 2022-12-12 Financial data processing method and device Pending CN118195802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211589286.2A CN118195802A (en) 2022-12-12 2022-12-12 Financial data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211589286.2A CN118195802A (en) 2022-12-12 2022-12-12 Financial data processing method and device

Publications (1)

Publication Number Publication Date
CN118195802A true CN118195802A (en) 2024-06-14

Family

ID=91401078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211589286.2A Pending CN118195802A (en) 2022-12-12 2022-12-12 Financial data processing method and device

Country Status (1)

Country Link
CN (1) CN118195802A (en)

Similar Documents

Publication Publication Date Title
CN113112348A (en) Processing method and device of social security data, electronic equipment and storage medium
CN111861745B (en) Service wind control method and device
CN112907344A (en) Accounting data processing method and device, electronic equipment and storage medium
CN112241866B (en) Service processing method and device, computer readable medium and electronic equipment
CN118195802A (en) Financial data processing method and device
CN111210349B (en) Method and device for transferring and supporting virtual asset, electronic equipment and storage medium
CN113421045B (en) Method, device, electronic equipment and computer readable medium for sending waybill information
CN114612212A (en) Business processing method, device and system based on risk control
CN114418482A (en) Order information processing method and device, electronic equipment and computer readable medium
CN111429092B (en) Method, apparatus, device and computer readable medium for paying an accumulation fund
CN111325599A (en) Order data processing method, device, equipment and storage medium
CN112860770A (en) Report generation method and device, electronic equipment and storage medium
CN114866538B (en) File reporting method and device, electronic equipment and computer readable medium
CN114997977B (en) Data processing method, device, electronic equipment and computer readable medium
CN112069438B (en) Message merging method, message processing method and device, equipment and medium
CN114841690A (en) Deduction processing method and device, electronic equipment and computer readable medium
CN116862605A (en) Bill generation method, device, electronic equipment and storage medium
CN116883094A (en) Order processing method and system
CN117078381A (en) Method, device, electronic equipment and storage medium for thawing service processing
CN115545861A (en) Method, device, equipment and computer readable medium for data interaction
CN113726897A (en) Data processing method, device and equipment
CN111179097A (en) Method and device for warranty correction, electronic equipment and storage medium
CN115630836A (en) Service processing method and device, electronic equipment and storage medium
CN116245632A (en) Method, apparatus, device and computer readable medium for interacting data
CN116415550A (en) Method and device for generating single number of electronic face sheet

Legal Events

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