Invention content
In view of this, an embodiment of the present invention provides a kind of method for processing report data, device and terminal, it is existing to solve
The system response time of report data inquiry is slow, the long problem of period of reservation of number.
The first aspect of the embodiment of the present invention provides a kind of method for processing report data, including:
Whether detection report generation interface is triggered;
When the report generation interface is triggered, the corresponding business datum of the report generation interface is obtained;
Corresponding report data is generated according to the business datum.
Preferably, the step of whether the detection report generation interface is triggered, including:
Detect whether current business node is key business node;
When it is key business node to detect current business node, report generation interface is triggered.
Preferably, the step of whether the detection report generation interface is triggered, including:
It is synchronous to detect whether multiple report generation interfaces are triggered.
Preferably, whether the synchronous multiple report generation interfaces of detection are triggered, including:
Detect whether each service node is key business node every preset time;
Triggering is the report generation interface corresponding to each service node of key business node.
Preferably, after described the step of obtaining the report generation interface corresponding business datum, further include:
The business datum is stored to data buffer zone;
The business datum in the data buffer zone is calculated every preset time, generates corresponding report data.
Preferably, after described the step of generating corresponding report data according to the business datum, further include:
Class indication is carried out to the report data and is stored.
Preferably, after described the step of generating corresponding report data according to the business datum, further include:
The report data is encrypted according to predetermined encryption mode.
The second aspect of the embodiment of the present invention provides a kind of report data processing unit, including:
Interface detection trigger unit, for detecting whether report generation interface is triggered;
Business datum acquiring unit, for when the report generation interface is triggered, obtaining the report generation interface
Corresponding business datum;
Report generation unit, for generating corresponding report data according to the business datum.
Preferably, the interface detection trigger unit, including:
First key business nodal test subelement, for detecting whether current business node is key business node;
First interface triggers subelement, for when it is key business node to detect current business node, triggering report
Generate interface.
Preferably, the interface detection trigger unit further includes:
Synchronous detection trigger subelement detects whether multiple report generation interfaces are triggered for synchronous.
Preferably, the synchronous detection trigger subelement, including:
Second key business nodal test subelement, for detecting whether each service node is crucial every preset time
Service node;
Second interface triggers subelement, for triggering the report life corresponding to each service node for key business node
At interface.
Preferably, described device further includes:
Business datum storage unit, for storing the business datum to data buffer zone;
Business datum computing unit, based on being carried out to the business datum in the data buffer zone every preset time
It calculates, generates corresponding report data.
Preferably, described device further includes:
Class indication unit, for carrying out class indication to the report data and storing.
Preferably, described device further includes:
Encryption unit, for the report data to be encrypted according to predetermined encryption mode.
The third aspect of the embodiment of the present invention provides a kind of terminal, including:
Memory, processor and it is stored in the computer journey that can be run in the memory and on the processor
Sequence, wherein the processor realizes the report number that the first aspect of the embodiment of the present invention provides when executing the computer program
The step of according to processing method.
Wherein, the computer program includes:
Interface detection trigger unit, for detecting whether report generation interface is triggered;
Business datum acquiring unit, for when the report generation interface is triggered, obtaining the report generation interface
Corresponding business datum;
Report generation unit, for generating corresponding report data according to the business datum.
Preferably, the interface detection trigger unit, including:
First key business nodal test subelement, for detecting whether current business node is key business node;
First interface triggers subelement, for when it is key business node to detect current business node, triggering report
Generate interface.
Preferably, the interface detection trigger unit further includes:
Synchronous detection trigger subelement detects whether multiple report generation interfaces are triggered for synchronous.
Preferably, the synchronous detection trigger subelement, including:
Second key business nodal test subelement, for detecting whether each service node is crucial every preset time
Service node;
Second interface triggers subelement, for triggering the report life corresponding to each service node for key business node
At interface.
Preferably, the computer program further includes:
Business datum storage unit, for storing the business datum to data buffer zone;
Business datum computing unit, based on being carried out to the business datum in the data buffer zone every preset time
It calculates, generates corresponding report data.
Preferably, the computer program further includes:
Class indication unit, for carrying out class indication to the report data and storing.
Preferably, the computer program further includes:
Encryption unit, for the report data to be encrypted according to predetermined encryption mode.
The fourth 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, wherein the first of the embodiment of the present invention is realized when the computer program is executed by processor
The step of method for processing report data that aspect provides.
Wherein, the computer program includes:
Interface detection trigger unit, for detecting whether report generation interface is triggered;
Business datum acquiring unit, for when the report generation interface is triggered, obtaining the report generation interface
Corresponding business datum;
Report generation unit, for generating corresponding report data according to the business datum.
Preferably, the interface detection trigger unit, including:
First key business nodal test subelement, for detecting whether current business node is key business node;
First interface triggers subelement, for when it is key business node to detect current business node, triggering report
Generate interface.
Preferably, the interface detection trigger unit further includes:
Synchronous detection trigger subelement detects whether multiple report generation interfaces are triggered for synchronous.
Preferably, the synchronous detection trigger subelement, including:
Second key business nodal test subelement, for detecting whether each service node is crucial every preset time
Service node;
Second interface triggers subelement, for triggering the report life corresponding to each service node for key business node
At interface.
Preferably, the computer program further includes:
Business datum storage unit, for storing the business datum to data buffer zone;
Business datum computing unit, based on being carried out to the business datum in the data buffer zone every preset time
It calculates, generates corresponding report data.
Preferably, the computer program further includes:
Class indication unit, for carrying out class indication to the report data and storing.
Preferably, the computer program further includes:
Encryption unit, for the report data to be encrypted according to predetermined encryption mode.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention passes through in detection report
When generation interface is triggered, the corresponding business datum of report generation interface is obtained, and corresponding according to business datum generation
Report data so that report data is handled after capable of being directly acquired from report generation interface system background is asynchronous, will not
The execution of influence business main flow improves the response efficiency and report query efficiency of system, when reducing the waiting of user
It is long so that user experience is more preferable.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
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 can also be realized in the other embodiments of details.In other situations, it omits to well-known system, system, 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, illustrated below by specific embodiment.Referring to FIG. 1,
Fig. 1 shows a kind of implementation process of method for processing report data provided in an embodiment of the present invention, and details are as follows:
In step S101, whether detection report generation interface is triggered.
In embodiments of the present invention, report generation interface is the interface independently of business main flow processing unit, in not shadow
Under the progress of the business of sound main flow processing, asynchronous execution report generation function.Pass through the business in business main flow processing procedure
Node removes triggering report generation interface, and corresponding report is generated in order to user in the case where not influencing the progress of business main flow
It is inquired, improves the response efficiency of system so that user experience is more preferable.
Herein, whether detection report generation interface is triggered, including but not limited to by detecting whether to receive user
The report query of input instructs to determine whether report generation interface is triggered, or by detecting the business in business main flow
Whether node is key business node to determine whether report generation interface is triggered.
Preferably, whether it is triggered an embodiment of the present invention provides a kind of detection report generation interface as shown in Figure 2
The realization step of method, it is specific as follows:
In step s 201, whether detection current business node is key business node.
In embodiments of the present invention, key business node is that can generate report data simultaneously in business main flow processing procedure
The complete service node of report data is kept, for example, specific a certain personal one day consumption bill or consumption details, a certain individual
One month credit card should go back bill etc..
Whether specifically, in embodiments of the present invention, it is key business node to provide a kind of detection current business node
Concrete operation step, including:
Step S2011 obtains the keyword of current business node;
Step S2012 matches the keyword with the keyword in presetting database;
Step S2013 judges the current business section when the keyword match in the keyword and presetting database
Point is key business node;
Step S2014 judges the current business when the keyword in the keyword and presetting database mismatches
Node is not key business node.
In step S202, when it is key business node to detect current business node, report generation interface is triggered.
In embodiments of the present invention, when it is key business node to confirm current business node, report generation interface is triggered
Corresponding business datum is obtained in the asynchronous establishment report of system background.
Preferably, the step of whether the detection report generation interface is triggered, including:
It is synchronous to detect whether multiple report generation interfaces are triggered.
In embodiments of the present invention, corresponding there are when multiple key business nodes during business main flow carries out
Multiple report generation interfaces are had to be triggered.It is herein, synchronous to detect whether multiple report generation interfaces are triggered, it is possible to understand that
During business main flow carries out, to determine and whether there is key business node in the multiple service nodes currently carried out,
Determine whether that multiple report generation interfaces are triggered.
Preferably, in embodiments of the present invention, a kind of synchronous multiple report generation interfaces of detection as shown in Figure 3 are provided
The concrete operation step whether being triggered, including:
In step S301, detect whether each service node is key business node every preset time.
In step s 302, the report generation interface corresponding to each service node for key business node is triggered.
In embodiments of the present invention, business main flow can have multiple key business nodes in processing procedure, these passes
The not necessarily synchronous progress of key service node, and some key business nodes are to be mutually related, in order to further carry
The working efficiency of high system, setting detect whether each service node in business main flow is crucial industry again every preset time
Business node, then the corresponding report generation interface of unified these key business nodes of triggering mitigate system work to reduce trigger action
Make load so that system performance is more preferable, working efficiency higher.
It is understood that the setting of preset time can also be that systemic presupposition is set by user's sets itself.
In step s 102, when the report generation interface is triggered, the corresponding industry of the report generation interface is obtained
Business data.
In embodiments of the present invention, when detecting that report generation interface is triggered, report generation interface correspondence is obtained
Business datum.Herein, the corresponding business datum of report generation interface includes but is not limited to be triggered from report generation interface
The business datum that starts of timing node, or with the business associated with report generation interface that is determined according to business keyword
Data.
Preferably, after described the step of obtaining the report generation interface corresponding business datum, additionally provide as
A kind of realization step generating report data shown in Fig. 4, it is specific as follows:
In step S401, the business datum is stored to data buffer zone.
In embodiments of the present invention, in order to further increase the response efficiency of system, report generation interface pair is being got
After the business datum answered, first calculation processing is not carried out to these business datums, but these business datums are stored to data and are delayed
Rush area, in order to be able to which centralized calculation reduces the calculating time of system, improves system response efficiency.
It is understood that data buffer zone is used to store the derived business datum from report generation interface, in order to
These business datums can be called to be focused at any time, for example, going out report according to the disposable centralized calculation of these business datums
Table reduces the calculation amount of business datum as a result, to obtain corresponding report data, improves the working efficiency of system.
In step S402, the business datum in the data buffer zone is calculated every preset time, generation pair
The report data answered.
In embodiments of the present invention, in order to avoid the business datum amount in data buffer zone is excessive and causes to calculate slowly,
The problem of responding not in time is generated corresponding by being calculated the business datum in data buffer zone every preset time
After report data, then the business datum in buffering area that clears data, the working efficiency and response efficiency of system can be improved.
It is understood that understanding that the business datum in data buffer zone has specially carried out the business after calculation processing
Data, to ensure the accuracy of provided report data.
In step s 103, corresponding report data is generated according to the business datum.
In embodiments of the present invention, it is specially according to the step of business datum generation corresponding report data:
Corresponding report is calculated the business datum and created, report data is generated.
It is understood that obtaining the data for meeting statement form after calculating business datum, which is pressed
It inputs to preset in statement form according to preset rules and forms corresponding report, to obtain a or more parts of complete reports, this
A little reports constitute report data.
Preferably, further include following after described the step of generating corresponding report data according to the business datum
Step:
Class indication is carried out to the report data and is stored.
In embodiments of the present invention, report is quickly inquired for convenience, improves the efficiency of report query, is generating report
After data, class indication is being carried out to these report datas, in order to be able to rapidly inquire corresponding report, reduce user
Inquire the time used in report so that user experience is more preferable.Meanwhile the report data that these have been identified respectively is stored in report
In table database, enabling directly acquire report data, it is no longer necessary to after calculating the corresponding report of business datum generation in real time
Corresponding report can be just inquired, the stand-by period of report query is reduced, improves the response speed of system.
Preferably, further include following after described the step of generating corresponding report data according to the business datum
Step:
The report data is encrypted according to predetermined encryption mode.
In embodiments of the present invention, in order to improve the safety of report data, after generating report data, add according to default
These report datas are encrypted in close mode, to avoid leaking data, improve Information Security.
In embodiments of the present invention, by when detection report generation interface is triggered, obtaining the report generation interface pair
The business datum answered, and corresponding report data is generated according to the business datum so that report data can connect from report generation
Mouth is handled after directly acquiring system background is asynchronous, is not interfered with the execution of business main flow, is improved the response of system
Efficiency and report query efficiency, reduce the waiting time of user so that user experience is more preferable.
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 a kind of method for processing report data described in foregoing embodiments, Fig. 5 shows that the embodiment of the present invention provides
The schematic diagram of report data processing unit a kind of illustrate only and the relevant part of the embodiment of the present invention for convenience of description.
With reference to Fig. 5, which includes:
Interface detection trigger unit 51, for detecting whether report generation interface is triggered;
Business datum acquiring unit 52, for when the report generation interface is triggered, obtaining the report generation and connecing
The corresponding business datum of mouth;
Report generation unit 53, for generating corresponding report data according to the business datum.
Preferably, the interface detection trigger unit 51, including:
First key business nodal test subelement, for detecting whether current business node is key business node;
First interface triggers subelement, for when it is key business node to detect current business node, triggering report
Generate interface.
Preferably, the interface detection trigger unit 51 further includes:
Synchronous detection trigger subelement detects whether multiple report generation interfaces are triggered for synchronous.
Specifically, the synchronous detection trigger subelement, including:
Second key business nodal test subelement, for detecting whether each service node is crucial every preset time
Service node;
Second interface triggers subelement, for triggering the report life corresponding to each service node for key business node
At interface.
Preferably, described device further includes:
Business datum storage unit, for storing the business datum to data buffer zone;
Business datum computing unit, based on being carried out to the business datum in the data buffer zone every preset time
It calculates, generates corresponding report data.
Preferably, described device further includes:
Class indication unit, for carrying out class indication to the report data and storing.
Preferably, described device further includes:
Encryption unit, for the report data to be encrypted according to predetermined encryption mode.
In embodiments of the present invention, it is obtained by report data processing unit when detection report generation interface is triggered
The corresponding business datum of report generation interface, and corresponding report data is generated according to the business datum so that report data
It is handled after capable of being directly acquired from report generation interface system background is asynchronous, is not interfered with the execution of business main flow,
The response efficiency and report query efficiency for improving system, reduce the waiting time of user so that user experience is more preferable.
Fig. 6 is a kind of schematic diagram for terminal that one embodiment of the invention provides.As shown in fig. 6, the terminal 6 of the embodiment is wrapped
It includes:Processor 60, memory 61 and it is stored in the computer that can be run in the memory 61 and on the processor 60
Program 62.The processor 60 is realized when executing the computer program 62 in above-mentioned each method for processing report data embodiment
The step of, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 60 is realized when executing the computer program 62
The function of each unit in above-mentioned each system embodiment, for example, module 51 to 53 shown in Fig. 5 function.
Illustratively, the computer program 62 can be divided into one or more units, one or more of
Unit is stored in the memory 61, and is executed by the processor 60, to complete the present invention.One or more of lists
Member can complete the series of computation machine program instruction section of specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 62 in the terminal 6.For example, the computer program 62 can be divided into interface detection trigger unit
51, business datum acquiring unit 52, report generation unit 53, each unit concrete function are as follows:
Interface detection trigger unit 51, for detecting whether report generation interface is triggered;
Business datum acquiring unit 52, for when the report generation interface is triggered, obtaining the report generation and connecing
The corresponding business datum of mouth;
Report generation unit 53, for generating corresponding report data according to the business datum.
Preferably, the interface detection trigger unit 51 in the computer program 62 can also be divided into the first crucial industry
Business nodal test subelement, first interface trigger subelement, and each unit function is as follows:
First key business nodal test subelement, for detecting whether current business node is key business node;
First interface triggers subelement, for when it is key business node to detect current business node, triggering report
Generate interface.
Preferably, the interface detection trigger unit 51 in the computer program 62 can also be divided into synchronous triggering inspection
Subelement is surveyed, the Elementary Function is as follows:
Synchronous detection trigger subelement detects whether multiple report generation interfaces are triggered for synchronous.
Preferably, the synchronization detection trigger subelement in the computer program 62 can also be divided into the second crucial industry
Nodal test subelement, the second interface of being engaged in trigger subelement, and each unit function is as follows:
Second key business nodal test subelement, for detecting whether each service node is crucial every preset time
Service node;
Second interface triggers subelement, for triggering the report life corresponding to each service node for key business node
At interface.
Preferably, the computer program 62 can also be divided into business datum storage unit, business datum calculates list
Member, each unit function are as follows:
Business datum storage unit, for storing the business datum to data buffer zone;
Business datum computing unit, based on being carried out to the business datum in the data buffer zone every preset time
It calculates, generates corresponding report data.
Preferably, the computer program 62 can also be divided into class indication unit, and the Elementary Function is as follows:
Class indication unit, for carrying out class indication to the report data and storing.
Preferably, the computer program 62 can also be divided into encryption unit, and the Elementary Function is as follows:
Encryption unit, for the report data to be encrypted according to predetermined encryption mode.
The terminal 6 can be the terminal devices such as desktop PC, notebook, palm PC and smart mobile phone.It is described
Terminal 6 may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 is only terminal
6 example, the not restriction of structure paired terminal 6 may include than illustrating more or fewer components, or the certain portions of combination
Part or different components, such as the terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-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 can also be any conventional processor
Deng.
The memory 61 can be the internal storage unit of the terminal 6, such as the hard disk or memory of terminal 6.It is described
Memory 61 can also be the plug-in type hard disk being equipped on the External memory equipment of the terminal 6, such as the terminal 6, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, the memory 61 can also both include the internal storage unit of the terminal 6 or be set including external storage
It is standby.The memory 61 is used to store other programs and data needed for the computer program and the terminal.It is described to deposit
Reservoir 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the system are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system/terminal device and method, it can be with
It realizes by another way.For example, system described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, system
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or system, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.