CN109284331A - Accreditation information acquisition method, terminal device and medium based on business datum resource - Google Patents

Accreditation information acquisition method, terminal device and medium based on business datum resource Download PDF

Info

Publication number
CN109284331A
CN109284331A CN201810933461.2A CN201810933461A CN109284331A CN 109284331 A CN109284331 A CN 109284331A CN 201810933461 A CN201810933461 A CN 201810933461A CN 109284331 A CN109284331 A CN 109284331A
Authority
CN
China
Prior art keywords
accreditation
business datum
information
code
code statement
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.)
Granted
Application number
CN201810933461.2A
Other languages
Chinese (zh)
Other versions
CN109284331B (en
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 Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810933461.2A priority Critical patent/CN109284331B/en
Publication of CN109284331A publication Critical patent/CN109284331A/en
Application granted granted Critical
Publication of CN109284331B publication Critical patent/CN109284331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The present invention is suitable for technical field of data processing, a kind of accreditation information acquisition method, terminal device and medium based on business datum resource is provided, this method comprises: by synchronizing traffic data to the interim table created in real time;By preset accreditation algorithm, accreditation processing is carried out to the business datum in interim table;If detecting accreditation miscue information in accreditation treatment process, judge whether the suggestion content of accreditation miscue information meets the trigger condition of rollback event;If meeting the trigger condition of rollback event, in the code statement corresponding to accreditation algorithm, the code statement of the last execution is determined;The state data memory of business datum in interim table is rolled back to state data memory corresponding before code statement executes;If accreditation miscue information is not detected, the accreditation information about business datum is exported.The invention avoids needing to expend longer time again to re-execute identical code statement, therefore improve the acquisition efficiency of accreditation information.

Description

Accreditation information acquisition method, terminal device and medium based on business datum resource
Technical field
The invention belongs to technical field of data processing more particularly to a kind of accreditation acquisition of information based on business datum resource Method, terminal device and computer readable storage medium.
Background technique
Traditional accreditation method generally includes: carrying out lattice by manually capturing service data, then to the business datum Formula audits and adds necessary accreditation information, such as accreditation date, finally by the business datum and addition by format audit Accreditation information is stored together in accreditation table, to complete accreditation.
During accreditation, if detecting, error message occurs, and in order to maintain the consistency of data, data is avoided to occur Disorder, common settling mode is: all data is rolled back to the state before accreditation starts.However, if error message occurs The longer accreditation time has been consumed before, then performed persistence accreditation operates quilt before above-mentioned settling mode will will lead to It wastes.Also, after error exception, can only also spend identical time-consuming could whether authentication error node can be just again Often operation, therefore, existing accreditation report an error process flow result in accreditation information acquisition efficiency it is more low.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of based on the accreditation information acquisition method of business datum resource, end End equipment and computer readable storage medium, the acquisition efficiency to solve the problems, such as accreditation information in the prior art are more low.
The first aspect of the embodiment of the present invention provides a kind of accreditation information acquisition method based on business datum resource, packet It includes:
The business datum being stored in the system of rendering an account is obtained, and the synchronizing traffic data is interim to what is created in real time Table;
By preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table;
If detecting accreditation miscue information in accreditation treatment process, the accreditation miscue information is judged Whether suggestion content meets the trigger condition of rollback event;
If the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, calculated in the accreditation In code statement corresponding to method, the code statement of the last execution is determined;
The state data memory of business datum described in the interim table is rolled back to institute before the code statement executes Corresponding state data memory, to the code statement and to carry out Editorial Services to the business datum after rollback in user After reason, returns by preset accreditation algorithm described in executing, accreditation processing is carried out to the business datum in the interim table Operation;
If accreditation miscue information is not detected in accreditation treatment process, the system about the business datum is exported Demonstrate,prove information.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit Reservoir is stored with the computer program that can be run on the processor, and the processor is realized when executing the computer program Following steps:
The business datum being stored in the system of rendering an account is obtained, and the synchronizing traffic data is interim to what is created in real time Table;
By preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table;
If detecting accreditation miscue information in accreditation treatment process, the accreditation miscue information is judged Whether suggestion content meets the trigger condition of rollback event;
If the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, calculated in the accreditation In code statement corresponding to method, the code statement of the last execution is determined;
The state data memory of business datum described in the interim table is rolled back to institute before the code statement executes Corresponding state data memory, to the code statement and to carry out Editorial Services to the business datum after rollback in user After reason, returns by preset accreditation algorithm described in executing, accreditation processing is carried out to the business datum in the interim table Operation;
If accreditation miscue information is not detected in accreditation treatment process, the system about the business datum is exported Demonstrate,prove information.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
The business datum being stored in the system of rendering an account is obtained, and the synchronizing traffic data is interim to what is created in real time Table;
By preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table;
If detecting accreditation miscue information in accreditation treatment process, the accreditation miscue information is judged Whether suggestion content meets the trigger condition of rollback event;
If the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, calculated in the accreditation In code statement corresponding to method, the code statement of the last execution is determined;
The state data memory of business datum described in the interim table is rolled back to institute before the code statement executes Corresponding state data memory, to the code statement and to carry out Editorial Services to the business datum after rollback in user After reason, returns by preset accreditation algorithm described in executing, accreditation processing is carried out to the business datum in the interim table Operation;
If accreditation miscue information is not detected in accreditation treatment process, the system about the business datum is exported Demonstrate,prove information.
In the embodiment of the present invention, by being executed by synchronizing traffic data to interim table, then to the business datum in interim table Accreditation processing, ensure that the business datum under the business datum and production environment that handle in real time can be mutually isolated, avoid because Accreditation malfunctions and leads to the problem of business datum causes confusion under production environment appearance, to protect the integrality of data.This In inventive embodiments, based on the trigger condition of preset rollback event, the accreditation miscue for meeting trigger condition is being detected When information, the data rewind of automation is realized;It is substantially due to occurring accreditation miscue information because executing What newest Codabar code sentence just generated, therefore deposited by the way that business datum is rolled back to data corresponding to previous generation code sentence Storage state, so that user is after location code sentence problem or source data problem, it can be since the code statement, rapidly Restore accreditation operation process, avoids the need for expending longer time again therefore, mentioning to re-execute identical code statement The high acquisition efficiency of accreditation information.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process of the accreditation information acquisition method provided in an embodiment of the present invention based on business datum resource Figure;
Fig. 2 be another embodiment of the present invention provides the accreditation information acquisition method based on business datum resource realization stream Cheng Tu;
Fig. 3 is the realization stream for the accreditation information acquisition method based on business datum resource that further embodiment of this invention provides Cheng Tu;
Fig. 4 is the realization stream for the accreditation information acquisition method based on business datum resource that yet another embodiment of the invention provides Cheng Tu;
Fig. 5 is the specific reality of the accreditation information acquisition method S103 provided in an embodiment of the present invention based on business datum resource Existing flow chart;
Fig. 6 is the structural block diagram of the accreditation information acquisition device provided in an embodiment of the present invention based on business datum resource;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the realization stream of the accreditation information acquisition method provided in an embodiment of the present invention based on business datum resource Journey, this method process include step S101 to S106.The specific implementation principle of each step is as follows:
S101: obtaining the business datum that is stored in the system of rendering an account, and by the synchronizing traffic data to creating in real time Interim table.
System of rendering an account is the management system that enterprise arrives used in operation process, including relevant to all kinds of financial datas Financial management system, accounting management system and settlement system etc..The business that business personnel is uploaded is received in the system of rendering an account It, will be in the book keeping operation report of business datum typing presetting database after data.Hereafter, every preset time interval, triggering about The accreditation event of business datum.
When accreditation event is triggered, an interim table is created in real time in above-mentioned database.Above-mentioned interim table only for Founder will delete the interim table as it can be seen that after all users and database instance that quote interim table disconnect.
In the embodiment of the present invention, the business datum in above-mentioned book keeping operation report is read out, and will be read every industry Business data are synchronized in the interim table currently created.Wherein, each row business datum in interim table is data record.
S102: by preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table.
Accreditation treatment process includes that format audit and the necessary accreditation information of addition are carried out to business datum, such as accreditation day Phase etc..The accreditation if any one data record has succeeded records addition accreditation mark in book keeping operation report for the data, And by by format audit data record and and obtained accreditation information updated in interim table together.
In the embodiment of the present invention, due to different business datums have the characteristics that it is different, for example, business datum is corresponding different Operation system, different render an account amount and different account types, therefore, to business datum carry out accreditation processing when, The code statement inputted according to developer can obtain the accreditation algorithm suitable for current service data.It is calculated according to the accreditation Method carries out accreditation processing to the business datum in interim table.
Preferably as another implementation example of the invention, model is handled by preset accreditation, is determined and the industry The accreditation algorithm for Data Matching of being engaged in, then based on the matched code statement of accreditation algorithm institute, to the industry in the interim table Data of being engaged in carry out accreditation processing.
The acquisition process of above-mentioned accreditation processing model includes: to obtain a plurality of sample data record collected in advance and obtain The corresponding characteristic information of each sample data record, for example, account type, non-accreditation reason identification code and its applicable system Demonstrate,prove algorithm etc.;Trained using these characteristic informations initialization shot and long term memory network (Long Short-Term Memory, The LSTM model is exported and handles model for accreditation by LSTM) model.Therefore, based on the LSTM model after the completion of training come to facing When table in after the business datum of accreditation is identified, can quickly and automatically determine that the accreditation that data record is applicable in is calculated Method, thus improve accreditation efficiency.
S103: if detecting accreditation miscue information in accreditation treatment process, judge the accreditation miscue Whether the suggestion content of information meets the trigger condition of rollback event.
In the embodiment of the present invention, since accreditation treatment process is realized based on code statement corresponding to accreditation algorithm, and Association specified parameter, function or file are generally required between each Codabar code sentence, therefore, when detecting about above-mentioned ginseng When the call error of number, function or file, in the operational process of code statement, it will generate accreditation miscue information. There is exhibition in accreditation miscue information shows error reason identification code and/or error-logging information.
In the embodiment of the present invention, to the error reason identification code and/or error log in above-mentioned accreditation miscue information Information is read out, to judge to read the trigger condition whether obtained miscue content meets rollback event.Wherein, rollback The trigger condition of event is determined based on the regular expression that developer is pre-entered.Above-mentioned regular expression is for indicating In the triggering of rollback event, the character met needed for error reason identification code is regular;Alternatively, for indicating to trigger in rollback event When, each keyword feature mark for including needed for error-logging information.
Illustratively, the trigger condition of above-mentioned rollback event for example can be " parameter error ".Therefore, when in accreditation mistake When detected in prompt information with " parameter error " matched suggestion content, triggering rollback event is determined.
S104: if the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, described In code statement corresponding to accreditation algorithm, the code statement of the last execution is determined.
It is more corresponding to the accreditation algorithm when any one accreditation miscue information of every generation in the embodiment of the present invention In Codabar code sentence, it is automatically positioned and identifies code statement associated by this accreditation miscue information.That is, to the last time Display is marked in performed code statement.
If it is determined that the suggestion content of accreditation miscue information meets the trigger condition of rollback event, then reads and work as prelocalization Code statement out.
S105: the state data memory of business datum described in the interim table is rolled back to the code statement and executes it Preceding corresponding state data memory, to compile to the code statement and in user to the business datum after rollback After collecting processing, return by preset accreditation algorithm described in executing, to the business datum progress accreditation in the interim table The operation of processing.
After executing each code statement, according to above-mentioned analysis it is found that being stored in the business number in interim table originally According to additional accreditation information will likely be added with, therefore, before executing each code statement, need first to trigger to interim table In business datum snapshot operation, to generate snapshot node.According to the creation time of snapshot node, determine in the creation The code statement executed for the last time before time, and the corresponding relationship of the code statement and snapshot node is stored.
According to the code statement that above-mentioned S104 is oriented, determine with the code away from corresponding snapshot node, and will work as Preceding book is rolled back to state data memory corresponding with the snapshot node.
In the embodiment of the present invention, the accreditation miscue information of suggestion content is carried by issuing, developer can be with Learn the real-time treatment effect of accreditation process, so as to judge whether to need to modify in time business datum in interim table or Person eliminates code vulnerabilities etc..After the edit instruction for receiving developer's input, returns and execute above-mentioned steps S102, it is again right Each business datum for not completing accreditation carries out accreditation processing.
S106: it if accreditation miscue information is not detected in accreditation treatment process, exports about the business number According to accreditation information.
By accreditation algorithm have to matched code statement it is a plurality of, thus executed the last item code statement it Afterwards, if not detecting accreditation miscue information again, then it represents that the accreditation operation about above-mentioned business datum has been fully completed, because This, accreditation information is exported.
In the embodiment of the present invention, by being executed by synchronizing traffic data to interim table, then to the business datum in interim table Accreditation processing, ensure that the business datum under the business datum and production environment that handle in real time can be mutually isolated, avoid because Accreditation malfunctions and leads to the problem of business datum causes confusion under production environment, to protect the integrality of data.The present invention In embodiment, based on the trigger condition of preset rollback event, the accreditation miscue information for meeting trigger condition is being detected When, realize the data rewind of automation;It is substantially due to occurring accreditation miscue information because performing most What a new Codabar code sentence just generated, therefore shape is stored by the way that business datum is rolled back to data corresponding to previous generation code sentence State, so that user after location code sentence problem or source data problem, can rapidly restore since the code statement Accreditation operation process, avoids the need for expending longer time again to re-execute identical code statement, this improves The acquisition efficiency of accreditation information.
As another embodiment of the invention, business datum resource is based on Fig. 2 shows provided in an embodiment of the present invention Accreditation information acquisition method implementation flow chart.As shown in Figure 2, above-mentioned steps S102 includes step S1021 and S1022; Above-mentioned steps S105 includes S1051.The specific implementation principle of each step is as follows:
S1021: a plurality of code statement corresponding with accreditation algorithm is obtained.
In the embodiment of the present invention, accreditation algorithm is used to execute the accreditation processing to business datum, and accreditation algorithm corresponds to more Codabar code sentence.Wherein, for the difficulty of simplified code maintenance, the submodule function that can be realized according to each code statement Can, one will be determined as realizing the N of identical submodule function (N is the integer greater than one, and N is preset value) Codabar code sentence A code module.
S1022: after code statement described in every execution N item, snapshot is carried out to the business datum in the interim table, is obtained Snapshot node;Wherein, the N is preset value.
When carrying out accreditation processing to the business datum in interim table, above-mentioned each code module is sequentially executed.For every One code module, if not detecting accreditation miscue information after its N for being included Codabar code sentence is performed, Snapshot then is carried out to the business datum in interim table, obtains the snapshot node of the state data memory for recording current time.
After the completion of the creation of each snapshot node, next code module of sequential is obtained, and return in execution State step S1022.
S1051: the state data memory of the business datum is rolled back to the last obtained snapshot node State.
During executing any code module, if detecting accreditation miscue information, and accreditation miscue is believed The suggestion content of breath meets the trigger condition of rollback event, then obtains the last snapshot node created, and by interim table The state data memory of middle business datum is rolled back to the state of the snapshot node.
Preferably, when executing any code module, if being not detected in preset duration about the code module Prompt information is completed in accreditation, then equally triggers rollback event, the state data memory of business datum is rolled back to the last time The state of obtained snapshot node.
It is worth noting that, the step in the step realization principle that do not mention in the embodiment of the present invention and above-described embodiment is real Existing principle is identical, therefore no longer repeats one by one.
It is fast by being carried out to the business datum in interim watch after every execution N Codabar code sentence in the embodiment of the present invention According to obtaining snapshot node, and in the triggering of rollback event, the state data memory of business datum was rolled back to obtained by the last time The state of the snapshot node arrived realizes the automatic rollback of data.It is matched with the code statement when due to code statement error Code module generally also has biggish association reason, thus by the way that the state data memory of business datum is rolled back to nearest one The state of secondary obtained snapshot node ensure that after the completion of rollback event, developer can position rapidly accreditation mistake Associated a plurality of code statement enables developer with entire code module for investigation object, and location code sentence is asked Topic or source data problem, thus also improve the resume speed of accreditation operation process.
As another embodiment of the invention, as shown in figure 3, in above-mentioned S105, described by institute in the interim table The state data memory for stating business datum is rolled back to after state data memory corresponding before the code statement executes, also Include:
S107: according to the generation time of the accreditation miscue information, acquisition is stored before the generation time All kinds of running logs.
When running code statement corresponding to accreditation algorithm, can be generated from the background for recording implementation procedure detail parameters Running log.According to the sequencing for generating the time, successively running log generated of each moment is stored to presupposed information In library.
In the embodiment of the present invention, when detecting that accreditation miscue information occurs, the system time at current time is obtained, And in above- mentioned information library, all kinds of running logs for generating the time before the system time are read.
Preferably, above-mentioned steps S102 is executed in each return, to the business datum starting accreditation processing behaviour in interim table When making, the starting time of accreditation event is recorded, then generates all kinds of operation days of the time before the system time in above-mentioned reading It, can also running log of the further screening generation time after the starting time after will.
S108: parsing the running log, and sequentially reads each method being present in the running log Name.
Before the execution of accreditation algorithm, is instructed according to the setting that developer issues, AspectJ plug-in unit is added to accreditation Each code module corresponding to algorithm.When any one Codabar code sentence in code module is performed, AspectJ plug-in unit will be examined Each method name included in the code statement is measured, and this method name is recorded in the running log generated in real time.Cause This, all kinds of running logs obtained to above-mentioned steps S107, by carrying out dissection process to it, readable taking-up is present in operation Each method name in log.
S109: according to the appearance order of each the method name, data flow node diagram is generated.
The sequencing that the time is generated according to running log, determines the appearance order of each method name.
In the embodiment of the present invention, data flow node diagram includes multiple flow nodes objects, each flow nodes object It is corresponding with said one method name;Also, in flow nodes object, the method name corresponding to it is identified.According to running log In each method name appearance order, sequentially connect flow nodes object corresponding to each method name, thus output counted According to flowing to node diagram.
S110: being shown the data flow node diagram, so that user is based on to the data flow node diagram Analysis, to after rollback the business datum and the code statement edit.
In the embodiment of the present invention, data flow node diagram is exported to display interface, so that user checks data flow After each flow nodes object in node diagram, each letter that this accreditation process flow is called intuitively is viewed Number, so as to quickly judge whether current data flow direction is correct.When data flow sequence is different from preset execution sequence When, if detecting, user instructs the selection that the flow nodes object issues, displaying and the associated code statement of its method name, And according to the edit instruction received, editing and processing is carried out to the code statement.
In the embodiment of the present invention, in the code statement as corresponding to accreditation algorithm, usually all there are miscellaneous Function, and when executing accreditation processing operation, system may select to conditionity to execute the partial function of its kind, and not necessarily All functions arranged in advance can be sequentially called, therefore, are included by obtaining all kinds of running logs, and based on running log Method name generates data flow node diagram, allows users to from data flow node diagram, intuitively finds out system institute Each Codabar code sentence actually executed, and then malfunction elimination operation is carried out based on these code statements, this improves failures Efficiency is checked, the accreditation treatment effeciency to business datum is thus also improved.
As yet another embodiment of the present invention, as shown in figure 4, after above-mentioned S106, further includes:
S111: in preset duration, if the accreditation validation of information instruction of user's input is received, according to the interim table Described in business datum state data memory, the business datum in system of rendering an account described in synchronized update.
After completing the accreditation operation to each business datum in interim table, it will add accreditation to this business datum Mark.Therefore, in the embodiment of the present invention, if detecting, each business datum in interim table carries accreditation mark, to Developer issues the prompt of accreditation validation of information, to prompt accreditation event of the user currently in interim table to be completed.
If receiving the accreditation validation of information that user issues accreditation validation of information prompt to instruct, according to current interim The state data memory of business datum in table, synchronized update are rendered an account the business datum in system, so that every business datum Accreditation information can be stored in the system of rendering an account, to maintain the consistent of business datum in the system of rendering an account and interim table Property.
In above-mentioned each embodiment, by the operation object of accreditation treatment process be in interim table it is pre-loaded Business datum, and only in the accreditation validation of information instruction for receiving user's input, it is just that the business datum after the completion of accreditation is same Step is updated to the system of rendering an account, therefore, before not receiving the instruction of accreditation validation of information, the business datum of real-time accreditation processing with The business datum for system of rendering an account under production environment is mutually isolated, thus avoid because accreditation error due to cause under production environment Thus the problem of business datum causes confusion appearance also protects the integrality of data.
As an embodiment of the present invention, Fig. 5 shows provided in an embodiment of the present invention based on business datum resource The specific implementation flow of accreditation information acquisition method S103, details are as follows:
S1031: multiple code modules corresponding with the accreditation algorithm are obtained, the code module includes a plurality of generation Code sentence.
S1032: when executing any code module, if accreditation miscue information is detected, in running log In record the accreditation miscue information, and the corresponding execution frequency of failure of the code module is added one.
In the embodiment of the present invention, as unit of the code module comprising a plurality of code statement, accreditation algorithm institute is successively executed Corresponding each code module, to carry out accreditation processing to business datum.
Specifically, during executing each code module, if detecting accreditation miscue information, then it represents that the generation Code module executes failure, therefore, in order to record the failure cause that this secondary module executes operation, by accreditation miscue data input In the running log in presupposed information library.
In the embodiment of the present invention, when detecting accreditation miscue information, mistake will be executed corresponding to the code module It loses number and adds one.
S1033: it if the execution frequency of failure is less than or equal to preset threshold, returns and executes the code module.
S1034: if the execution frequency of failure is greater than preset threshold, it is determined that the prompt of the accreditation miscue information Content meets the trigger condition of rollback event.
For code module performed by current time, judge whether the execution frequency of failure corresponding to the code module is big In preset threshold.If the execution frequency of failure corresponding to the code module is less than or equal to preset threshold, then it is assumed that current time Code module processing may be caused abnormal because of the accidental phoneme such as process task obstruction, therefore, return to and execute the code mould Block.
If no longer detecting accreditation miscue information, then by the code after returning to the identical code module of execution The execution frequency of failure corresponding to module is set to null value.Only when detecting that executing the frequency of failure is null value, execution is arranged in this Next code module after code module.
In the embodiment of the present invention, if the execution frequency of failure corresponding to code module is greater than preset threshold, then it is assumed that current Moment has that code statement exception or source data are abnormal, even if re-executing code module is also to be unable to complete successfully system Operation process is demonstrate,proved, accordingly, it is determined that triggering rollback event, and after executing above-mentioned steps S104 to S105, rapidly restore Accreditation operation process.
In the embodiment of the present invention, when detecting accreditation miscue information, by executing mistake for code module is corresponding It loses number and adds one, and be less than or equal to preset threshold executing the frequency of failure, return and execute the code module, ensure that based on even Right factor and the case where cause code module to execute failure under, system can continue to execute accreditation event, without touching at once The rollback of data is sent out, thus reduces the number of interventional procedure needed for developer to a certain extent, to improve accreditation The degree of automation of system.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to, based on the accreditation information acquisition method of business datum resource, Fig. 6 is shown provided by the embodiment of the present invention The structural block diagram of accreditation information acquisition device provided in an embodiment of the present invention based on business datum resource.For the ease of saying Bright, only the parts related to this embodiment are shown.
Referring to Fig. 6, which includes:
First acquisition unit 61, for obtaining the business datum being stored in the system of rendering an account, and the business datum is same It walks to the interim table created in real time.
Accreditation unit 62 is used for by preset accreditation algorithm, to the business datum system in the interim table Card processing.
Judging unit 63, if judging the system for detecting accreditation miscue information in accreditation treatment process Whether the suggestion content of card miscue information meets the trigger condition of rollback event.
Determination unit 64, if the suggestion content for the accreditation miscue information meets the triggering item of rollback event Part then in the code statement corresponding to the accreditation algorithm, determines the code statement of the last execution.
Rollback unit 65, for the state data memory of business datum described in the interim table to be rolled back to the code Sentence state data memory corresponding before executing, in user to the code statement and to the business after rollback After data carry out editing and processing, return described in executing by preset accreditation algorithm, to the business number in the interim table According to the operation for carrying out accreditation processing.
Output unit 66, if for being not detected accreditation miscue information in accreditation treatment process, output about The accreditation information of the business datum.
Optionally, the accreditation unit 62 includes:
First obtains subelement, for obtaining a plurality of code statement corresponding with accreditation algorithm.
Snapshot subelement carries out the business datum in the interim table after code statement described in every execution N item Snapshot obtains snapshot node;Wherein, the N is preset value.
The rollback unit 65 includes:
Rollback subelement, it is the last obtained described for the state data memory of the business datum to be rolled back to The state of snapshot node.
Optionally, the acquisition device of the accreditation information further include:
Second acquisition unit is obtained for the generation time according to the accreditation miscue information in the generation Between before all kinds of running logs that are stored.
Reading unit for parsing to the running log, and sequentially reads and is present in the running log Each method name.
Generation unit generates data flow node diagram for the appearance order according to each the method name.
Display unit, for being shown to the data flow node diagram, so that user is based on to the data flow The analysis of node diagram, to after rollback the business datum and the code statement edit.
Optionally, the judging unit 63 includes:
Second obtains subelement, for obtaining multiple code modules corresponding with the accreditation algorithm, the code module Including a plurality of code statement.
Subelement is recorded, is used for when executing any code module, if detecting accreditation miscue information, The accreditation miscue information is recorded in running log, and the corresponding execution frequency of failure of the code module is added one.
Subelement is returned, if being less than or equal to preset threshold for the execution frequency of failure, returns and executes the code Module.
Subelement is determined, if being greater than preset threshold for the execution frequency of failure, it is determined that the accreditation miscue The suggestion content of information meets the trigger condition of rollback event.
Optionally, the acquisition device of the accreditation information further include:
Synchronization unit, for being instructed if receiving the accreditation validation of information that user inputs, according to institute in preset duration State the state data memory of business datum described in interim table, the business datum in system of rendering an account described in synchronized update.
In the embodiment of the present invention, by being executed by synchronizing traffic data to interim table, then to the business datum in interim table Accreditation processing, ensure that the business datum under the business datum and production environment that handle in real time can be mutually isolated, avoid because Accreditation malfunctions and leads to the problem of business datum causes confusion under production environment, to protect the integrality of data.The present invention In embodiment, based on the trigger condition of preset rollback event, the accreditation miscue information for meeting trigger condition is being detected When, realize the data rewind of automation;It is substantially due to occurring accreditation miscue information because performing most What a new Codabar code sentence just generated, therefore shape is stored by the way that business datum is rolled back to data corresponding to previous generation code sentence State, so that user after location code sentence problem or source data problem, can rapidly restore since the code statement Accreditation operation process, avoids the need for expending longer time again to re-execute identical code statement, this improves The acquisition efficiency of accreditation information.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set Standby 7 include: processor 70 and memory 71, and the calculating that can be run on the processor 70 is stored in the memory 71 Machine program 72, such as the accreditation information acquiring program based on business datum resource.The processor 70 executes the computer journey The step in above-mentioned each accreditation information acquisition method embodiment based on business datum resource, such as Fig. 1 institute are realized when sequence 72 The step 101 shown is to 106.Alternatively, the processor 70 realizes above-mentioned each Installation practice when executing the computer program 72 In each module/unit function, such as the function of unit 61 to 66 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of accreditation information acquisition method based on business datum resource, which is characterized in that including
Obtain the business datum that is stored in the system of rendering an account, and by the synchronizing traffic data to the interim table created in real time;
By preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table;
If detecting accreditation miscue information in accreditation treatment process, the prompt of the accreditation miscue information is judged Whether content meets the trigger condition of rollback event;
If the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, in the accreditation algorithm institute In corresponding code statement, the code statement of the last execution is determined;
The state data memory of business datum described in the interim table is rolled back to corresponding before the code statement executes State data memory, with user to the code statement and to after rollback the business datum carry out editing and processing Afterwards, it returns by preset accreditation algorithm described in executing, accreditation processing is carried out to the business datum in the interim table Operation;
If accreditation miscue information is not detected in accreditation treatment process, exports and believe about the accreditation of the business datum Breath.
2. accreditation information acquisition method as described in claim 1, which is characterized in that it is described by preset accreditation algorithm, it is right The business datum in the interim table carries out accreditation processing, comprising:
Obtain a plurality of code statement corresponding with accreditation algorithm;
After code statement described in every execution N item, snapshot is carried out to the business datum in the interim table, obtains snapshot node; Wherein, the N is preset value;
The state data memory by business datum described in the interim table is rolled back to institute before the code statement executes Corresponding state data memory, comprising:
The state data memory of the business datum is rolled back to the state of the last obtained snapshot node.
3. accreditation information acquisition method as described in claim 1, which is characterized in that described by industry described in the interim table The state data memory of business data is rolled back to after state data memory corresponding before the code statement executes, and is also wrapped It includes:
According to the generation time of the accreditation miscue information, all kinds of operations stored before the generation time are obtained Log;
The running log is parsed, and sequentially reads each method name being present in the running log;
According to the appearance order of each the method name, data flow node diagram is generated;
The data flow node diagram is shown, so that user is based on the analysis to the data flow node diagram, to returning The business datum and the code statement after rolling are edited.
4. accreditation information acquisition method as claimed in claim 2, which is characterized in that if described detect in accreditation treatment process To accreditation miscue information, then judge whether the suggestion content of the accreditation miscue information meets the triggering of rollback event Condition, comprising:
Multiple code modules corresponding with the accreditation algorithm are obtained, the code module includes a plurality of code statement;
When executing any code module, if detecting accreditation miscue information, in running log described in record Accreditation miscue information, and the corresponding execution frequency of failure of the code module is added one;
If the execution frequency of failure is less than or equal to preset threshold, returns and execute the code module;
If the execution frequency of failure is greater than preset threshold, it is determined that the suggestion content of the accreditation miscue information meets back The trigger condition of rolling event.
5. accreditation information acquisition method as described in claim 1, which is characterized in that if it is described in accreditation treatment process not Detect accreditation miscue information, then after output is about the accreditation information of the business datum, further includes:
In preset duration, if the accreditation validation of information instruction of user's input is received, according to industry described in the interim table The state data memory for data of being engaged in, the business datum in system of rendering an account described in synchronized update.
6. a kind of terminal device, including memory and processor, the memory, which is stored with, to be run on the processor Computer program, which is characterized in that the processor realizes following steps when executing the computer program:
Obtain the business datum that is stored in the system of rendering an account, and by the synchronizing traffic data to the interim table created in real time;
By preset accreditation algorithm, accreditation processing is carried out to the business datum in the interim table;
If detecting accreditation miscue information in accreditation treatment process, the prompt of the accreditation miscue information is judged Whether content meets the trigger condition of rollback event;
If the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, in the accreditation algorithm institute In corresponding code statement, the code statement of the last execution is determined;
The state data memory of business datum described in the interim table is rolled back to corresponding before the code statement executes State data memory, with user to the code statement and to after rollback the business datum carry out editing and processing Afterwards, it returns by preset accreditation algorithm described in executing, accreditation processing is carried out to the business datum in the interim table Operation;
If accreditation miscue information is not detected in accreditation treatment process, exports and believe about the accreditation of the business datum Breath.
7. terminal device as claimed in claim 6, which is characterized in that it is described by preset accreditation algorithm, to described interim The business datum in table carries out accreditation processing, comprising:
Obtain a plurality of code statement corresponding with accreditation algorithm;
After code statement described in every execution N item, snapshot is carried out to the business datum in the interim table, obtains snapshot node; Wherein, the N is preset value;
The state data memory by business datum described in the interim table is rolled back to institute before the code statement executes Corresponding state data memory, comprising:
The state data memory of the business datum is rolled back to the state of the last obtained snapshot node.
8. terminal device as claimed in claim 7, which is characterized in that the processor goes back reality when executing the computer program Existing following steps:
According to the generation time of the accreditation miscue information, all kinds of operations stored before the generation time are obtained Log;
The running log is parsed, and sequentially reads each method name being present in the running log;
According to the appearance order of each the method name, data flow node diagram is generated;
The data flow node diagram is shown, so that user is based on the analysis to the data flow node diagram, to returning The business datum and the code statement after rolling are edited.
9. terminal device as claimed in claim 6, which is characterized in that if described detect accreditation mistake in accreditation treatment process Accidentally prompt information, then judge whether the suggestion content of the accreditation miscue information meets the trigger condition of rollback event, wraps It includes:
Multiple code modules corresponding with the accreditation algorithm are obtained, the code module includes a plurality of code statement;
When executing any code module, if detecting accreditation miscue information, in running log described in record Accreditation miscue information, and the corresponding execution frequency of failure of the code module is added one;
If the execution frequency of failure is less than or equal to preset threshold, returns and execute the code module;
If the execution frequency of failure is greater than preset threshold, it is determined that the suggestion content of the accreditation miscue information meets back The trigger condition of rolling event.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201810933461.2A 2018-08-16 2018-08-16 Certificate making information acquisition method based on service data resources, terminal equipment and medium Active CN109284331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810933461.2A CN109284331B (en) 2018-08-16 2018-08-16 Certificate making information acquisition method based on service data resources, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810933461.2A CN109284331B (en) 2018-08-16 2018-08-16 Certificate making information acquisition method based on service data resources, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN109284331A true CN109284331A (en) 2019-01-29
CN109284331B CN109284331B (en) 2024-04-02

Family

ID=65183603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810933461.2A Active CN109284331B (en) 2018-08-16 2018-08-16 Certificate making information acquisition method based on service data resources, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN109284331B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532807A (en) * 2019-07-30 2019-12-03 平安科技(深圳)有限公司 Electronic voucher generation method, device, computer equipment and storage medium
CN111865686A (en) * 2020-07-20 2020-10-30 北京百度网讯科技有限公司 Cloud product capacity expansion method, device, equipment and storage medium
CN114676190A (en) * 2022-05-27 2022-06-28 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436207A (en) * 2008-12-16 2009-05-20 浪潮通信信息系统有限公司 Data restoring and synchronizing method based on log snapshot
CN103489061A (en) * 2013-09-04 2014-01-01 用友软件股份有限公司 Batch data processing device and batch data processing method
US20140250290A1 (en) * 2013-03-01 2014-09-04 St-Ericsson Sa Method for Software Anti-Rollback Recovery
CN106598703A (en) * 2016-12-08 2017-04-26 用友网络科技股份有限公司 Transaction compensation method and device for integrated system
CN106682140A (en) * 2016-12-20 2017-05-17 华北计算技术研究所(中国电子科技集团公司第十五研究所) Multi-system user incremental synchronization method based on timestamps and mapping strategies
CN106897123A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 Database operation method and device
CN107209705A (en) * 2014-12-01 2017-09-26 茨特里克斯系统公司 Activity rollback for computing environment
CN108074176A (en) * 2016-11-15 2018-05-25 平安科技(深圳)有限公司 One kind carries voucher generation method and device in advance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436207A (en) * 2008-12-16 2009-05-20 浪潮通信信息系统有限公司 Data restoring and synchronizing method based on log snapshot
US20140250290A1 (en) * 2013-03-01 2014-09-04 St-Ericsson Sa Method for Software Anti-Rollback Recovery
CN103489061A (en) * 2013-09-04 2014-01-01 用友软件股份有限公司 Batch data processing device and batch data processing method
CN107209705A (en) * 2014-12-01 2017-09-26 茨特里克斯系统公司 Activity rollback for computing environment
CN106897123A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 Database operation method and device
CN108074176A (en) * 2016-11-15 2018-05-25 平安科技(深圳)有限公司 One kind carries voucher generation method and device in advance
CN106598703A (en) * 2016-12-08 2017-04-26 用友网络科技股份有限公司 Transaction compensation method and device for integrated system
CN106682140A (en) * 2016-12-20 2017-05-17 华北计算技术研究所(中国电子科技集团公司第十五研究所) Multi-system user incremental synchronization method based on timestamps and mapping strategies

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532807A (en) * 2019-07-30 2019-12-03 平安科技(深圳)有限公司 Electronic voucher generation method, device, computer equipment and storage medium
WO2021017310A1 (en) * 2019-07-30 2021-02-04 平安科技(深圳)有限公司 Electronic voucher generation method and apparatus, computer device, and storage medium
CN110532807B (en) * 2019-07-30 2024-03-08 平安科技(深圳)有限公司 Electronic certificate generation method, device, computer equipment and storage medium
CN111865686A (en) * 2020-07-20 2020-10-30 北京百度网讯科技有限公司 Cloud product capacity expansion method, device, equipment and storage medium
CN114676190A (en) * 2022-05-27 2022-06-28 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium
CN114676190B (en) * 2022-05-27 2022-10-11 太平金融科技服务(上海)有限公司深圳分公司 Data display method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109284331B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US10061578B2 (en) System and method of configuring a data store for tracking and auditing real-time events across different software development tools in agile development environments
US11163731B1 (en) Autobuild log anomaly detection methods and systems
CN110245035A (en) A kind of link trace method and device
CN109471890A (en) Generation method, terminal device and the medium of report file
EP3465442B1 (en) Executable logic for processing keyed data in networks
US20080065400A1 (en) System and Method for Producing Audit Trails
CN106656536A (en) Method and device for processing service invocation information
CN106293891B (en) Multidimensional investment index monitoring method
CN110166290A (en) Alarm method and device based on journal file
CN109284331A (en) Accreditation information acquisition method, terminal device and medium based on business datum resource
CN111400011B (en) Real-time task scheduling method, system, equipment and readable storage medium
US20200089594A1 (en) Artificial intelligence for load testing
CN108768790A (en) Distributed search cluster monitoring method and device, computing device, storage medium
CN111124917A (en) Public test case management and control method, device, equipment and storage medium
CN108427709B (en) Multi-source mass data processing system and method
CN114416703A (en) Method, device, equipment and medium for automatically monitoring data integrity
CN114385437A (en) Data quality analysis system and method
CN110941632A (en) Database auditing method, device and equipment
CN111984882A (en) Data processing method, system and equipment
CN104994220B (en) A kind of data processing method and system
Omori et al. Comparing concept drift detection with process mining tools
CN116185853A (en) Code verification method and device
CN110347572A (en) A kind of performance logs output method, device, system, equipment and medium
Vetter Detecting operator errors in cloud maintenance operations
CN111523921B (en) Funnel analysis method, analysis device, electronic device, and readable storage medium

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
GR01 Patent grant
GR01 Patent grant