CN113706296A - Method, apparatus, device and medium for replaying fund settlement scene - Google Patents

Method, apparatus, device and medium for replaying fund settlement scene Download PDF

Info

Publication number
CN113706296A
CN113706296A CN202111031177.4A CN202111031177A CN113706296A CN 113706296 A CN113706296 A CN 113706296A CN 202111031177 A CN202111031177 A CN 202111031177A CN 113706296 A CN113706296 A CN 113706296A
Authority
CN
China
Prior art keywords
calculation
scene
fund settlement
case
replay
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
CN202111031177.4A
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.)
Shenzhen Dingsheng Computer Technology Co ltd
Original Assignee
Shenzhen Dingsheng Computer 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 Shenzhen Dingsheng Computer Technology Co ltd filed Critical Shenzhen Dingsheng Computer Technology Co ltd
Priority to CN202111031177.4A priority Critical patent/CN113706296A/en
Publication of CN113706296A publication Critical patent/CN113706296A/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/03Credit; Loans; Processing thereof

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for replaying a fund settlement scene. The method comprises the following steps: acquiring a fund settlement request; calling a scene initialization interface, and determining a target scene corresponding to the fund settlement request according to the input parameters specified in the request; calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene; taking input parameters and calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting target scenes, and storing a calculation case library; when a replay demand is generated, determining a scene needing to be replayed according to the scene demand; selecting cases meeting the requirements of the scenes to be replayed from the database according to the scenes to be replayed and the scene marks; a replay component is employed to perform replay computations on the cases to validate the computational logic. The invention can flexibly initialize the required replay scene and clearly sense the incomplete coverage condition under the case.

Description

