CN110147539A - Generate method and device, the storage medium, electronic device of earning report - Google Patents

Generate method and device, the storage medium, electronic device of earning report Download PDF

Info

Publication number
CN110147539A
CN110147539A CN201910271676.7A CN201910271676A CN110147539A CN 110147539 A CN110147539 A CN 110147539A CN 201910271676 A CN201910271676 A CN 201910271676A CN 110147539 A CN110147539 A CN 110147539A
Authority
CN
China
Prior art keywords
performance effect
effect data
data
time
report
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
CN201910271676.7A
Other languages
Chinese (zh)
Other versions
CN110147539B (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.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201910271676.7A priority Critical patent/CN110147539B/en
Publication of CN110147539A publication Critical patent/CN110147539A/en
Application granted granted Critical
Publication of CN110147539B publication Critical patent/CN110147539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and devices for generating earning report, storage medium, electronic device, wherein this method comprises: whether reaching preset time using message pulse trigger real time polling current time;When current time reaches the preset time, timed task is triggered, and performance effect data are obtained from data server according to the timed task;Judge whether the performance effect data reach predetermined target value;When the performance effect data reach the predetermined target value, earning report is generated using the performance effect data.Through the invention, it solves and generates the excessive technical problem of earning report time delay in the related technology, and reduce the treating capacity of data.

Description

Generate method and device, the storage medium, electronic device of earning report
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of method and device for generating earning report, storage Matter, electronic device.
Background technique
In the related technology, with the rapid development of business on line, big data is sent out in driving interior business and external business Vital effect is waved, the ability that complicated business scenario needs data gradually to have real time data especially counts in real time According to the ability of push.On various lines during promoting activities, business needs timely to grasp the movable progress of business marketing, When meeting achievement requirement, KPI Key Performance Indicator (KPI, Key Performance Indicator) number can be timely obtained According to, and make achievement war communique and be sent to movable participant, thus the morale of promotion activity participant.The time delay that achievement war communique is sent Smaller, accuracy rate is higher, also can be bigger for the promotion of morale, and can play and business side is timely and conveniently promoted to change battalion Pin strategy, to bring better fund performance.
In the related technology, if it is desired to the earning report for checking some time, using checking total performance data report Table, and total performance data report needs to handle huge data volume, so after being generally spaced the period of a long period Reason is primary, when some time calculated performance data reaches some KPI index, data when recording up to standard, so Afterwards by some picture tools such as PS, movable war communique picture is produced manually.This mode has following problem: timing Check data, the data and time when up to standard are not accurate enough, delay in several minutes generally can all occur;Data volume is big, expends Process resource;Manual PS activity war communique picture, time-consuming and laborious, inefficiency.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
Summary of the invention
The embodiment of the invention provides a kind of method and devices for generating earning report, storage medium, electronic device.
According to one embodiment of present invention, a kind of method for generating earning report is provided, comprising: use message pulse Whether trigger real time polling current time reaches preset time;When current time reaches the preset time, triggering timing Task, and performance effect data are obtained from data server according to the timed task;Whether judge the performance effect data Reach predetermined target value;It is raw using the performance effect data when the performance effect data reach the predetermined target value At earning report.
It optionally, the use of whether message pulse trigger real time polling current time reaches preset time include: that judgement is worked as Whether the interval of preceding time and the preset time is less than threshold time;The interval of current time and the preset time whether When less than threshold time, whether preset time is reached using first message pulse trigger real time polling current time;Current It is real using second message pulse trigger when whether the interval of time and the preset time is greater than or equal to the threshold time When poll current time whether reach preset time, wherein the polling cycle of the first message pulse trigger is less than described Second message pulse trigger.
Optionally, the timed task includes type of service and business period, according to the timed task from data service It includes: that the target service data for belonging to the type of service are obtained from the data server that device, which obtains performance effect data,; The target service data are counted in the performance effect data of the business period.
Optionally, generating earning report using the performance effect data includes: to carry out lattice to the performance effect data Formula conversion, generates the first performance effect data of predetermined format;Specified word is added in the first performance effect data, is obtained To the second performance effect data;Text earning report is generated using the second performance effect data, or, using second industry Achievement result data generates picture earning report.
Optionally, generating text earning report using the second performance effect data includes: by the second achievement knot Fruit data are inserted into the achievement content of default text template, and add achievement title, obtain the text earning report, In, the default text template includes the achievement content and the achievement title.
Optionally, generating picture earning report using the second performance effect data includes: to select from presetting database Select default graphic template and background picture;It is converted to after the second performance effect data are added to the default graphic template Picture format, and the background picture is synthesized, obtain the picture earning report.
Optionally, after judging whether the performance effect data reach predetermined target value, the method also includes: When the performance effect data are not up to the predetermined target value, the performance effect data are deleted, or generate and be used to indicate The performance effect data are not up to the prompt information of the predetermined target value.
Optionally, after generating earning report using the performance effect data, the method also includes: by the industry Achievement report is sent to target object or target group, alternatively, the earning report is uploaded to transfer server, wherein described Transfer server and the target object or the target group carry out communication connection.
Optionally, after judging whether the performance effect data reach predetermined target value, the method also includes: When the performance effect data are not up to the predetermined target value, when adjusting the triggering of the timed task according to pre- fixed step size Between, wherein the triggered time adjusted is later than the preset time.
Optionally, institute is comprised determining that using whether message pulse trigger real time polling current time reaches preset time State the priority of timed task;The polling cycle of the message pulse trigger is set according to the priority;According to the wheel Ask whether cycle polling current time reaches preset time.
According to another embodiment of the invention, a kind of device for generating earning report is provided, comprising: poller module, Whether preset time is reached using message pulse trigger real time polling current time;Module is obtained, for arriving in current time When up to the preset time, timed task is triggered, and performance effect data are obtained from data server according to the timed task; Judgment module, for judging whether the performance effect data reach predetermined target value;Generation module, in the achievement knot When fruit data reach the predetermined target value, earning report is generated using the performance effect data.
Optionally, the poller module includes: judging unit, for judging the interval of current time Yu the preset time Whether threshold time is less than;Poll units, for whether being less than threshold time at the interval of current time and the preset time When, whether preset time is reached using first message pulse trigger real time polling current time;Current time with it is described pre- If whether the interval of time is greater than or equal to the threshold time, when current using second message pulse trigger real time polling Between whether reach preset time, wherein the polling cycle of the first message pulse trigger be less than the second message pulse Trigger.
Optionally, the timed task includes type of service and business period, and the acquisition module includes: acquiring unit, For obtaining the target service data for belonging to the type of service from the data server;Statistic unit, for counting Target service data are stated in the performance effect data of the business period.
Optionally, the generation module includes: converting unit, for being formatted to the performance effect data, Generate the first performance effect data of predetermined format;Processing unit, it is specified for being added in the first performance effect data Text obtains the second performance effect data;Generation unit, for generating text achievement report using the second performance effect data Table, or, generating picture earning report using the second performance effect data.
Optionally, described device further include: communication module, for using the performance effect data in the generation module After generating earning report, the earning report is sent to target object or target group, alternatively, by the earning report Reach transfer server, wherein the transfer server and the target object or the target group carry out communication connection.
Optionally, described device further include: adjustment module, for judging the performance effect data in the judgment module After whether reaching predetermined target value, when the performance effect data are not up to the predetermined target value, according to pre- fixed step size Adjust the triggered time of the timed task, wherein the triggered time adjusted is later than the preset time.
Optionally, the poller module comprises determining that subelement, for determining the priority of the timed task;Setting Subelement, for the polling cycle of the message pulse trigger to be arranged according to the priority;Poll subelement, for according to Whether the polling cycle poll current time reaches preset time.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, timed task is triggered in preset time, and achievement is obtained from data server according to timed task Result data generates earning report using performance effect data, leads to when judging that performance effect data reach predetermined target value It crosses and establishes timed task, go whether poll performance effect reaches target value in real time, generate achievement after reaching the performance objectives of setting Report solves and generates the excessive technical problem of earning report time delay in the related technology, and reduces the treating capacity of data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of server architecture block diagram of generation earning report of the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for generating earning report according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of picture earning report of the embodiment of the present invention;
Fig. 4 is the system flow chart that the embodiment of the present invention generates earning report;
Fig. 5 is a kind of structural block diagram of the device of generation earning report of the embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can mobile terminal, terminal, server or It is executed in similar arithmetic unit.For running on the server, Fig. 1 is a kind of generation earning report of the embodiment of the present invention Server architecture block diagram.As shown in Figure 1, server 10 may include one or more (only showing one in Fig. 1) processors 102 (processing units that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and use In the memory 104 of storing data, optionally, above-mentioned server can also include for communication function transmission device 106 with And input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to upper The structure for stating server causes to limit.For example, server 10 may also include the more or less component than shown in Fig. 1, or Person has the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair One of bright embodiment generates the corresponding computer program of method of earning report, and processor 102 is stored in by operation Computer program in reservoir 104 realizes above-mentioned method thereby executing various function application and data processing.Storage Device 104 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, Flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processing The remotely located memory of device 102, these remote memories can pass through network connection to server 10.The example of above-mentioned network Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of server 10 provide.In an example, transmitting device 106 includes a network adapter (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments so as to It is communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio Frequency, referred to as RF) Module is used to wirelessly be communicated with internet.
A kind of method for generating earning report is provided in the present embodiment, is applied in server side, Fig. 2 is according to this hair The method flow diagram of a kind of generation earning report of bright embodiment, as shown in Fig. 2, the process includes the following steps:
Whether step S202 reaches preset time using message pulse trigger real time polling current time;
Step S204 triggers timed task, and take from data according to timed task when current time reaches preset time Business device obtains performance effect data;
It is to start the task that triggering executes in preset time in the timed task of the present embodiment, which is used for from number According to capturing service data in server, and the performance effect data of service data statistics, such as one day amount of access, one hour at Friendship volume etc., data server are the server of generation or storage service data, such as EDrop order server, payment server etc.;
Step S206, judges whether performance effect data reach predetermined target value;
The predetermined target value of the present embodiment is preset threshold value, reaches the threshold value, indicates the task that hits the target;
Step S208 generates earning report using performance effect data when performance effect data reach predetermined target value.
Through the above steps, timed task is triggered in preset time, and industry is obtained from data server according to timed task Achievement result data generates earning report using performance effect data when judging that performance effect data reach predetermined target value, By establishing timed task, goes whether poll performance effect reaches target value in real time, generate industry after reaching the performance objectives of setting Achievement report solves and generates the excessive technical problem of earning report time delay in the related technology, and reduces the treating capacity of data.
It optionally, the use of whether message pulse trigger real time polling current time reaches preset time include: that judgement is worked as Whether the interval of preceding time and preset time is less than threshold time;Whether it is less than thresholding at the interval of current time and preset time When the time, whether preset time is reached using first message pulse trigger real time polling current time;In current time and in advance If whether the interval of time is greater than or equal to threshold time, it is using second message pulse trigger real time polling current time No arrival preset time, wherein the polling cycle of first message pulse trigger is less than second message pulse trigger.
By setting first message pulse trigger and second message pulse trigger, in current time interval preset time Smaller, polling cycle is smaller.
In an optional embodiment of the present embodiment, include: in preset time triggering timed task
Whether S11 reaches preset time using message pulse trigger real time polling current time;
The message pulse trigger of the present embodiment sends message pulse with some cycles, when message pulse carries local The time of clock, the i.e. current time of system, preset time are the time being arranged in configuring timing tasks, can be arranged in advance, Setting can also temporarily be inputted.
Optionally, determine using whether message pulse trigger real time polling current time reaches preset time and comprise determining that When task priority;The polling cycle of message pulse trigger is set according to priority;When current according to polling cycle poll Between whether reach preset time.Message pulse trigger the triggering period can timing, can be according to the priority of timed task Select the different triggering periods, the priority of timed task is higher, and the triggering period is smaller, and frequency is faster, because of the triggering period For theoretic maximum delay time, such as the first timed task is to obtain daily performance effect data, and the second timed task is Performance effect data hourly are obtained, then the priority of the first timed task can be set greater than the second timed task Priority triggers the first timed task using the smaller triggering period.
S12 executes timed task when current time is greater than or equal to preset time;When current time is not default Between when, refusal execute timed task.
In one example, preset time are as follows: 10:00:00, each minute poll of message pulse trigger is primary, n-th The time of poll is 9:59:23, and the time of (n+1)th poll is 10:00:23, then in n-th poll, due to current time The preset time for not arriving timed task, then do not execute timed task, in (n+1)th poll, starts to execute timed task.
Optionally, timed task includes type of service and business period, obtains industry from data server according to timed task Achievement result data includes: that the target service data for belonging to type of service are obtained from data server;Count target service data In the performance effect data of business period.
The timed task of the present embodiment is the parameter being arranged before triggering, in addition to type of service and business period etc. input Except parameter, further includes: above-mentioned predetermined target value, output parameter, the title of earning report, content, the information such as template.This implementation The type of service of example is used to indicate the data type of timed task, and such as object, address etc., the business period is earning report statistics Period, in the implement scene of an online shopping platform, type of service is the amount of consumption of Beijing electrical type, and the business period is 11 Moon 00:00:00 to 01:00:00 on the 11st, then timed task acquisition from data server (the billing data library of such as shopping platform) With statistics Beijing electrical type consumed accounts singly in the consumption total value of 00:00:00 to 01:00:00 on November 11, and exports and appoint for timing The performance effect data of business.
In an embodiment of the present embodiment, generating earning report using performance effect data includes:
S21 formats performance effect data, generates the first performance effect data of predetermined format;
In the present embodiment, performance effect data are formatted, are to convert complicated server data for convenience The format of displaying such as converts measurement unit, and processing etc. of zero-suppressing, in one example, the data obtained from data server are A11,100523:12 are matched by mapping table, and code A11 is referred to as Shanghai, are carried out unit conversion to 100523:12 and are not counted the small change, It is 100,000, then the first performance effect data are as follows: Shanghai, 100,000.
S22 adds specified word in the first performance effect data, obtains the second performance effect data;The present embodiment Specified word is the text selected according to the first performance effect data, such as: being more than the same period last year, growths amount is xx, under ring ratio Sliding xx etc..
S23 generates text earning report using the second performance effect data, or, being generated using the second performance effect data Picture earning report.
In an optional embodiment, generating text earning report using the second performance effect data includes: by second Performance effect data are inserted into the achievement content of default text template, and add achievement title, obtain text earning report, In, default text template includes achievement content and achievement title, and the text earning report such as generated is " to congratulate A platform double 11 Accumulative transaction value reaches 100,000,000,000 yuan, increases by 69% " compared with last year.In an optional embodiment, the second performance effect is used It includes: that default graphic template and background picture are selected from presetting database that data, which generate picture earning report,;By the second achievement Result data is converted to picture format after being added to default graphic template, and synthesizes background picture, obtains picture earning report, figure 3 be the schematic diagram of picture earning report of the embodiment of the present invention.
In an embodiment of the present embodiment, after generating earning report using performance effect data, further includes: Earning report is sent to target object or target group, alternatively, earning report is uploaded to transfer server, wherein transfer Server and target object or target group carry out communication connection.Target object can be a terminal, email address, display screen Curtain etc., target group then includes multiple target objects, more in the content of earning report, when the amount of storage of occupancy is larger, especially It is for picture earning report, in order to save the resource of report receiving end, earning report can be uploaded to transfer server (can To send the earning report of the less abbreviated version of data volume simultaneously), and only send chain of the earning report on transfer server Ground connection location or to acquisite approachs can be downloaded when report receiving end is wanted to check complete earning report by chained address.
In an embodiment of the present embodiment, after judging whether performance effect data reach predetermined target value, Further include: when performance effect data are not up to predetermined target value, performance effect data are deleted, or generate and be used to indicate achievement Result data is not up to the prompt information of predetermined target value.Predetermined target value is preset value, is in performance effect data It is not no when reaching predetermined target value, it can choose the performance effect data directly deleted and obtained, while prompt information can be issued.
In an embodiment of the present embodiment, after judging whether performance effect data reach predetermined target value, Further include: when performance effect data are not up to predetermined target value, the triggered time of timed task is adjusted according to pre- fixed step size, In, the triggered time adjusted is later than preset time.The present embodiment, can be with other than the preset time of adjustment timed task Predetermined target value is lowered to adjust timed task, in one example, preset time is 10:00:00, predetermined target value 10 Ten thousand, it is only 90,000 8 in the performance effect data that 10:00:00 is obtained, does not reach expected 100,000, and earning report must generate, In such a case, it is possible to adjust timed task according to 1 minute step-length, the triggered time adjusted is 10:01:00, or Predetermined target value is adjusted to 90,000 8 by person, that is, produces earning report, and system completes the task of report output.
Fig. 4 is the system flow chart that the embodiment of the present invention generates earning report, in a specific example of the present embodiment, A kind of real time data war communique (earning report) production method based on automatic regular polling is provided, is appointed by establishing timing data poll Business, goes whether polling data reaches target data in real time, after the achievement threshold value for reaching setting, performance data is added to prior system In the text war communique or picture war communique template performed, war communique is then sent to corresponding receiving by immediate communication tool Side, to achieve the purpose that real-time output achievement war communique.Process includes:
Step 1: initially setting up timed task configuration, the content of timed task configuration includes: timed task crontab expression Formula, the war communique for inputting parameter, threshold value setting, output parameter, the war communique title of text war communique, war communique content or picture war communique Template, background picture address, synthesis war communique address and war communique recipient, war communique receive group etc..
Step 2: and then establish real time data and calculate service procedure, including real-time data acquisition, real-time stream transmit, are real When data stream, real time data calculating task etc..
Step 3: then setting up picture splicing service, including war communique template library, design the template of various war communiques in advance;War Report template library includes but is not limited only to: achievement PK war communique, achievement ranking list, the real-time war communique of achievement, achievement threshold value war communique etc. are several War communique form.
Step 4: being ready to postpone matching for every content by steps 1 and 2,3, open message pulse trigger, message is set Pulse trigger sends message pulse with frequency of once per second, the execution of timed task is triggered, when the time of message trigger Time with configured timed task crontab expression formula, then real time data calculating task is continued to execute, otherwise exits timing Task execution process.
Step 4: after time match that message is set out configured timed task crontab expression formula, timed task will Input parameter is transmitted to real time data calculating task, and Real-time Data Service is transmitted by real-time data acquisition, real-time stream, is real When data stream after, will input parameter as the parameter of real time data calculating task, continue to execute to obtain performance data result.
Step 5: the performance data result obtained by real time data calculating task can be sent to threshold setting module, when full It when the performance objectives set enough, then continues to execute, otherwise exits timed task.
Step 6: when performance data result meets the performance objectives set, by output parameter module, output parameter Module can be handled performance data result, including format data, addition specific character etc.;
Step 7: achievement war communique can be set two kinds and touch the mode reached, and one is text war communique, text war communique mainly includes The performance effect data that output parameter obtains after treatment are inserted into war communique content by war communique title and war communique content;Separately One is picture war communique, picture war communique needs to select a war communique template from war communique template library in advance, and output parameter is passed through The performance effect data that obtain after processing, war communique template, background picture three synthesize war communique figure by war communique picture synthesis module Then picture is converted into meeting the format of picture transmission demand, war communique picture is then uploaded to the photo services of transfer by piece On device, the picture address of synthesis war communique is generated.
Step 8: the text war communique or picture war communique (or picture address) that step 7 is obtained are used as immediate communication tool A kind of type of message, select war communique recipient or war communique to receive group, be then sent to by immediate communication tool corresponding Target user.
Obtain newest performance data, and the push function based on instant pushing tool in real time by the way of automatic regular polling Can, help more preferable production achievement war communique faster.The method of the present invention is by using automatic regular polling real time data, to guarantee achievement The real-time and accuracy of data.On the other hand, text war communique or picture war communique are spliced to using by real-time performance data Mode, to automate output war communique, so that the efficiency of production war communique be substantially improved.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of device for generating earning report is additionally provided in the present embodiment, it is for realizing above-described embodiment and preferably real Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module " The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or The realization of the combination of software and hardware is also that may and be contemplated.
Embodiment provides a kind of device for generating earning report, and Fig. 5 is a kind of generation achievement report of the embodiment of the present invention The structural block diagram of the device of table, the device include: poller module 50, acquisition module 52, judgment module 54, generation module 56, In,
Whether poller module 50 reaches preset time using message pulse trigger real time polling current time;
Module 52 is obtained, for triggering timed task, and according to described fixed when current time reaches the preset time When task from data server obtain performance effect data;
Judgment module 54, for judging whether the performance effect data reach predetermined target value;
Generation module 56, for when the performance effect data reach the predetermined target value, using the achievement knot Fruit data generate earning report.
Optionally, the poller module includes: judging unit, for judging the interval of current time Yu the preset time Whether threshold time is less than;Poll units, for whether being less than threshold time at the interval of current time and the preset time When, whether preset time is reached using first message pulse trigger real time polling current time;Current time with it is described pre- If whether the interval of time is greater than or equal to the threshold time, when current using second message pulse trigger real time polling Between whether reach preset time, wherein the polling cycle of the first message pulse trigger be less than the second message pulse Trigger.
Optionally, the timed task includes type of service and business period, and the acquisition module includes: acquiring unit, For obtaining the target service data for belonging to the type of service from the data server;Statistic unit, for counting Target service data are stated in the performance effect data of the business period.
Optionally, the generation module includes: converting unit, for being formatted to the performance effect data, Generate the first performance effect data of predetermined format;Processing unit, it is specified for being added in the first performance effect data Text obtains the second performance effect data;Generation unit, for generating text achievement report using the second performance effect data Table, or, generating picture earning report using the second performance effect data.
Optionally, described device further include: communication module, for using the performance effect data in the generation module After generating earning report, the earning report is sent to target object or target group, alternatively, by the earning report Reach transfer server, wherein the transfer server and the target object or the target group carry out communication connection.
Optionally, described device further include: adjustment module, for judging the performance effect data in the judgment module After whether reaching predetermined target value, when the performance effect data are not up to the predetermined target value, according to pre- fixed step size Adjust the triggered time of the timed task, wherein the triggered time adjusted is later than the preset time.
Optionally, the poller module comprises determining that subelement, for determining the priority of the timed task;Setting Subelement, for the polling cycle of the message pulse trigger to be arranged according to the priority;Poll subelement, for according to Whether the polling cycle poll current time reaches preset time.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the one aspect of the present embodiment, above-mentioned storage medium can be set to storage for execute with The computer program of lower step:
Whether S1 reaches preset time using message pulse trigger real time polling current time;
S2 triggers timed task, and according to the timed task from data when current time reaches the preset time Server obtains performance effect data;
S3, judges whether the performance effect data reach predetermined target value;
S4 generates industry using the performance effect data when the performance effect data reach the predetermined target value Achievement report.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the one aspect of the present embodiment, above-mentioned processor can be set to hold by computer program Row following steps:
Whether S1 reaches preset time using message pulse trigger real time polling current time;
S2 triggers timed task, and according to the timed task from data when current time reaches the preset time Server obtains performance effect data;
S3, judges whether the performance effect data reach predetermined target value;
S4 generates industry using the performance effect data when the performance effect data reach the predetermined target value Achievement report.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method for generating earning report characterized by comprising
Whether preset time is reached using message pulse trigger real time polling current time;
When current time reaches the preset time, timed task is triggered, and according to the timed task from data server Obtain performance effect data;
Judge whether the performance effect data reach predetermined target value;
When the performance effect data reach the predetermined target value, earning report is generated using the performance effect data.
2. the method according to claim 1, wherein being using message pulse trigger real time polling current time No arrival preset time includes:
Judge whether current time and the interval of the preset time are less than threshold time;
It is real using first message pulse trigger when whether the interval of current time and the preset time is less than threshold time When poll current time whether reach preset time;Whether it is greater than or equal to institute at the interval of current time and the preset time When stating threshold time, whether preset time is reached using second message pulse trigger real time polling current time, wherein described The polling cycle of first message pulse trigger is less than the second message pulse trigger.
3. the method according to claim 1, wherein the timed task includes type of service and business period, Obtaining performance effect data from data server according to the timed task includes:
The target service data for belonging to the type of service are obtained from the data server;
The target service data are counted in the performance effect data of the business period.
4. the method according to claim 1, wherein generating earning report packet using the performance effect data It includes:
The performance effect data are formatted, the first performance effect data of predetermined format are generated;
Specified word is added in the first performance effect data, obtains the second performance effect data;
Text earning report is generated using the second performance effect data, or, generating using the second performance effect data Picture earning report.
5. according to the method described in claim 4, it is characterized in that, generating text achievement using the second performance effect data Report includes:
The second performance effect data are inserted into the achievement content of default text template, and add achievement title, obtained The text earning report, wherein the default text template includes the achievement content and the achievement title.
6. according to the method described in claim 4, it is characterized in that, generating picture achievement using the second performance effect data Report includes:
Default graphic template and background picture are selected from presetting database;
Picture format is converted to after the second performance effect data are added to the default graphic template, and synthesizes the back Scape picture obtains the picture earning report.
7. the method according to claim 1, wherein judging whether the performance effect data reach default mesh After scale value, the method also includes:
When the performance effect data are not up to the predetermined target value, the performance effect data are deleted, or generate and use The prompt information of the predetermined target value is not up in the instruction performance effect data.
8. a kind of device for generating earning report characterized by comprising
Whether poller module reaches preset time using message pulse trigger real time polling current time;
Module is obtained, for triggering timed task, and according to the timed task when current time reaches the preset time Performance effect data are obtained from data server;
Judgment module, for judging whether the performance effect data reach predetermined target value;
Generation module, for when the performance effect data reach the predetermined target value, using the performance effect data Generate earning report.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to perform claim when operation and requires method described in 1 to 7 any one.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program in method described in perform claim 1 to 7 any one of requirement.
CN201910271676.7A 2019-04-04 2019-04-04 Method and device for generating performance report, storage medium and electronic device Active CN110147539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910271676.7A CN110147539B (en) 2019-04-04 2019-04-04 Method and device for generating performance report, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910271676.7A CN110147539B (en) 2019-04-04 2019-04-04 Method and device for generating performance report, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110147539A true CN110147539A (en) 2019-08-20
CN110147539B CN110147539B (en) 2023-04-21

Family

ID=67588577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910271676.7A Active CN110147539B (en) 2019-04-04 2019-04-04 Method and device for generating performance report, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110147539B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN107784510A (en) * 2016-08-24 2018-03-09 上海零氏信息技术有限公司 Sales achievement statistical analysis system and method based on shops's retail terminal
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report
CN109359279A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Report form generation method, device, computer equipment and storage medium
CN109522337A (en) * 2018-10-19 2019-03-26 中国平安人寿保险股份有限公司 Electronic device, data preparation method for pushing and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN107784510A (en) * 2016-08-24 2018-03-09 上海零氏信息技术有限公司 Sales achievement statistical analysis system and method based on shops's retail terminal
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report
CN109359279A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Report form generation method, device, computer equipment and storage medium
CN109522337A (en) * 2018-10-19 2019-03-26 中国平安人寿保险股份有限公司 Electronic device, data preparation method for pushing and computer readable storage medium

Also Published As

Publication number Publication date
CN110147539B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN107392405B (en) Data processing method, device and equipment
CN104598551B (en) A kind of data statistical approach and device
CN104349340B (en) The surfing flow monitoring method and device of mobile terminal
CN105989538B (en) Automatic trading system and automatic trading method for financial products
WO2019028415A1 (en) Data sharing between participants using disparate message formats
CN103854065A (en) Customer loss prediction method and device
CN107689968A (en) Processing system, the method and device of task
CN107506969A (en) A kind of self-service report work management system
CN109274726A (en) Binding, moving method and device calculate equipment and storage medium
CN109064248A (en) Order data synchronous method of calibration, device and equipment
CN110263309A (en) Generate method and device, the storage medium, electronic device of earning report
CN110147539A (en) Generate method and device, the storage medium, electronic device of earning report
CN112732458A (en) Multi-protocol data integration system and method adopting protocol stack
CN109345219B (en) Collection control method, device, server and readable storage medium
CN103581261B (en) P2P data publication, sharing and statistical method and system
CN115952398A (en) Data uploading statistical calculation method and system based on Internet of things and storage medium
CN111028041A (en) Data processing method and device, readable storage medium and electronic equipment
CN106294457A (en) Network information push method and device
CN110264083A (en) A kind of agenda managing method, device and computer readable storage medium
CN109672605A (en) Mail distribution method, apparatus, equipment and readable storage medium storing program for executing
CN105450764B (en) New energy power station interactive design system (IDS)
CN107992025A (en) A kind of test system
CN112184347B (en) Meal ordering system, meal ordering method, meal ordering device, meal ordering computer device and meal ordering readable storage medium
WO2016074396A1 (en) Power source monitoring method and device
CN112734121A (en) Information output method and device based on payment data

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