CN110263309A - 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 PDFInfo
- Publication number
- CN110263309A CN110263309A CN201910398651.3A CN201910398651A CN110263309A CN 110263309 A CN110263309 A CN 110263309A CN 201910398651 A CN201910398651 A CN 201910398651A CN 110263309 A CN110263309 A CN 110263309A
- Authority
- CN
- China
- Prior art keywords
- data
- performance effect
- effect data
- report
- target service
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
- G06Q10/06393—Score-carding, benchmarking or key performance indicator [KPI] analysis
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Artificial Intelligence (AREA)
- Operations Research (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Debugging And Monitoring (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of method and devices for generating earning report, storage medium, electronic device, wherein this method comprises: obtaining the performance effect data of target service in real time from data server;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, improve actual effect, and reduce time delay, by automating output earning report, so that the efficiency of production earning report be substantially improved.
Description
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 check earning report, the scheme of use is timing acquiring performance data, and is settled accounts total
Performance effect, when number of calculated performance effect when some time reaching some KPI index, when recording up to standard
According to producing movable war communique picture manually then by some picture tools such as PS.It will be apparent that this mode have it is several
Problem: periodically checking data, and the data and time when up to standard are not accurate enough, generally can all postpone;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: from data server
In obtain the performance effect data of target service in real time;Judge whether the performance effect data reach predetermined target value;Institute
When stating performance effect data and reaching the predetermined target value, earning report is generated using the performance effect data.
It optionally, include: using from multiple batches from the performance effect data for obtaining target service in data server in real time
The streaming from the data server acquires the real time data of the target service to reason script Batch parallel;Count the target
The historical data of business and the real time data obtain the performance effect data of the target service.
Optionally, using multiple batch processing script Batch, streaming acquires the target from the data server parallel
The real time data of business includes: to read the target from the data server parallel using multiple batch processing script Batch
The incremental data of business;Wherein, each Batch corresponds to a data source in the data server;By the incremental data
Data channel is synchronized to from the data server;The incremental data is converted into specified format in the data channel
Data flow obtains the real time data of the target service.
Optionally, the target service includes type of service and business period, obtains target in real time from data server
The performance effect data of business include: that 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.
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, the predetermined target value is adjusted downwards according to pre- fixed step size.
According to another embodiment of the invention, a kind of device for generating earning report is provided, comprising: module is obtained,
For obtaining the performance effect data of target service in real time from data server;Judgment module, for judging the achievement knot
Whether fruit data reach predetermined target value;Generation module, for when the performance effect data reach the predetermined target value,
Earning report is generated using the performance effect data.
Optionally, the acquisition module includes: acquisition unit, for using multiple batch processing script Batch parallel from institute
State the real time data that streaming in data server acquires the target service;Statistic unit, for counting the target service
Historical data and the real time data obtain the performance effect data of the target service.
Optionally, the target service 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
The predetermined target value is adjusted downwards.
Optionally, the acquisition unit includes: reading subunit, for using multiple batch processing script Batch parallel from
The incremental data of the target service is read in the data server;Wherein, each Batch is corresponded in the data server
A data source;Synchronous subelement, for the incremental data to be synchronized to data channel from the data server;Conversion
Subelement obtains the target for the incremental data to be converted to the data flow of specified format in the data channel
The real time data of business.
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, the performance effect data for obtaining target service in real time from data server, are judging achievement
When result data reaches predetermined target value, earning report is generated using performance effect data, achievement knot is guaranteed using stream data
Whether the real-time and accuracy of fruit data, real-time judge performance effect reach target value, reach life after the performance objectives of setting
At earning report, solves and generate the excessive technical problem of earning report time delay in the related technology, improve actual effect, and reduce
Time delay, by automating output earning report, so that the efficiency of production earning report be substantially improved.
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, and Fig. 2 is one kind according to an embodiment of the present invention
The method flow diagram for generating earning report, as shown in Fig. 2, the process includes the following steps:
Step S202 obtains the performance effect data of target service in real time from data server;
It is executing in real time for task in the target service of the present embodiment, the target service from data server for acquiring
Business datum, and the performance effect data of service data statistics, such as end current time amount of access, end current time at
Friendship volume etc., data server are the server of generation or storage service data, such as EDrop order server, payment server etc.;
Step S204, 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 S206 generates earning report using performance effect data when performance effect data reach predetermined target value.
Through the above steps, the performance effect data for obtaining target service in real time from data server, are judging industry
When achievement result data reaches predetermined target value, earning report is generated using performance effect data, achievement is guaranteed using stream data
Whether the real-time and accuracy of result data, real-time judge performance effect reach target value, after the performance objectives for reaching setting
Earning report is generated, solves and generates the excessive technical problem of earning report time delay in the related technology, improve actual effect, and contract
Small time delay, by automating output earning report, so that the efficiency of production earning report be substantially improved.
In an optional embodiment of the present embodiment, the achievement knot of target service is obtained in real time from data server
Fruit data include:
S11, using multiple batch processing script Batch, streaming acquires the target service from the data server parallel
Real time data;
Optionally, using multiple batch processing script Batch, streaming acquires the target from the data server parallel
The real time data of business includes: to read the target from the data server parallel using multiple batch processing script Batch
The incremental data of business;Wherein, each Batch corresponds to a data source in the data server;By the incremental data
Data channel is synchronized to from the data server;The incremental data is converted into specified format in the data channel
Data flow obtains the real time data of the target service.The data source of the present embodiment includes service message, business diary
Deng.
S12 counts the historical data and the real time data of the target service, obtains the achievement knot of the target service
Fruit data.
In one example, target service is the transaction value of Beijing area, and accumulative historical data is 3,000,000, in real time number
According to being 20,000, then the performance effect data of the target service are 3,020,000.
Optionally, target service includes type of service and business period, obtains target service in real time from data server
Performance effect data include: to obtain to belong to the target service data of type of service from data server;Count target service
Performance effect data of the data in the business period.
The target service of the present embodiment includes multiple preset parameters, in addition to type of service and business period etc. input parameter
Except, further includes: above-mentioned predetermined target value, output parameter, the title of earning report, content, the information such as template.The present embodiment
Type of service is used to indicate the data type of target service, such as object, address etc., the business period be earning report statistics when
Section, 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 November
00:00:00 to 01:00:00 on the 11st, then target service is adopted in real time from data server (the billing data library of such as shopping platform)
Collection and statistics Beijing electrical type consumed accounts are singly in the consumption total value of 00:00:00 to 01:00:00 on November 11, and exporting is target
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, performance effect data not
When reaching predetermined target value, it can choose the performance effect data directly deleted and obtained, while prompt information can be issued.One
In a optional embodiment, the difference of performance effect data Yu the predetermined target value can be calculated, in less than one door of difference
When limit value, start to generate and send prompt information, if predetermined target value is 100,000, threshold value is 10,000, is reached in performance effect data
Start to prompt when to 90,000 or more, user can estimate and prepare in advance.
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 predetermined target value is adjusted downwards according to pre- fixed step size.?
In one example, predetermined target value is 100,000, is only 90,000 8 in the performance effect data that 10:00:00 is obtained, does not reach expected 10
Ten thousand, and earning report must generate, in such a case, it is possible to be produced according to predetermined target value is adjusted to 90,000 8
Earning report, system complete 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 stream data driving is provided, by establishing real time data rule
Then engine does rule calculating and threshold calculations, to judge whether during real time data stream calculation in regulation engine
Triggering war communique push task adds performance data after real-time performance data reaches achievement threshold value (predetermined target value) of setting
It is added in the text war communique made in advance or picture war communique template, is then sent to war communique pair by immediate communication tool
The reciever answered, to achieve the purpose that real-time output achievement war communique.This example it is a kind of based on stream data driving it is real-time
The process of data war communique includes:
Step 1: initially setting up real time data and calculate service procedure, including real-time data acquisition, real-time stream are synchronous, reality
When data stream, real time data calculating task etc..
Step 2: and then real time data regulation engine is established, including rule setting and threshold value setting, threshold value setting can root
Carry out dynamic configuration according to external system, to constitute real-time Dynamic Rule Engine.
Step 3: then set up war communique task configuration, comprising: input parameter, output parameter, text war communique war communique title,
War communique content or the war communique template of picture war communique, background picture address, synthesis war communique address and war communique recipient, war communique
Receive group etc..
Step 4: 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 a variety of
War communique form.
Step 5: being ready to postpone matching for every content by steps 1 and 2,3,4, after Real-time Data Service starts, in real time
Data service is after real-time data acquisition, real-time stream transmission, real-time stream conversion, using input parameter as real-time number
According to the parameter of calculating task, continue to execute to obtain performance data result.
Step 6: the performance data result obtained by real time data calculating task can be sent to real-time Dynamic Rule Engine
In, when meeting the rule and threshold value that set, then continues to execute, otherwise exit 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 requirement, then uploads to war communique picture in picture servers by piece, from
And obtain picture address of the synthesis war communique in picture servers.
Step 8: the text war communique or picture war communique that step 7 is obtained are as a kind of message class of immediate communication tool
Type selects war communique recipient or war communique to receive group, is then sent to corresponding target user by immediate communication tool.
The present embodiment is driven using stream data, to guarantee the real-time and accuracy of performance data, compares timing wheel
The mode of inquiry has preferably actual effect and smaller time delay.On the other hand, text is spliced to using by real-time performance data
The mode of war communique or picture war communique, 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: to obtain module 50, judgment module 52, generation module 54, wherein
Module 50 is obtained, for obtaining the performance effect data of target service in real time from data server;
Judgment module 52, for judging whether the performance effect data reach predetermined target value;
Generation module 54, for when the performance effect data reach the predetermined target value, using the achievement knot
Fruit data generate earning report.
Optionally, the acquisition module includes: acquisition unit, for using multiple batch processing script Batch parallel from institute
State the real time data that streaming in data server acquires the target service;Statistic unit, for counting the target service
Historical data and the real time data obtain the performance effect data of the target service.
Optionally, the target service 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
The predetermined target value is adjusted downwards.
Optionally, the acquisition unit includes: reading subunit, for using multiple batch processing script Batch parallel from
The incremental data of the target service is read in the data server;Wherein, each Batch is corresponded in the data server
A data source;Synchronous subelement, for the incremental data to be synchronized to data channel from the data server;Conversion
Subelement obtains the target for the incremental data to be converted to the data flow of specified format in the data channel
The real time data of business.
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:
S1 obtains the performance effect data of target service in real time from data server;
S2, judges whether the performance effect data reach predetermined target value;
S3 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:
S1 obtains the performance effect data of target service in real time from data server;
S2, judges whether the performance effect data reach predetermined target value;
S3 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
Obtain the performance effect data of target service in real time from data server;
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 obtaining the achievement of target service in real time from data server
Result data includes:
Using multiple batch processing script Batch, the streaming from the data server acquires the real-time number of the target service parallel
According to;
The historical data and the real time data for counting the target service, obtain the performance effect data of the target service.
3. according to the method described in claim 2, it is characterized in that, using multiple batch processing script Batch parallel from the number
Include: according to the real time data that streaming in server acquires the target service
Read the incremental data of the target service from the data server parallel using multiple batch processing script Batch;
Wherein, each Batch corresponds to a data source in the data server;
The incremental data is synchronized to data channel from the data server;
The data flow that the incremental data is converted to specified format in the data channel obtains the institute of the target service
State real time data.
4. the method according to claim 1, wherein the target service includes type of service and business period,
The performance effect data for obtaining target service in real time from data server include:
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.
5. 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.
6. according to the method described in claim 5, 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.
7. according to the method described in claim 5, 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.
8. a kind of device for generating earning report characterized by comprising
Module is obtained, for obtaining the performance effect data of target service in real time 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910398651.3A CN110263309B (en) | 2019-05-14 | 2019-05-14 | Method and device for generating performance report, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910398651.3A CN110263309B (en) | 2019-05-14 | 2019-05-14 | Method and device for generating performance report, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110263309A true CN110263309A (en) | 2019-09-20 |
CN110263309B CN110263309B (en) | 2023-05-16 |
Family
ID=67914671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910398651.3A Active CN110263309B (en) | 2019-05-14 | 2019-05-14 | Method and device for generating performance report, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110263309B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420060A (en) * | 2021-05-11 | 2021-09-21 | 南京爱福路汽车科技有限公司 | Method for counting automobile post-market performance based on multi-dimensional custom rule |
Citations (4)
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 |
CN107944677A (en) * | 2017-11-15 | 2018-04-20 | 平安科技(深圳)有限公司 | Achievement method for tracing, application server and computer-readable recording medium |
CN109254892A (en) * | 2018-08-14 | 2019-01-22 | 北京信安世纪科技股份有限公司 | A kind of method and device generating report |
-
2019
- 2019-05-14 CN CN201910398651.3A patent/CN110263309B/en active Active
Patent Citations (4)
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 |
CN107944677A (en) * | 2017-11-15 | 2018-04-20 | 平安科技(深圳)有限公司 | Achievement method for tracing, application server and computer-readable recording medium |
CN109254892A (en) * | 2018-08-14 | 2019-01-22 | 北京信安世纪科技股份有限公司 | A kind of method and device generating report |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420060A (en) * | 2021-05-11 | 2021-09-21 | 南京爱福路汽车科技有限公司 | Method for counting automobile post-market performance based on multi-dimensional custom rule |
Also Published As
Publication number | Publication date |
---|---|
CN110263309B (en) | 2023-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190050428A1 (en) | System and method for image annotation | |
CN105989538B (en) | Automatic trading system and automatic trading method for financial products | |
CN104598551B (en) | A kind of data statistical approach and device | |
WO2019019649A1 (en) | Method and apparatus for generating investment portfolio product, storage medium and computer device | |
CN104112156B (en) | System and method for updating electronic shelf label and updating device and method thereof | |
CN105976212A (en) | Commodity displaying method and apparatus and electronic commerce platform | |
JP2009157528A (en) | Production instruction method in cell production system | |
CN110263309A (en) | Generate method and device, the storage medium, electronic device of earning report | |
CN116112557A (en) | Method and system for adapting multiple message formats based on determined data | |
CN109978502A (en) | Automatic budget method, system and computer storage medium are changed in engineering design | |
CN112613724A (en) | Compliance assessment method and device for enterprise, storage medium and electronic equipment | |
CN108738063A (en) | A kind of bluetooth equipment Performance Test System | |
CN109600852A (en) | A kind of resource indicating method, communication device and the network equipment | |
CN108632088B (en) | Method for processing business, device and server | |
CN114626939A (en) | Credit processing method and device, electronic equipment and storage medium | |
CN1505349A (en) | Modular method and device for the tracing of a multimedia message through a telecommunications network | |
CN109840826A (en) | Internet sales ordering system | |
CN110896369B (en) | Method, device, equipment and medium for determining working time limit of equipment | |
CN110147539A (en) | Generate method and device, the storage medium, electronic device of earning report | |
CN104469092A (en) | Image acquisition method and electronic equipment | |
CN108347355A (en) | A kind of detection method and its equipment of application state | |
CN105282031A (en) | Data forwarding method and device | |
CN111028041A (en) | Data processing method and device, readable storage medium and electronic equipment | |
CN108234228B (en) | Method, device and system for acquiring network energy efficiency | |
CN102761613A (en) | Mobile terminal and device information obtaining method and system thereof as well as server |
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 |