Method, apparatus, device and medium for replaying fund settlement scene
Technical Field
The embodiment of the invention relates to the computer data processing technology, in particular to a method, a device, equipment and a medium for replaying a fund settlement scene.
Background
In the financial industry, there are many calculation requirements in business scenarios, for example, repayment interest needs to be calculated in loan business, and each calculation requirement needs to be processed by corresponding calculation logic. In a large data volume computing system at the financial level, each change of a small computing logic may have a huge influence, and particularly in financial business, the fund loss may be caused.
At present, the common practice in the industry is that when a computing system is in operation at ordinary times, a batch of data of computing cases is collected according to a set routing rule, and request parameters and computing results of the computing cases are stored and stored in a case library. After a certain computing logic of the system is modified, the collected computing cases are subjected to batch recalculation by adopting a new computing logic, and if the result of the unmodified computing cases calculated by the new computing logic is completely consistent with the result of the calculation of the old computing logic, the new computing logic is correct and safe to modify, so that the modifying risk of the computing logic can be controlled.
However, the collected calculation cases are difficult to be equalized and cover scenes corresponding to various calculation logics. The computational logic of some cold business scenarios is not actually computed by the efficient replay, resulting in a higher risk of computational logic modification errors.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for replaying a fund settlement scene, which are used for accurately controlling the replay of the fund settlement scene and improving the safety of risk control.
In a first aspect, an embodiment of the present invention provides a method for replaying a fund settlement scenario, including:
acquiring a fund settlement request;
calling a scene initialization interface, and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to input parameters specified in the fund settlement request;
calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
when a replay demand is generated, determining at least one scene to be replayed which needs to be replayed according to the scene demand;
selecting a calculation case meeting the requirements of the scene to be replayed from a calculation case library according to the scene to be replayed and the scene mark;
a replay component is employed to perform replay computations on the computation cases to validate the computation logic.
In a second aspect, an embodiment of the present invention further provides a device for playing back a fund settlement scenario, where the device includes:
the settlement request acquisition module is used for acquiring a fund settlement request;
the system comprises a scene initialization module, a fund settlement module and a fund transfer module, wherein the scene initialization module is used for calling a scene initialization interface and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to input parameters specified in the fund settlement request;
the fund settlement module is used for calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
the scene marking module is used for taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
the scene playback module is used for determining at least one scene to be played back according to the scene requirement when the playback requirement is generated;
the case selection module is used for selecting a calculation case meeting the requirements of the scene to be replayed from the calculation case library according to the scene to be replayed and the scene mark;
and the logic verification module is used for adopting a replay component to carry out replay calculation on the calculation case so as to verify the calculation logic.
In a third aspect, an embodiment of the present invention further provides a playback apparatus for a fund settlement scenario, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for replaying a funds settlement scenario provided by an embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a playback medium of a fund settlement scenario, on which a computer program is stored, where the program, when executed by a processor, implements the method for playing back the fund settlement scenario provided by the embodiment of the present invention.
According to the method, the device, the equipment and the medium for replaying the fund settlement scene, the input parameters of the fund settlement request are called through the call scene initialization interface, the calculation result is obtained according to the input parameters and the calculation rule of the target scene corresponding to the fund settlement request, and the input parameters and the calculation result are used as cases in the target scene and are stored in the case library. And analyzing input parameters corresponding to the cases while collecting the cases, mapping the input parameters to target scenes corresponding to the cases through the case input parameters, and marking the target scenes. Therefore, when scene calculation logic verification is carried out, cases can be acquired in a targeted mode according to scene marks, and a sufficient number of cases are acquired from a case base for replaying without blind or scene distinguishing. By utilizing the technical scheme, the embodiment of the invention can clearly show the scenes covered by the replayed cases, realizes clear perception of the covering condition of each scene case, and finds the corresponding calculation rule through the scene mark in the replay verification process of the cases, so that the replay verification result is more accurate. The problem that after the fund settlement scene is modified and the case is collected, the verification result generated when the case is replayed and verified is inaccurate, the collection routing logic needs to be modified or the time for storing data in the case pool needs to be increased, and the verification process is greatly prolonged is solved.
Drawings
Fig. 1 is a flowchart of a method for replaying a fund settlement scenario according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for calculating an interface bill calculation scenario according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a replay calculation operation in the replay method of the fund settlement scenario according to the second embodiment of the present invention;
fig. 4 is a flowchart of target scene acquisition corresponding to a fund settlement request calculation case according to a third embodiment of the present invention;
FIG. 5 is a block diagram showing the construction of a fund settlement scenario replay apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a playback device of a fund settlement scenario according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example 1
Fig. 1 is a flowchart of a method for replaying a fund settlement scenario according to an embodiment of the present invention, which is applicable to a situation where a case in the fund settlement scenario is effectively collected and replayed, and is mainly applied to determining a fund settlement target scenario according to an input parameter in a fund settlement request, performing a fund settlement calculation on an input parameter in the fund settlement request according to a calculation rule in the target scenario, and storing the input parameter and a calculation result as the case in the target scenario in an instance library; when a replay verification requirement is generated, mapping the key parameters in the case input parameters to the scene marks, finding the calculation rule of the target scene according to the scene marks, and carrying out replay calculation on the input parameters in the case according to the calculation rule so as to verify the calculation logic. But the application scenario is not limited thereto. The method may be executed by a device for replaying a fund settlement scenario, which may be implemented by software and/or hardware, and which may be configured on a computing device, such as a server of a financial system or a terminal device of the financial system, and specifically includes the following steps:
and S110, acquiring a fund settlement request.
In particular, the request for funds settlement may be obtained by a component in a server of the financial system.
The server of the financial system can provide network services of finance such as loan and repayment for the user, and the user can generally access the services provided by the server through a client, a webpage or other ways. There are various requirements for fund settlement in financial services. The fund settlement refers to the money receiving and paying actions caused by economic exchange of commodity transaction, labor service and the like between units or individuals. The fund settlement request may be a cash flow around the user by a bank, a service request including account management, settlement of initial payment, and settlement of fund flow provided to the user. Under different financial business scenes, various fund settlement requirements exist, and a fund settlement request is initiated by a user or automatically initiated by a system.
S120, calling a scene initialization interface, and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to the input parameters specified in the fund settlement request;
the scenario includes various target scenarios corresponding to the fund settlement request, for example, a repayment scenario and a loan scenario, or may be an interface bill calculation scenario, which is not limited in this embodiment of the present invention. The server is preset with a scene initialization interface for initializing declarations of various scenes, and the scenes can be continuously updated in the scene initialization interface along with service development. Preferably, all scenarios can be declared.
The input parameters are key parameters in the fund settlement process, and can be used to determine what settlement strategy and calculation rule are used, and parameters used in the settlement process, for example, in the fund settlement of repayment and/or loan, the input parameters can include repayment and/or loan related information, such as repayment and/or loan interest rate, repayment and/or loan principal, repayment and/or loan time, or repayment and/or loan number, etc. In different service scenarios and fund settlement requests, the input parameters may be different, which is not limited in the embodiment of the present invention.
The method comprises the steps of calling a scene initialization interface for recording various scenes, wherein the interface function can be realized through codes or algorithms, and the scene initialization interface can determine which target scene a current fund settlement request is input into from all scenes based on input parameters.
S130, calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
it should be noted that the fund settlement request in this embodiment is a calculation case in the target scenario.
Specifically, each target scene has its corresponding calculation rule, and if there are multiple service channels in the scene, each channel may also correspond to the same or different calculation rules. After the input parameters in the fund settlement request are obtained through the scene initialization interface, the calculation rule of the target scene can be further obtained according to the input parameters. And the server can calculate the fund settlement of the input parameters in the fund settlement request based on the calculation rule and obtain the calculation result of the fund settlement.
Specifically, the operations may include:
calling information parameters of the target scene through a service system, wherein the information parameters comprise data of the interface bill calculation scene;
wherein, the service system may be a financial service system, and the target scenario may be that: an interface bill calculation scenario, an interface bill loan scenario, and an interface bill settlement interest scenario. For example, the data for the interface billing calculation scenario may be: loan amount, loan time, interest rate, repayment time, etc.
Adding the calculation rule of the target scene in the service system by adding the configuration of the target scene in the service system; each target scene corresponds to one calculation rule, and the target scene where each calculation rule is located is provided with a scene mark;
the configuration of adding the target scene to the service system can be realized by codes, and the calculation rule of adding the target scene to the service system can be realized by algorithms. For example, the algorithm may be an independent component analysis algorithm. Setting an ID as a scene mark of the target scene for each target scene, wherein each ID can be mapped to one or more information parameters, and the mapped information parameters serve as key parameters; and each key parameter can only be mapped to the ID of one target scene.
And if one key parameter in the input parameters hits the scene mark of the target scene, carrying out fund settlement on the input parameters in the fund settlement request according to a calculation rule corresponding to the target scene.
For example, the scene tag ID of the interface bill calculation scenario may be mapped to the information parameter of the repayment time, the calculation rules of the interface bill calculation scenarios corresponding to different repayment times are different, the scene tag ID of the interface bill calculation scenario may be mapped to the repayment time in this embodiment, and the repayment time is a key parameter. The input parameter in the fund settlement request includes a repayment time parameter, and the repayment time is 2022 years. The repayment time 2022 year in the input parameters can be mapped to the scene mark ID of the repayment time 2022 year, and the fund settlement request calculation rule of the repayment time 2022 year in the target scene is obtained through the scene mark. And carrying out fund settlement on the input parameters in the fund settlement request through the calculation rules.
S140, taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
the method comprises the steps of obtaining a calculation result of fund settlement through input parameters in a fund settlement request and a calculation rule of a target scene, taking the input parameters and the calculation result of the fund settlement request as a calculation case, comparing the initialized channels listed through the input parameters and the initialized channels of the input parameters of the fund settlement request, determining the target scene corresponding to the fund settlement request, and storing the target scene into a scene list in a server.
The calculation case can be marked according to the target scene, and the calculation case is marked as an implementation case in the target scene. The marking mode of the scene can add corresponding labels to the calculation cases, or can store the case differentiation of different scenes in different areas of the case base to differentiate the scenes.
Preferably, after the calculation result of the fund settlement is obtained, whether the case state in the target scene corresponding to the fund settlement request is not collected is further judged, if yes, the scene corresponding to the channel corresponding to the fund settlement request case is updated to be collected, and the replay case is stored in the case library.
After the cases in the target scene are obtained, if the cases are not collected in the target scene, the calculation cases of the fund settlement request are stored in a calculation case library, and the target scene corresponding to the channel of the fund settlement request is updated into a collected case. The calculation case base can be a database, and the calculation case base stores cases to be replayed. Of course, if the case status in the target scenario corresponding to the request for funds settlement is collected, it is not necessary to repeatedly collect the case in the scenario. Generally, a set number of cases may be collected for each scene.
For example, taking an interface bill calculation scenario as an example, as shown in fig. 2, service a needs to call an expectCalc interface of the settlement system to calculate predicted repayment order data, which is used as a fund settlement request of this case, i.e., settlement service B, and its input parameters include principal, interest rate, borrowing date and repayment time. The interface bill calculation scene is planned in a production environment for the first time, the expected repayment bill data input parameters hit case collection rules of the interface bill calculation scene, namely the interface bill calculation scene has an initialization channel and an initialization calculation rule corresponding to the interface bill calculation scene, the expected repayment bill data input parameters hit the initialization channel corresponding to the interface bill calculation scene, the calculation rules of the interface bill calculation scene are obtained according to the input parameters, the calculation results of the interface bill calculation scene are obtained, borrowing dates are selected as request parameters to mark the cases and the target scene, and the expected repayment bill data input parameters and the calculation results are placed in a calculation case library.
S150, when a replay demand is generated, determining at least one scene to be replayed which needs to be replayed according to a scene demand;
illustratively, cases meeting the playback requirements are all stored in the computing case base, taking the interface bill computing scenario shown in fig. 2 as an example, the playback requirements may be due to the fact that the computing rules of the interface bill computing are subsequently modified, and whether the case can hit a new computing rule is verified through the interface bill computing case in the computing case base. The scene requirement at this time is the interface bill calculation scene.
S160, selecting a calculation case meeting the requirements of the scene to be replayed from a calculation case library according to the scene to be replayed and the scene mark;
specifically, a fund settlement request target scene to be replayed is determined, the target scene corresponds to a case to be replayed, and input parameters and calculation results of the case to be replayed are obtained from a calculation case library; and hitting the scene marks through the request parameters of the case to be replayed, selecting a calculation scene meeting the requirements of the case to be replayed according to the scene marks, and obtaining a calculation rule under the scene.
Illustratively, taking the interface bill calculation scenario shown in fig. 2 as an example, the calculation rule of the interface bill calculation is subsequently modified, when the cases in the calculation case library are replayed and verified, the input parameters and the calculation results of the calculation cases in the interface bill calculation scenario are obtained from the case library, where the input parameters of the calculation cases may include principal, interest rate, borrowing date and repayment time, the borrowing date may be set in the server as a request parameter, the request parameters and the calculation results of the cases are placed in a message queue, and replay calculation is performed according to the calculation rule before modification through the key parameters in the message queue.
Specifically, the request parameter in the message queue hits a scene mark parameter of the target scene, and according to the scene mark, the scene mark may be a borrowing date, and a calculation rule of the scene at the time of the borrowing date is selected to perform case playback calculation.
And S170, performing replay calculation on the calculation case by adopting a replay component so as to verify the calculation logic.
The replay component may be a component in the server, and the replay component may implement a function of performing replay computation on a case to be replayed in the computation case library, where the function may be implemented by software or hardware.
Specifically, according to the calculation rule of the fund settlement request target scene, calculating the calculation result of the replay verification through the input parameters of the case to be replayed; and comparing the calculation result of the replay verification with the expected result, and if the calculation result is consistent with the expected result, determining that the calculation logic is correct. The expected result is the case calculation result stored in the calculation case library before the case is replayed and verified.
Illustratively, taking the interface bill calculation scenario shown in fig. 2 as an example, when performing case playback verification, a calculation rule meeting the requirements of a case to be played back is selected by requesting parameters and a scenario flag, and case parameters of the interface bill calculation scenario are input into the selected calculation rule for calculation, so as to obtain a calculation result in the case to be played back. And comparing the expected results of the calculation results in the replay case, and if the calculation results are consistent with the expected results, verifying that the calculation results are correct in calculation logic.
On the basis of the technical scheme, the case is preferably subjected to replay calculation by adopting a replay component. Analyzing at least one computing service required to be invoked for the computing case with the replay component; and for the input parameters in the calculation cases, generalizing and calling the calculation service, carrying out replay calculation on the calculation cases, and obtaining a calculation result.
The case playback calculation has the advantages that after the calculation rules are modified, when the calculation cases in the database are subjected to playback verification, the calculation rules of the cases can be hit through the request parameters of the cases, the calculation service is called in a generalization mode, the case playback calculation results are obtained through the calculation rules, and the whole playback verification process is shortened.
The embodiment provides a method for replaying a fund settlement scene, which calls a fund settlement request input parameter through a call scene initialization interface, obtains a calculation result according to the input parameter and a calculation rule of a target scene corresponding to the fund settlement request, and saves the input parameter and the calculation result as a case in the target scene into a case library. And analyzing input parameters corresponding to the cases while collecting the cases, mapping the input parameters to target scenes corresponding to the cases through the case input parameters, and marking the target scenes. Therefore, when scene calculation logic verification is carried out, cases can be acquired in a targeted mode according to scene marks, and a sufficient number of cases are acquired from a case base for replaying without blind or scene distinguishing. By utilizing the technical scheme, the embodiment of the invention can clearly show the scenes covered by the replayed cases, realizes clear perception of the covering condition of each scene case, and finds the corresponding calculation rule through the scene mark in the replay verification process of the cases, so that the replay verification result is more accurate. The method solves the problems that after the capital settlement scene case collection rule is modified, the verification result generated when the case is replayed and verified is inaccurate, the collection routing logic needs to be modified or the time for storing data in the case pool needs to be increased, and the verification process is greatly prolonged.
Example two
Fig. 3 is a flowchart of a replay calculation operation in the replay method of the fund settlement scenario according to the second embodiment of the present invention, the technical solution of the present embodiment is further detailed on the basis of the above technical solution, specifically, as shown in fig. 3, the present embodiment adopts a replay component to perform replay calculation on the calculation case to verify the calculation logic.
Optionally, as shown in fig. 3, the method for playing back a fund settlement scenario provided in this embodiment may include the following steps:
s210, a replay component is adopted to carry out replay calculation on the calculation case so as to obtain a calculation result;
specifically, the replay component may be implemented by software or hardware, and acquires at least one calculation case to be replayed in a fund settlement scene from the case library, acquires details that a service corresponding to a calculation case demand needs to be executed, where the details that need to be executed include input parameters and original calculation results of the replay case stored in the case library, and corresponding calculation rules, and defines an original calculation result of the replay calculation case as an expected result;
analyzing the calculation case to be replayed, and acquiring input parameters and an original calculation result of the calculation case to be replayed; hit the scene mark through the request parameter of the case to be replayed, choose the fund settlement scene meeting the case requirement to be replayed according to the scene mark, and obtain the calculation rule under the scene; and according to the calculation rule under the scene, obtaining a calculation result under the replay verification through the input parameters of the case to be replayed.
S220, comparing the calculation result with the existing calculation result in the calculation case; if the comparison is consistent, the replay states of the updated cases are consistent; if the comparison is inconsistent, the replay state of the updated case is inconsistent;
specifically, the calculation result under the playback verification is compared with the expected result, and if the calculation result is consistent with the expected result, the playback state of the update case is consistent. If the calculated result is inconsistent with the expected result, the playback status of the updated case is inconsistent. If the playback states of the cases are inconsistent, the playback states of the cases can be updated, for example, other input parameters in the playback calculation cases can be selected as request parameters for playback verification, and the playback states of the updated cases are consistent.
Specifically, if the calculated result under replay verification is not consistent with the expected result, the method further comprises:
judging whether the configuration of the computing service is correct or not;
where the configuration of the computing service may be that the selection of the requested parameters is inaccurate.
And alarming the correctness of the calculation logic according to whether the calculation result can be obtained or not, whether the comparison of the calculation results is consistent or not and whether the configuration is correct or not.
And S230, verifying the calculation logic according to whether the calculation results are consistent or not.
Specifically, if the comparison between the calculation result and the expected result is consistent, the calculation logic is verified to be correct.
According to the technical scheme of the embodiment, the calculation cases are replayed and calculated through the replay assembly, the key parameters in the replay cases hit the calculation rules of the scenes corresponding to the replay cases, the cases can be replayed according to the calculation rules, whether the calculation logic is wrong or not or whether the configuration of calculation service is wrong is verified while the cases are replayed, the problem that a large amount of time is consumed by replaying a large number of cases is solved, and the effect of shortening the verification process is achieved.
EXAMPLE III
Fig. 4 is a flowchart of target scene acquisition corresponding to a fund settlement request calculation case according to a third embodiment of the present invention. The technical scheme of the embodiment is further refined on the basis of the technical scheme, namely after the target scene corresponding to the fund settlement request is determined, various scenes are further collected. Specifically, as shown in fig. 4, the present embodiment explains the collection process for executing the fund settlement scenario in detail.
Optionally, as shown in fig. 4, the method for playing back a fund settlement scenario provided in this embodiment may include the following steps:
s310, determining a corresponding channel according to the input parameters of the fund settlement request; wherein the channels are classified according to settlement requirements of fund settlers;
the input parameters of the request for fund settlement include and/or loan-related information, which may be, for example, repayment and/or loan interest rate, repayment and/or loan principal, repayment and/or loan time, or may be, for example, the number of repayment and/or loan, and the like, which is not limited in this embodiment of the present invention. The corresponding channels are input parameter full-scale initialization channels, each initialization channel corresponds to a target scene, and one target scene can correspond to a plurality of initialization channels.
The channels are classified according to the settlement requirements of the fund settlement party, namely, the corresponding initialization channels under the same fund settlement target scene can be classified into one class, namely, the channels with the same settlement requirements can be classified into one class. And initializing calculation rules by classifying the channels to enumerate parameters of all target scenes.
Specifically, after enumerating a target scene corresponding to fund settlement, the server acquires a fund settlement calculation case and analyzes input parameters in the calculation case; if the input parameters in the calculation cases hit case collection rules, target scenes corresponding to the calculation cases exist, and the calculation cases are classified into the corresponding target scenes.
The method comprises the steps of analyzing input parameters in a capital settlement calculation case, obtaining an initialization channel according to the input parameters, and if the initialization channel enabling the input parameters to be initialized in full exists, hitting case collection rules by the input parameters in the calculation case, and having a target scene corresponding to the calculation case. And acquiring a target scene through an initialization channel, and classifying the calculation case into a corresponding target scene.
S320, enumerating all corresponding scenes according to the determined one or more channels, and determining whether the target scene is in the range of all scenes; if yes, confirming the target scene, and if not, giving an alarm.
Specifically, according to the classification condition of the initialization channel, enumerating all fund settlement target scenes, and storing the target scenes in a scene list in the server. After the server acquires the fund settlement request to be executed, a scene initialization interface in the server acquires the input parameters specified in the fund settlement request, and initializes calculation rules according to the input parameter lists, wherein each calculation rule corresponds to one initialization channel. If a channel for initializing the input parameters in full exists, the fund settlement request has a corresponding target scene, and the target scene is confirmed to be a collected scene; and if the channel for initializing the input parameters in full does not exist, the server gives an alarm to the fund settlement requester.
Further, whether the target scene exists in the calculation case base or not is judged by analyzing the input parameters in the fund settlement calculation case.
Specifically, through a pre-operation, parameters of all scenes are initialized, initialization channels of all scenes are obtained, each initialization channel corresponds to one scene, after a fund settlement request needing to be executed is obtained, the initialization channels are selected through analyzing input parameters in the fund settlement request, and a target scene corresponding to the fund settlement request is obtained through the initialization channels. If the target scene corresponding to the fund settlement request case exists, abandoning the collection of the calculation case; and if the target scene corresponding to the fund settlement request case does not exist, continuing to execute the operation of performing the fund settlement calculation based on the input parameters in the fund settlement request according to the calculation rule of the target scene, and updating the acquisition state of the target scene calculation case to be collected.
Specifically, a new initialization channel is designated according to the input parameters of the fund settlement request, the new initialization channel is input into a scene initialization interface of the server, and the fund settlement request is listed as a new scene and stored in a scene list in the server.
According to the technical scheme of the embodiment, through analyzing the input parameters of the fund settlement request, the calculation rules are initialized according to the input parameter list, each calculation rule corresponds to one initialization channel, each initialization channel corresponds to one target scene, and the fund settlement scenes are enumerated through the initialization of the input parameters, so that when the replay verification is carried out, the problems that massive data cases can cover all business scenes but the risks of the lacking scenes cannot be perceived can be solved by clearly perceiving the lacking scenes according to the input parameters of the calculation cases, all the scenes needing to be replayed are flexibly initialized, and the effect of covering the most scenes with the least data is achieved.
Example four
Fig. 5 is a block diagram of a fund settlement scenario playback apparatus according to a fourth embodiment of the present invention, which may execute a method for playing back a fund settlement scenario according to any embodiment of the present invention, as shown in fig. 5, the apparatus including: a settlement request acquisition module 510, a scenario initialization module 520, a funds settlement module 530, a scenario tagging module 540, a scenario playback module 550, a case selection module 560, and a logic verification module 570.
The settlement request obtaining module 510 is configured to obtain a fund settlement request; a scene initialization module 520, configured to invoke a scene initialization interface, and determine, according to input parameters specified in the fund settlement request, a target scene corresponding to the fund settlement request in multiple scenes listed in the scene initialization interface; a fund settlement module 530, configured to perform fund settlement calculation based on the input parameters in the fund settlement request according to the calculation rules of the target scenario; the scene marking module 540 is configured to use the input parameters and the calculation results of the fund settlement request as calculation cases, perform scene marking on the calculation cases by using the target scene, and store a calculation case library; a scene playback module 550, configured to determine at least one scene to be played back according to a scene requirement when a playback requirement is generated; the case selection module 560 is used for selecting a calculation case meeting the requirements of the scene to be replayed from the calculation case library according to the scene to be replayed and the scene mark; a logic verification module 570 for performing replay computations on the computation cases using a replay component to verify the computation logic.
According to the technical scheme provided by the embodiment, all scenes needing to be replayed are initialized flexibly, a complete scene list is constructed according to the rules of corresponding channels, the input parameters corresponding to the cases are analyzed while the cases are collected, the input parameters are mapped to the target scenes corresponding to the cases through the case input parameters, and the target scenes are marked. The method achieves the purposes of covering the most scenes with the least data, clearly perceiving the covering condition of each scene case and shortening the case playback time. The method solves the problems that under the background of massive requests and calculation, the collection of a large number of cases brings great pressure to consumers, and the reproduction of a large number of cases consumes a large amount of time, so that the verification process is greatly prolonged.
Further, the scene initialization module 520 may be specifically configured to:
determining a corresponding channel according to the input parameters of the fund settlement request; wherein the channels are classified according to settlement requirements of fund settlers; enumerating all corresponding scenes according to the determined one or more channels, and determining whether the target scene is in the range of all scenes; if yes, confirming the target scene, and if not, giving an alarm.
Further, the scene initialization module 520 may be further specifically configured to:
judging whether the target scene exists in the calculation case base or not, and if so, giving up the acquisition of the target scene; if not, continuing to execute the operation of calculating the fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene, and updating the acquisition state of the calculation case of the target scene to be collected.
Further, the fund settlement module 530 may be specifically configured to:
calling information parameters of the target scene through a service system, wherein the information parameters comprise data of the interface bill calculation scene;
adding the calculation rule of the target scene in the service system by adding the configuration of the target scene in the service system; each target scene corresponds to one calculation rule, and the target scene where each calculation rule is located is provided with a scene mark;
and if one key parameter in the input parameters hits the scene mark of the target scene, carrying out fund settlement on the input parameters in the fund settlement request according to a calculation rule corresponding to the target scene.
Further, the logic verification module 570 may be specifically configured to:
analyzing at least one computing service required to be invoked for the computing case with the replay component; and for the parameters in the calculation case, the calculation service is called in a generalization mode, the calculation case is subjected to replay calculation, and a calculation result is obtained.
Further, the logic verification module 570 may be further specifically configured to:
adopting a replay component to carry out replay calculation on the calculation case so as to obtain a calculation result; comparing the calculation result with the existing calculation result in the calculation case; if the comparison is consistent, the replay states of the thinner cases are consistent; if the comparison is inconsistent, the replay states of the thinner cases are consistent; and verifying the calculation logic according to the comparison result of whether the calculation results are consistent.
Wherein if the comparison is inconsistent, the method further comprises:
judging whether the configuration of the computing service is correct or not; and alarming the correctness of the calculation logic according to whether the calculation result can be obtained or not, whether the comparison of the calculation results is consistent or not and whether the configuration is correct or not.
The fund settlement scene playback device provided by the embodiment can be applied to the fund settlement scene playback method provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a playback apparatus for a fund settlement scenario according to a fifth embodiment of the present invention, as shown in fig. 6, the apparatus includes a processor 60, a memory 61, an input device 62, and an output device 63; the number of processors 60 in the device may be one or more, and one processor 60 is taken as an example in fig. 6; the processor 60, the memory 61, the input device 62 and the output device 63 in the apparatus may be connected by a bus or other means, as exemplified by the bus connection in fig. 6.
The memory 61 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the fund settlement scenario replay method in the embodiment of the present invention. The processor 60 executes various functional applications of the device and data processing, i.e., implements the above-described fund settlement scene playback method, by executing software programs, instructions, and modules stored in the memory 61.
The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 61 may further include memory located remotely from the processor 60, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 62 may be used to receive input funds settlement request information and to generate funds settlement request service parameter inputs relating to user settings and functional control of the apparatus. The output device 63 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for replaying a fund settlement scenario, the method including:
acquiring a fund settlement request;
calling a scene initialization interface, and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to input parameters specified in the fund settlement request;
calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
when a replay demand is generated, determining at least one scene to be replayed which needs to be replayed according to the scene demand;
selecting a calculation case meeting the requirements of the scene to be replayed from a calculation case library according to the scene to be replayed and the scene mark;
of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for replaying the fund settlement scenario provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of replaying a funds settlement scenario, comprising:
acquiring a fund settlement request;
calling a scene initialization interface, and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to input parameters specified in the fund settlement request;
calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
when a replay demand is generated, determining at least one scene to be replayed which needs to be replayed according to the scene demand;
selecting a calculation case meeting the requirements of the scene to be replayed from a calculation case library according to the scene to be replayed and the scene mark;
a replay component is employed to perform replay computations on the computation cases to validate the computation logic.
2. The method of claim 1, wherein performing replay computations for the computation cases using a replay component comprises:
analyzing at least one computing service required to be invoked for the computing case with the replay component;
and for the parameters in the calculation case, the calculation service is called in a generalization mode, the calculation case is subjected to replay calculation, and a calculation result is obtained.
3. The method of claim 1, wherein performing a replay computation on the computation cases with a replay component to validate computation logic comprises:
adopting a replay component to carry out replay calculation on the calculation case so as to obtain a calculation result;
comparing the calculation result with the existing calculation result in the calculation case;
if the comparison is consistent, the replay states of the updated cases are consistent;
if the comparison is inconsistent, the replay state of the updated case is inconsistent;
and verifying the calculation logic according to the comparison result of whether the calculation results are consistent.
4. The method of claim 3, wherein if the alignment is inconsistent, the method further comprises:
judging whether the configuration of the computing service is correct or not;
and alarming the correctness of the calculation logic according to whether the calculation result can be obtained or not, whether the comparison of the calculation results is consistent or not and whether the configuration is correct or not.
5. The method of claim 1, wherein after determining the target scenario corresponding to the fund settlement request, the method further comprises:
determining a corresponding channel according to the input parameters of the fund settlement request; wherein the channels are classified according to settlement requirements of fund settlers;
enumerating all corresponding scenes according to the determined one or more channels, and determining whether the target scene is in the range of all scenes;
if yes, confirming the target scene, and if not, giving an alarm.
6. The method of claim 1, wherein after determining the target scenario corresponding to the fund settlement request, the method further comprises:
judging whether the target scene exists in the calculation case base or not, and if so, giving up the acquisition of the target scene;
if not, continuing to execute the operation of calculating the fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene, and updating the acquisition state of the calculation case of the target scene to be collected.
7. The method according to claim 1, wherein the calculating of the fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scenario comprises:
calling information parameters of the target scene through a service system, wherein the information parameters comprise data of the interface bill calculation scene;
adding the calculation rule of the target scene in the service system by adding the configuration of the target scene in the service system; each target scene corresponds to one calculation rule, and the target scene where each calculation rule is located is provided with a scene mark;
and if one key parameter in the input parameters hits the scene mark of the target scene, carrying out fund settlement on the input parameters in the fund settlement request according to a calculation rule corresponding to the target scene.
8. A device for replaying a fund settlement scene, comprising:
the settlement request acquisition module is used for acquiring a fund settlement request;
the system comprises a scene initialization module, a fund settlement module and a fund transfer module, wherein the scene initialization module is used for calling a scene initialization interface and determining a target scene corresponding to the fund settlement request in a plurality of scenes listed by the scene initialization interface according to input parameters specified in the fund settlement request;
the fund settlement module is used for calculating fund settlement based on the input parameters in the fund settlement request according to the calculation rule of the target scene;
the scene marking module is used for taking the input parameters and the calculation results of the fund settlement request as calculation cases, carrying out scene marking on the calculation cases by adopting the target scene, and storing a calculation case library;
the scene playback module is used for determining at least one scene to be played back according to the scene requirement when the playback requirement is generated;
the case selection module is used for selecting a calculation case meeting the requirements of the scene to be replayed from the calculation case library according to the scene to be replayed and the scene mark;
and the logic verification module is used for adopting a replay component to carry out replay calculation on the calculation case so as to verify the calculation logic.
9. A device for replaying a funds settlement scene, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of playback of a funds settlement scenario of any of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method of replaying a funds settlement scenario as recited in any of claims 1-7.
CN202111031177.4A 2021-09-03 2021-09-03 Method, apparatus, device and medium for replaying fund settlement scene Pending CN113706296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111031177.4A CN113706296A (en) 2021-09-03 2021-09-03 Method, apparatus, device and medium for replaying fund settlement scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111031177.4A CN113706296A (en) 2021-09-03 2021-09-03 Method, apparatus, device and medium for replaying fund settlement scene

