CN112950384A - Processing system, method, computer equipment and storage medium based on cache technology - Google Patents

Processing system, method, computer equipment and storage medium based on cache technology Download PDF

Info

Publication number
CN112950384A
CN112950384A CN202110423397.5A CN202110423397A CN112950384A CN 112950384 A CN112950384 A CN 112950384A CN 202110423397 A CN202110423397 A CN 202110423397A CN 112950384 A CN112950384 A CN 112950384A
Authority
CN
China
Prior art keywords
module
transaction
model
processing
data
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
CN202110423397.5A
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.)
Ping An Consumer Finance Co Ltd
Original Assignee
Ping An Consumer Finance 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 Ping An Consumer Finance Co Ltd filed Critical Ping An Consumer Finance Co Ltd
Priority to CN202110423397.5A priority Critical patent/CN112950384A/en
Publication of CN112950384A publication Critical patent/CN112950384A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Computer Hardware Design (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a processing system, a method, computer equipment and a storage medium based on a cache technology, which are used for effectively avoiding the increasing complexity of the processing system, wherein the processing system comprises an acquisition module, a processing model and a cache module, and the processing model comprises a multi-level model module; the acquisition module is used for acquiring transaction information and transmitting the transaction information into the processing model, wherein the transaction information comprises transaction types and transaction parameters; and the processing model is used for correspondingly processing the old transaction information according to the transaction type and the transaction parameters to obtain a model processing result, each level of model module in the multi-level model module is connected to the cache module, each level of model module in the multi-level model module is used for acquiring required information from the cache according to the processing logic of the model module, and processing the required information according to the required information and the processing logic of the model module to obtain the processing result of the module, and the required information comprises the module processing result and/or the transaction parameters obtained by processing other levels of model modules.

Description

Processing system, method, computer equipment and storage medium based on cache technology
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a processing system and method based on a cache technology, a computer device, and a computer storage medium.
Background
At present, due to the fact that the popularity of a Spring + framework and the concept of Spring MVC are deeply fixed in the java industry, most of ideas of java practitioners for designing a system are unconsciously drawn to a three-layer architecture model. Taking the financial field as an example, the transaction link is usually the client initiated transaction-system received-process completed.
The inventor realizes that a conventional transaction processing system is designed as a serial design, a module a method, a module B method and a module C method are packaged, then a link is subjected to a- > B- > C ending, parameters are transmitted by a previous module in the transaction processing process, and as a result, parameters of a next module are obtained, the processing process actually couples the module A, B, C and only splits logic, and due to the coupling relation of the processing process, when other scenes need the module B, the module B often has to be rewritten because of the existence of logic codes which cannot be reused in the module B, and as time is transferred, the number of modules of the processing system is increased along with the needs, so that the processing system is larger and more complex.
Disclosure of Invention
The embodiment of the invention provides a processing system, a processing method, computer equipment and a storage medium based on a cache technology, and aims to solve the technical problem that the system is more huge and complex.
In a first aspect, a processing system based on a cache technology is provided, which is characterized by comprising an obtaining module, a processing model and a cache module, wherein the processing model comprises a multi-level model module;
the acquisition module is used for acquiring transaction information and transmitting the transaction information into the processing model, wherein the transaction information comprises transaction types and transaction parameters;
the processing model is used for correspondingly processing old transaction information according to the transaction type and the transaction parameters to obtain a model processing result, wherein each level of model module in the multi-level model modules is connected to the cache module, a preset execution logic sequence is arranged among the multi-level model modules, each level of model module in the multi-level model modules is used for acquiring required information from the cache module according to the processing logic of the model module and processing the required information and the processing logic of the model module to obtain the processing result of the module, and the required information comprises the module processing result obtained by processing other level of model modules and/or the transaction parameters.
In a second aspect, a processing method based on a processing system is provided, the processing system including an acquisition module and a processing system, the processing system including a processing model and a cache module, the processing model including a multi-level model module, the method including:
the acquisition module acquires transaction information and transmits the transaction information into a processing model, wherein the transaction information comprises a transaction type and a transaction parameter;
the processing model correspondingly processes the old transaction information according to the transaction type and the transaction parameters to obtain a model processing result; the processing model comprises a plurality of stages of model modules, each stage of model module in the plurality of stages of model modules is connected to a cache module, a preset execution logic sequence is arranged among the plurality of stages of model modules, each stage of model module in the plurality of stages of model modules is used for acquiring required information from the cache module according to the processing logic of the model module, and processing the required information and the processing logic of the model module to obtain a processing result of the module according to the required information and the processing logic of the model module, and the required information comprises module processing results obtained by processing other stages of model modules and/or the transaction parameters.
In a third aspect, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the functionality of a processing model in a processing system as described above when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the functionality of a process model in a processing system as described above.
In the scheme implemented by the processing system, the method, the computer equipment and the storage medium, all levels of model modules of the processing model are connected to the cache module, so that the module processing results of all levels of model modules of the processing model can be cached in the cache module, and the technical effect brought by the method is that the input parameters of all levels of model modules can be used for the cache module instead of relying on the logic input of a superior model module as in the prior art, so that all levels of model modules in the processing model can be decoupled, the modules in the processing model are more independent, the service processing can be completed more independently, the service logic of upstream and downstream is not required to be relied on, the decoupling is improved, in addition, the reusability of the modules is high, and the independent acquisition and independent table falling of data can be brought, so that developers only need to pay attention to the functions of the modules, do not need to pay attention to the intermediate state of the data when using, moreover, the code maintainability of each model module is high, the coupling between modules is independently reduced, the modules which are increased along with the time migration and the demand of the processing system can be repeatedly utilized, the change range and the risk of the subsequent service change are smaller, and the larger and more complicated the processing system are effectively avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of a system architecture of a processing system in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a process of a processing system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a process model;
FIG. 4 is a schematic flow chart of the operation of the processing system in one embodiment of the present invention;
FIG. 5 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention mainly provides a processing system design similar to a building block system, and can be applied to business processing development designs in various fields such as finance and the like in various business processing scenes applying the processing system, and the following description is one by one.
Referring to fig. 1, the present invention first provides a processing system, which includes an obtaining module, a processing model and a cache module, wherein the processing model includes a multi-level model module, each level of model module in the multi-level model module is connected to the cache module, a preset execution logic sequence is provided between the multi-level model modules, each level of model module in the multi-level model module is configured to obtain required information from the cache module according to its own processing logic, and process the required information and its own processing logic to obtain a processing result of the level of module, and the required information includes a module processing result obtained by processing by other level of model modules and/or the transaction parameter.
The cache module may be a redis cache module, or other modules or databases that can cache data, and the present invention is not limited in this respect. For example, the transaction may be a Block chain database, and a Block chain (Blockchain) may be a storage structure of encrypted and chained transactions formed of blocks (blocks). For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth. For convenience of description, in the following description, a cache module is taken as an example for the redis.
The acquisition module is used for acquiring transaction information and transmitting the transaction information into the processing model, wherein the transaction information comprises a transaction type and a transaction parameter;
and the processing model is used for carrying out corresponding processing on the old transaction information according to the transaction type and the transaction parameters so as to obtain a model processing result.
It can be seen that, in the embodiment of the present invention, a processing system based on a cache technology is provided, each level of model modules of a processing model is connected to a cache module, so that module processing results of each level of model modules of the processing model can be cached in the cache module, which brings technical effects that the input parameters of each level of model modules can be used as the cache module instead of relying on the logic input of a higher level model module as in the prior art, so that each level of model modules in the processing model can be decoupled, modules in the processing model are more independent, service processing can be completed more independently, service logic of upstream and downstream is not required to be relied on, decoupling is achieved, in addition, the reusability of modules is high, and independent acquisition and independent table dropping of data can be brought, so that developers only need to pay attention to the functions of the modules, do not need to pay attention to intermediate states of data when using data, moreover, the code maintainability of each model module is high, the coupling between the modules is independently reduced, the change range and the risk of the subsequent service change are smaller, and the larger and more complicated processing system can be effectively avoided.
For convenience of understanding, the following description is given by taking fig. 2 as an example according to a certain business scenario, in fig. 2, an accounting application scenario in the financial field is taken as an example for illustration, where correspondingly, in the specific accounting application scenario, the processing model is an accounting model, the accounting model includes multiple stages of model modules, assuming that an accounting model module a, an accounting model module B and an accounting model module C are respectively provided, three accounting model modules are all connected to the cache module, and the three accounting model modules have a preset execution logic sequence and own processing logic in the specific accounting application scenario, and their link sequences are not set as: in the transaction accounting application scenario, when a transaction initiator (Customer) initiates accounting, transaction information is transmitted to the accounting model, and at this time, each level of model modules of the accounting model perform corresponding processing: in the accounting model, after the accounting model module A obtains the transaction information triggered by the transaction initiator, only the self-business is processed according to the self-processing logic to obtain a result 1, the result 1 is put in the cache module for caching, and the accounting model module A is finished. And then the link carries out processing by an accounting model module B, the accounting model module B acquires required information from the cache module, wherein the required information can comprise a result 1, the accounting model module B acquires a result 2 after the processing logic is finished according to the processing logic of the accounting model module B, the result 2 is placed in the cache module, the accounting model module C is similar to the accounting model module B, the accounting model module C acquires the required information from the cache module, the required information comprises the result 2, the result 3 is acquired after the processing logic of the accounting model module B is finished, and the result 3 is placed in the cache module.
As can be clearly seen from the above example of the accounting model, the processing system based on the cache technology according to the present invention realizes decoupling and non-coupling of each model module by not transmitting the parameter of each level of the model module by the previous module, and splits the business processing logic, for example, when the accounting model module B is needed in other business scenes, the processing system does not always need to rewrite the logic code that cannot be reused because of the existence of the accounting model module B, has high reusability of the module code, and has strong practicability and extensibility.
It should be noted that, in the present invention, the processing system may be applied to various application fields, especially to a system with a complex system and many parameters, such as a financial field, and the above accounting application scenario is only one example, for this, the present invention may also provide processing for other transaction scenarios, such as order processing, payment processing, and payment processing, based on the processing system, and the processing scenarios may all be designed with reference to the processing system based on the cache technology. The processing system comprises an acquisition module, a processing model and a cache module, wherein the processing model comprises a multi-stage model module; the acquisition module is used for acquiring the transaction information and transmitting the transaction information into the processing model; the processing model is used for correspondingly processing the old transaction information according to the transaction type and the transaction parameters in the transaction information to obtain a model processing result, namely, the processing model can realize the self business processing logic of each model module according to the preset execution sequence of the processing model, so that the whole transaction processing process is completed.
In some embodiments, in practical applications, the processing model may be split into a plurality of model modules as shown in fig. 3, including a transaction adjusting module, an amount summarizing module, an amount correcting module, an overflowed payment deduction module, a fund distribution module, a data issuing module, an offset counting and lifting module, a day recording module, a quotation module, and a quotation module, where each model module is connected to the cache module. It should be noted that the processing model (accounting model module) shown in fig. 3 is only an exemplary illustration here, and the actual processing model may include other types of accounting modules, depending on the specific accounting scenario.
Taking the above-mentioned individual accounting module as an example, the processing model is designed to include a transaction adjusting module, a sum summarizing module, an offset calculating and submitting module and a data issuing module, and transaction information is transmitted into the processing model, so as to obtain module processing results of model modules at different levels through the processing model, and for facilitating understanding of the above-mentioned process, a repayment scenario in the accounting model of fig. 4 is described as an example, please refer to fig. 4.
With reference to fig. 4, the functions of the model models at each stage are as follows:
and the transaction adjusting module is used for processing the old transaction information according to the transaction type and the transaction parameters of the transaction information to obtain new transaction information, and caching the new transaction information in the caching module redis. For example, in an accounting application scenario, the transaction initiator may initiate transaction operations such as withdrawal, refund, consumption correction, withdrawal correction, and overflowed payment deduction, wherein different triggered transaction operations may generate corresponding transaction parameters, and the transaction adjustment module may acquire the transaction parameters triggered and generated by the transaction initiator, that is, initial entry parameters of the processing model. After the transaction parameters are obtained by the transaction adjusting module, old transaction information (OldApplyInf) needs to be acquired, wherein the old transaction information (OldApplyInf) refers to information related to a transaction triggered by the transaction initiator in the past. In order to correctly execute the service execution logic and effectiveness of the current transaction, old transaction information (OldApplyInf) needs to be considered, so that new transaction information (NewApplyInf) is obtained by combining transaction parameters and is cached in the cache module redis, and the transaction adjusting module is finished. Specifically, the transaction adjusting module analyzes transaction parameters transmitted by a user to obtain account identification and the amount related to the transaction type; acquiring old transaction information of the account according to the transaction type and the account identifier, wherein the old transaction information comprises a transaction state and a transaction principal; and adjusting the transaction principal according to the related amount and modifying the transaction state according to the transaction type so as to acquire new transaction information.
In some embodiments, the transaction adjustment module is further specifically configured to: judging whether the corresponding old transaction information can be acquired from the cache module or not according to the account identification and the transaction type; if not, acquiring the corresponding old transaction information from the corresponding database according to the account identification and the transaction type, and storing the old transaction information in the cache module.
To facilitate understanding, a simple example is given here, for example, in the case of a refund transaction, a customer performs a refund operation to generate corresponding transaction parameters, which include an account identifier of the customer, and an amount (refund amount) related to the transaction type (refund) transaction type; reading old transaction information (Oldhplyinf) from the cache module, wherein the cache module redis not used for caching the old transaction information (Oldhplyinf) because the old transaction information (Oldhplyinf) is processed by the cache module for the first time, the old transaction information (Oldhplyinf) cannot be directly and quickly obtained from the cache module redis obtained from the database, the old transaction information (Oldhplyinf) needs to be obtained from the database according to the account identifier, the old transaction information (Oldhplyinf) can comprise a transaction state and a transaction principal, and the transaction state of the old transaction information (Oldhplyinf) is normally modified from 03 to 07 to refund according to a refund rule, wherein the transaction state 03 indicates that the current transaction is in a normal state, 07 indicates that the current transaction is in a refund state, a transaction principal in the old transaction information (Oldhplyinf) is modified from 100 to 0, new object transaction information (Newappllyinf) is generated, and the generated new transaction information is cached in the cache module reds, the transaction adjustment module completes the processing.
And the amount summarizing module is used for acquiring New transaction information (NewApplyInf) from the cache module, correspondingly correcting Old transaction data (Old data) according to a transaction principal in the New transaction information (NewApplyInf) to obtain New transaction data (New data), and caching the New transaction data (New data) in the cache module redis. It can be understood that, for the amount summarizing module, it is another independent module in the accounting module, the amount summarizing module is connected to the cache module redis, and can also obtain the new transaction information (NewApplyInf) cached by the transaction adjusting module in the cache module redis, after the amount summarizing module obtains the new transaction information (NewApplyInf), the amount summarizing module can execute new transaction summarizing logic and the like according to the data (NewApplyInf) of the transaction principal of the new transaction information, and the like, thereby completing the service logic of the module, and the amount summarizing module is finished.
It should be noted that, because the New transaction information (NewApplyInf) changes from the original transaction information (OldApplyInf) in terms of the transaction principal and the transaction state, and directly affects the upper layer data or the lower layer data of the service, the Old transaction data (Old data) needs to be acquired, for example, the Old transaction data (Old data) may include a bill object (oldbaill app), and it can be understood that when the amount of money changes, the change of the amount of the bill object needs to be summarized and updated.
And the offset counting and extracting module is used for acquiring new transaction information (NewApplyInf) from the cache module redis, assembling all information of the new transaction information (NewApplyInf) to obtain offset counting and extracting data (FaInfRecord), synchronizing the offset counting and extracting data (FaInfRecord) to the financial system in an interface mode, caching the data in the cache module redis and a database, and finishing the offset counting and extracting module. It should be noted that, because the amount of money involved in the above processing is changed to 100, and this amount of money change needs to be notified to the financial system, information such as the amount of money 100, the operation refund, etc. needs to be assembled to obtain the reimbursement and record data (fatinf record), and the interface is used to synchronize to the financial system, so that the financial system can perform the reimbursement and record processes according to the reimbursement and record data, and buffer the processes into the buffer module redis and the database, so that the needed model module can obtain the reimbursement and record data.
And the data issuing module is used for acquiring New transaction data (New data) from the cache module redis and storing the New transaction data (New data) in the database, and the data issuing module is ended. It should be noted that, the refund operation and the data change of the customer need to be notified to the association system, and therefore, the New transaction data (New data) needs to be sent to the association system, for example, the association system may include an account system AMS, a collection urging system PLMP, and the like. Therefore, after the processing is completed, New transaction data (New data) needs to be broadcasted to the associated system by using message Middleware (MQ) or an interface mode, and after the processing is completed, the delivery state (success or failure) is stored in the database, and the data delivery module is finished.
In an application scenario, the processing model further comprises a logging module; the log recording module is configured to obtain New transaction data (New data) from the cache module, perform data recording on a difference between the New transaction data (New data) and Old transaction data (Old data), store a data recording result in the database DB, for example, print and cache the recording result in the database, and end the log recording module. In an application scenario, Old transaction information (OldApplyInf) and Old transaction data (Old data) can be cached in the cache module redis, so that the required model module can quickly acquire required information from the cache module redis.
It should be noted that the above-mentioned examples of each model module are only exemplary, and do not limit the processing logic of each model module of the present invention.
It can be seen that all model modules in the processing model only need to acquire data from the cache module redis, and after the processing is finished, the data is added to the cache module redis or updated to the DB without concern for the core logic of the upper module, thereby achieving the effect of high decoupling of the modules. It should be noted that, the operation of obtaining from the cache module redis may be uniformly set to be directly obtained from the cache module redis first, and after the operation is not obtained, the operation is obtained from the database and added to the cache module redis, so that other model modules can quickly obtain from the cache module when processing.
On the other hand, an embodiment of the present invention provides a processing method based on a processing system, where the method includes the following steps:
s10: the acquisition module acquires transaction information and transmits the transaction information into a processing model, wherein the transaction information comprises a transaction type and a transaction parameter;
s20: and the processing model correspondingly processes the old transaction information according to the transaction type and the transaction parameters to obtain a model processing result.
In an application scene, the transaction parameters are transmitted into a processing model so as to obtain module processing results of model modules of all levels through the processing model, and the method comprises the following steps:
the transaction adjusting module analyzes the transaction parameters to obtain account identification and the amount related to the transaction type; acquiring the old transaction information corresponding to the account according to the account identification and the transaction type, wherein the old transaction information comprises a transaction state and a transaction principal; and correspondingly adjusting the transaction principal according to the related amount, modifying the transaction state according to the transaction type to obtain new transaction information of the account, and caching the new transaction information in the caching module.
For example, in an accounting application scenario, the transaction initiator may initiate transaction operations such as withdrawal, refund, consumption correction, withdrawal correction, and overflowed payment deduction, wherein different triggered transaction operations may generate corresponding transaction parameters, and the transaction adjustment module may acquire the transaction parameters triggered and generated by the transaction initiator, that is, initial entry parameters of the processing model. After the transaction parameters are obtained by the transaction adjusting module, old transaction information (OldApplyInf) corresponding to the account identifier of the user needs to be obtained, wherein the old transaction information (OldApplyInf) refers to information related to a transaction triggered by the transaction initiator in the past. In order to correctly execute the service execution logic and effectiveness of the current transaction, old transaction information (OldApplyInf) needs to be considered, so that new transaction information (NewApplyInf) is obtained by combining transaction parameters and is cached in the caching module redis, and the module is ended. Specifically, the transaction adjusting module analyzes the transaction parameters to obtain a transaction type and an amount related to the transaction type; acquiring corresponding old transaction information according to the transaction type and the account identification, wherein the old transaction information comprises a transaction state and a transaction principal; and adjusting the transaction principal according to the related amount and modifying the transaction state according to the transaction type to acquire new transaction information.
To facilitate understanding, a simple example is given here, for example, in the case of a refund transaction, a customer performs a refund operation to generate corresponding transaction parameters, which include an account identifier of the customer, and an amount (refund amount) related to the transaction type (refund) transaction type; then, the old transaction information (OldApplyInf) is read from the cache module, at this time, possibly because the old transaction information (OldApplyInf) is processed by the local model module for the first time, the cache module redis does not cache the old transaction information (OldApplyInf), at this time, the old transaction information (OldApplyInf) is obtained from the database, the old transaction information (OldApplyInf) may include a transaction state and a transaction principal, and then the transaction state of the old transaction information (OldApplyInf) is normally modified from 03 to 07 according to a refund rule, wherein the transaction state 03 indicates that the current transaction is in a normal state, 07 indicates that the current transaction is in a refund state, the transaction principal in the old transaction information (OldApplyInf) is modified from 100 to 0, that is, new object new transaction information (NewApplyInf) is generated, the refund transaction processing is completed, and the generated new transaction information is stored in the cache module redis, and the processing of the transaction adjusting module is completed.
The sum of money collection module obtains New transaction information (NewApplyInf) from the cache module, and correspondingly corrects Old transaction data (Old data) according to a transaction principal in the New transaction information (NewApplyInf) to obtain New transaction data (New data), and the New transaction data (New data) is cached in the cache module redis. It can be understood that, for the amount summarizing module, it is another independent module in the accounting module, the amount summarizing module is connected to the cache module redis, and can also obtain the new transaction information (NewApplyInf) cached by the transaction adjusting module in the cache module redis, after the amount summarizing module obtains the new transaction information (NewApplyInf), the amount summarizing module can execute new transaction summarizing logic and the like according to the data (NewApplyInf) of the transaction principal of the new transaction information, and the like, thereby completing the service logic of the module, and the amount summarizing module is finished.
It should be noted that, because the New transaction information (NewApplyInf) changes from the original transaction information (OldApplyInf) in terms of the transaction principal and the transaction state, and directly affects the upper layer data or the lower layer data of the service, the Old transaction data (Old data) needs to be acquired, for example, the Old transaction data (Old data) may include a bill object (oldbaill app), and it can be understood that when the amount of money changes, the change of the amount of the bill object needs to be summarized and updated.
The reimbursement meter lifting module acquires new transaction information (NewApplyinf) from the cache module redis, assembles all information of the new transaction information (NewApplyinf) to obtain reimbursement meter lifting data (FaInfRecord), synchronizes the reimbursement meter lifting data (FaInfRecord) to the financial system in an interface mode, caches the data in the cache module redis and the database, and ends the reimbursement meter lifting module. It should be noted that, because the amount of money involved in the above processing is changed to 100, the change of the amount of money needs to be notified to the financial system, so that the financial system can perform processing such as reimbursement, reimbursement and the like according to the reimbursement, reimbursement and lifting data, and cache the data in the cache module redis and the database so that the needed model module can obtain the reimbursement, reimbursement and lifting data.
And the data issuing module acquires New transaction data (New data) from the cache module redis and stores the New transaction data (New data) in the database DB, and the data issuing module is ended. It should be noted that, the refund operation and the data change of the customer need to be notified to the association system, and therefore, the New transaction data (New data) needs to be sent to the association system, for example, the association system may include an account system AMS, a collection urging system PLMP, and the like. Therefore, after the processing is completed, New transaction data (New data) needs to be broadcasted to the association system by using (message Middleware (MQ) or an interface mode, and after the processing is completed, the issued state (success or failure) is stored in the database, and the module is ended.
In an application scenario, the processing model further comprises a logging module; the log recording module acquires New transaction data (New data) from the buffer module, records data of a difference between the New transaction data (New data) and Old transaction data (Old data), stores a data recording result in a database DB, for example, prints and buffers the recording result in the database, and ends the log recording module. In an application scenario, Old transaction information (OldApplyInf) and Old transaction data (Old data) can be cached in the cache module redis, so that a required model module can quickly acquire required parameters from the cache module redis.
It can be seen that, based on the processing system, the present invention correspondingly provides a processing method, wherein each level of model modules of the processing model is connected to a cache module, so that the module processing results of each level of model modules of the processing model can be cached in the cache module, which brings technical effects that the input parameters of each level of model modules can be brought to the cache module, and depend on the logic input of a superior model module, so that each level of model modules in the processing model can be decoupled, the modules in the processing model are more independent, transaction service processing can be completed more independently, transaction service logics of upstream and downstream are not required to be relied on, decoupling is more achieved, in addition, the reusability of the modules is high, and independent acquisition and independent table falling of transaction data can be brought, so that developers only need to pay attention to the functions of the modules, do not need to pay attention to intermediate states of data when using the data, moreover, the code maintainability of each model module is high, the coupling between the modules is independently reduced, the change range and the risk of the subsequent transaction business are smaller, and the stability, the expandability and the maintainability of the financial transaction process are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
It should be noted that, all or part of the modules in the processing system may be implemented by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is adapted to communicate with an external device via a network connection, such as an external client, to obtain initial transaction parameters or to obtain relevant data/information from an external database, buffer module, and to implement the functions of or steps implemented by a process model in a processing system when executed by a processor.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the functions of the process model or the steps implemented by the process model in the processing system when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the functionality of or the steps implemented by a process model in the processing system described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A processing system based on a cache technology is characterized by comprising an acquisition module, a processing model and a cache module, wherein the processing model comprises a multi-level model module;
the acquisition module is used for acquiring transaction information and transmitting the transaction information into the processing model, wherein the transaction information comprises transaction types and transaction parameters;
the processing model is used for correspondingly processing old transaction information according to the transaction type and the transaction parameters to obtain a model processing result, wherein each level of model module in the multi-level model modules is connected to the cache module, a preset execution logic sequence is arranged among the multi-level model modules, each level of model module in the multi-level model modules is used for acquiring required information from the cache module according to the processing logic of the model module and processing the required information and the processing logic of the model module to obtain the processing result of the module, and the required information comprises the module processing result obtained by processing other level of model modules and/or the transaction parameters.
2. The processing system of claim 1, wherein the processing model includes a transaction adjustment module, a monetary sum module, an offset counter and an issuance module;
the transaction adjusting module is used for analyzing the transaction parameters to obtain account identification and the amount related to the transaction type; acquiring the old transaction information corresponding to the account according to the account identification and the transaction type, wherein the old transaction information comprises a transaction state and a transaction principal; according to the related amount, correspondingly adjusting the transaction principal and modifying the transaction state according to the transaction type to obtain new transaction information of the account, and caching the new transaction information in the caching module;
the sum of money summarizing module is used for acquiring the new transaction information from the cache module, correspondingly correcting the sum of money in the old transaction data according to the transaction principal in the new transaction information to obtain new transaction data, and caching the new transaction data in the cache module;
the offset counting and extracting module is used for acquiring the new transaction information from the cache module, assembling all information of the new transaction information to obtain offset counting and extracting data, synchronizing the offset counting and extracting data to a financial system in an interface mode, and caching the offset counting and extracting data in the cache module;
and the data issuing module is used for acquiring the new transaction data from the cache module, sending the new transaction data to the association system, and storing the issuing state in a database.
3. The processing system of claim 2, wherein the transaction adjustment module is further specifically configured to:
judging whether the old transaction information can be acquired from the cache module or not according to the account identification and the transaction type;
and if not, acquiring the old transaction information from a corresponding database according to the account identification and the transaction type, and storing the old transaction information in the cache module.
4. The processing system of claim 2, wherein the process model further comprises a logging module;
and the log recording module is used for acquiring the new transaction data from the cache module, recording the difference between the new transaction data and the old transaction data, and storing the data recording result in the database.
5. The processing system of any of claims 2-4, wherein the old transaction information and the old transaction data are pre-cached in the caching module.
6. The processing system of any of claims 2-4, wherein the cache module is a redis cache module or a blockchain database.
7. A processing method based on a processing system, the processing system comprising an acquisition module, a processing model and a caching module, the processing model comprising a multi-level model module, the method comprising:
the acquisition module acquires transaction information and transmits the transaction information into a processing model, wherein the transaction information comprises a transaction type and a transaction parameter;
the processing model correspondingly processes the old transaction information according to the transaction type and the transaction parameters to obtain a model processing result; the processing model comprises a plurality of stages of model modules, each stage of model module in the plurality of stages of model modules is connected to a cache module, a preset execution logic sequence is arranged among the plurality of stages of model modules, each stage of model module in the plurality of stages of model modules is used for acquiring required information from the cache module according to the processing logic of the model module, and processing the required information and the processing logic of the model module to obtain a processing result of the module according to the required information and the processing logic of the model module, and the required information comprises module processing results obtained by processing other stages of model modules and/or the transaction parameters.
8. The processing method of claim 7, wherein the processing model comprises a transaction adjusting module, a sum summarizing module, an offset counting and submitting module and a data issuing module, and the processing model performs corresponding processing on old transaction information according to the transaction type and the transaction parameters to obtain a model processing result, comprising:
the transaction adjusting module analyzes the transaction parameters to obtain account identification and the amount related to the transaction type; acquiring the old transaction information corresponding to the account according to the account identification and the transaction type, wherein the old transaction information comprises a transaction state and a transaction principal; according to the related amount, correspondingly adjusting the transaction principal and modifying the transaction state according to the transaction type to obtain new transaction information of the account, and caching the new transaction information in the caching module;
the sum of money module obtains the new transaction information from the cache module, and correspondingly corrects the sum of money in the old transaction data according to the transaction principal in the new transaction information to obtain new transaction data, and the new transaction data is cached in the cache module;
the offset counting and extracting module acquires the new transaction information from the cache module, assembles all information of the new transaction information to obtain offset counting and extracting data, synchronizes the offset counting and extracting data to a financial system in an interface mode, and caches the offset counting and extracting data in the cache module;
and the data issuing module acquires the new transaction data from the cache module, issues the new transaction data to an association system, and stores an issuing state in a database.
9. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the functionality of a processing model in a processing system according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the functions of a processing model of a processing system according to any one of claims 1 to 6.
CN202110423397.5A 2021-04-20 2021-04-20 Processing system, method, computer equipment and storage medium based on cache technology Pending CN112950384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110423397.5A CN112950384A (en) 2021-04-20 2021-04-20 Processing system, method, computer equipment and storage medium based on cache technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110423397.5A CN112950384A (en) 2021-04-20 2021-04-20 Processing system, method, computer equipment and storage medium based on cache technology

Publications (1)

Publication Number Publication Date
CN112950384A true CN112950384A (en) 2021-06-11

Family

ID=76233011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110423397.5A Pending CN112950384A (en) 2021-04-20 2021-04-20 Processing system, method, computer equipment and storage medium based on cache technology

Country Status (1)

Country Link
CN (1) CN112950384A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643003A (en) * 2021-08-30 2021-11-12 南方电网数字电网研究院有限公司 Remote meter reading system for power grid user power consumption

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100312675A1 (en) * 2009-06-03 2010-12-09 Awad Gasan O Systems and Methods for Reporting Chargebacks
CN110442608A (en) * 2019-07-31 2019-11-12 中国工商银行股份有限公司 Information processing method, device, electronic equipment, medium and system
CN111144804A (en) * 2019-12-11 2020-05-12 江苏苏宁物流有限公司 Order processing method, device and system
CN111666157A (en) * 2020-04-03 2020-09-15 中国科学院电子学研究所苏州研究院 Rapid processing method and system for geographic space image data
CN112580975A (en) * 2020-12-16 2021-03-30 中国建设银行股份有限公司 Business process processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100312675A1 (en) * 2009-06-03 2010-12-09 Awad Gasan O Systems and Methods for Reporting Chargebacks
CN110442608A (en) * 2019-07-31 2019-11-12 中国工商银行股份有限公司 Information processing method, device, electronic equipment, medium and system
CN111144804A (en) * 2019-12-11 2020-05-12 江苏苏宁物流有限公司 Order processing method, device and system
CN111666157A (en) * 2020-04-03 2020-09-15 中国科学院电子学研究所苏州研究院 Rapid processing method and system for geographic space image data
CN112580975A (en) * 2020-12-16 2021-03-30 中国建设银行股份有限公司 Business process processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643003A (en) * 2021-08-30 2021-11-12 南方电网数字电网研究院有限公司 Remote meter reading system for power grid user power consumption

Similar Documents

Publication Publication Date Title
CN108846659B (en) Block chain-based transfer method and device and storage medium
CN110121727B (en) Method and system for providing authenticated, auditable and immutable input for intelligent contracts
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
CN111309745B (en) Virtual resource processing method and device, electronic equipment and storage medium
US20220036350A1 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
CN103971197A (en) Cross-border e-commerce reconciliation method and cross-border e-commerce reconciliation
CN110597919A (en) Data management method, device and equipment based on block chain and storage medium
CN111580874A (en) System safety control method and system for data application and computer equipment
CN110689417A (en) Accounting system-based settlement method and system, storage medium and terminal
WO2018192931A1 (en) Delivery versus payment mechanism
CN112950384A (en) Processing system, method, computer equipment and storage medium based on cache technology
CN111260421B (en) Electronic invoice management and control method and device based on block chain
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
CN113128998B (en) Service processing method, device and system of block chain system
CN113032036B (en) Service data processing method, device, system, computer equipment and storage medium
CN112801616B (en) Abnormal account book processing method and device
CN111797590B (en) Data checking method, device and equipment
CN113159968A (en) Data processing method and device based on financial core batch transaction scene
CN111047323A (en) Credit transaction method and device based on block chain and hardware equipment
CN111582851B (en) Platform money printing method and device based on big data, electronic equipment and storage medium
CN113781034B (en) Billing and checking method based on cache
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
US20230244859A1 (en) System and method for automatically sharing verified user information across remote systems
CN116934318A (en) General method, device, equipment and storage medium for processing online banking flow
CN117291608A (en) Transaction request verification method and system based on hierarchical asynchronous execution

Legal Events

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