Publications (1)

Publication Number Publication Date
CN113706296A true CN113706296A (en) 2021-11-26

Family

ID=78659017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111031177.4A Pending CN113706296A (en) 2021-09-03 2021-09-03 Method, apparatus, device and medium for replaying fund settlement scene

Country Status (1)

Country Link
CN (1) CN113706296A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658234A (en) * 2018-12-26 2019-04-19 深圳乐信软件技术有限公司 Payment beforehand method for computing data, device, computer equipment and storage medium
CN111382081A (en) * 2020-03-27 2020-07-07 中国建设银行股份有限公司 Entry verification test method and device
CN111553656A (en) * 2020-04-28 2020-08-18 好活(昆山)网络科技有限公司 Capital settlement method and device based on big data, electronic equipment and medium
CN111858608A (en) * 2020-07-27 2020-10-30 深圳乐信软件技术有限公司 Data management method, device, server and storage medium
CN112365278A (en) * 2020-09-27 2021-02-12 国电南瑞科技股份有限公司 Electric power spot settlement method based on case scene

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658234A (en) * 2018-12-26 2019-04-19 深圳乐信软件技术有限公司 Payment beforehand method for computing data, device, computer equipment and storage medium
CN111382081A (en) * 2020-03-27 2020-07-07 中国建设银行股份有限公司 Entry verification test method and device
CN111553656A (en) * 2020-04-28 2020-08-18 好活(昆山)网络科技有限公司 Capital settlement method and device based on big data, electronic equipment and medium
CN111858608A (en) * 2020-07-27 2020-10-30 深圳乐信软件技术有限公司 Data management method, device, server and storage medium
CN112365278A (en) * 2020-09-27 2021-02-12 国电南瑞科技股份有限公司 Electric power spot settlement method based on case scene

Similar Documents

Publication Publication Date Title
US8296205B2 (en) Connecting decisions through customer transaction profiles
CN108876133A (en) Risk assessment processing method, device, server and medium based on business information
CN110782240A (en) Service data processing method and device, computer equipment and storage medium
CN110147925B (en) Risk decision method, device, equipment and system
CN111681091A (en) Financial risk prediction method and device based on time domain information and storage medium
CN111932268A (en) Enterprise risk identification method and device
CN114187112A (en) Training method of account risk model and determination method of risk user group
US20140279380A1 (en) Automated searching credit reports to identify potential defaulters
US11714917B2 (en) Systems and methods for anonymizing sensitive data and simulating accelerated schedule parameters using the anonymized data
CN114186626A (en) Abnormity detection method and device, electronic equipment and computer readable medium
CN114693192A (en) Wind control decision method and device, computer equipment and storage medium
CN112702410B (en) Evaluation system, method and related equipment based on blockchain network
WO2019095569A1 (en) Financial analysis method based on financial and economic event on microblog, application server, and computer readable storage medium
US20210049687A1 (en) Systems and methods of generating resource allocation insights based on datasets
CN117273894A (en) Money back flushing method and related equipment
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN116629612A (en) Risk prediction method and device, storage medium and electronic equipment
CN113706296A (en) Method, apparatus, device and medium for replaying fund settlement scene
CN114239985A (en) Exchange rate prediction method and device, electronic equipment and storage medium
CN110443430B (en) Block chain-based service quality prediction method
Yeh et al. Predicting failure of P2P lending platforms through machine learning: The case in China
TWI835478B (en) An operation behavior recognition method, device, computer equipment and computer-readable storage medium
CN116882998B (en) Virtual currency fund analysis method
US20240331037A1 (en) Management of custodian-held securities based on conversion scores
CN112347371B (en) Social text information-based resource return and comparison increasing method and device and electronic equipment

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