CN106445889A - Report mail generation method and apparatus - Google Patents
Report mail generation method and apparatus Download PDFInfo
- Publication number
- CN106445889A CN106445889A CN201510484828.3A CN201510484828A CN106445889A CN 106445889 A CN106445889 A CN 106445889A CN 201510484828 A CN201510484828 A CN 201510484828A CN 106445889 A CN106445889 A CN 106445889A
- Authority
- CN
- China
- Prior art keywords
- threshold value
- default threshold
- report file
- 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.)
- Pending
Links
Abstract
The invention discloses a report mail generation method and apparatus. The method comprises the steps of generating a report file; comparing the size of the report file with a preset threshold; and generating a report mail according to a comparison result. Before the report mail is generated, the size of the report file can be compared with the preset threshold, and the report mail is generated according to the comparison result. Therefore, solving the problem of sending performance reduction and/or network congestion caused by an excessively large report file in the prior art becomes possible.
Description
Technical field
The invention belongs to computer realm is and in particular to a kind of method and apparatus of generation form mail.
Background technology
In computer realm, application system needs periodically or non-periodically to send form to user.Generally,
The report generation report file that application system can send as needed, and report file is led in the form of adnexa
Cross Email and be sent to user.
However, in some cases, report file may be larger, so can result in the need for network transmission for a long time,
Thus reducing its sending performance, on the other hand also easily cause network congestion.
Content of the invention
In view of this, the present invention proposes a kind of method and apparatus generating form mail.
According to an aspect of the invention, it is provided a kind of method generating form mail, including:Generate report
List file;The size of described report file is compared with default threshold value;And given birth to according to comparative result
Become form mail.
According to a further aspect in the invention, there is provided a kind of generate form mail device, including:Form is given birth to
Become unit, generate report file;Memory element, be stored with default threshold value;Comparing unit, by described report
The size of described report file that table signal generating unit generates is described default with what described memory element was stored
Threshold value is compared;And mail signal generating unit, according to the comparative result generation form postal of described comparing unit
Part.
According to technical scheme provided by the present invention, before generating form mail, can be first by report file
Size is compared with default threshold value, and generates form mail according to result of the comparison.So so that solving
Certainly occur in prior art reduces its sending performance and/or causes network congestion because report file is excessive
Problem be possibly realized.
Brief description
The embodiments of the present invention are read with reference to the drawings, will be better understood the present invention further feature and
Advantage, accompanying drawing described here is intended merely to the purpose that embodiments of the present invention are schematically illustrated,
And not all possible enforcement, and it is not intended to limit the scope of the present invention.In the accompanying drawings:
Fig. 1 shows the flow process generating the method for form mail according to one exemplary embodiment
Figure;
Fig. 2 shows according to one exemplary embodiment by the size of report file and default threshold
The flow chart that value is compared;
Fig. 3 shows the block diagram generating the device of form mail according to one exemplary embodiment;
Fig. 4 shows the block diagram of the device generating form mail according to another exemplary embodiment of the present invention;
And
Fig. 5 shows the block diagram of comparing unit according to one exemplary embodiment.
Specific embodiment
Referring now to accompanying drawing, embodiments of the present invention are described in detail.It should be noted that following description is only
Exemplary, and it is not intended to limit the present invention, and for the sake of brevity, eliminate in the following description
The specific descriptions of some parts same as the prior art.Additionally, in the following description, will be using identical
Drawing reference numeral represents the same or analogous part in different accompanying drawings.In different embodiments described below
Different characteristic, can be bonded to each other, to form the other embodiment in the scope of the invention.
Fig. 1 shows the flow process generating the method for form mail according to one exemplary embodiment
Figure.As shown in figure 1, method 100 may include step S110 to S130.In step s 110, first,
Generate report file.Subsequently, in the step s 120, by the size of the report file generating in step S110
It is compared with default threshold value.Finally, in step s 130, tied according to comparison in the step s 120
Fruit generates form mail.
Thus, before generating form mail, first the size of report file is compared with default threshold value,
And form mail is generated according to result of the comparison.So so that solve prior art in occur due to report
List file is excessive and reduces its sending performance and/or causes the problem of network congestion to be possibly realized.It is appreciated that
Those skilled in the art can select suitable threshold value before operation according to factors such as system performance, network environments,
To reach preferable effect.
According to an embodiment of the invention, in step s 130, the report of default threshold value can be will be greater than
The download link of list file is included in form mail.If that is, report file is more than default threshold
Value, then descriptive statement file is larger, may reduce its sending performance and/or cause network congestion, now,
The download link of report file is included in form mail, rather than using report file itself as adnexa with
Form mail is sent to user, so can greatly improve the sending performance of form mail, and avoids going out
Existing network congestion.User, after getting the mail, can download report file by clickthrough when needed, or
If do not needed, need not download, thus having saved Internet resources.
According to an embodiment of the invention, will be greater than the form literary composition of default threshold value in step s 130
When the download link of part is included in form mail, can be the report file distribution more than default threshold value first
Address.Subsequently, the address distributed can be included in form mail as download link, so that receiving
The user of form mail can download to its required report file by the address link in mail.
On the other hand, in step s 130, can using less than or equal to default threshold value report file as
The adnexa of form mail.If that is, report file is less than or equal to default threshold value, illustrate to report
List file is less, and its sending performance will not reduce, and does not also result in network congestion, now, can be by form literary composition
Part is sent to user directly as the adnexa of form mail.
According to an embodiment of the invention, above-mentioned default threshold value is stored in mail parameters configuration file
In.This mail parameters configuration file can be original in system or in order to store default threshold value
And newly add.
Fig. 2 shows according to one exemplary embodiment by the size of report file and default threshold
The flow chart that value is compared.As shown in Fig. 2 step S120 may include sub-step S121 to S123.
In sub-step S121, read default threshold value from mail parameters configuration file.In sub-step S122,
The size of identification report file.Subsequently, in sub-step S123, by the size of the report file being identified
It is compared with the default threshold value being read.Although it is pointed out that in fig. 2, sub-step S121
Operation before sub-step S122, it is to be understood that, the order of this two sub-steps can exchange or
Executed in parallel.
According to an embodiment of the invention, above-mentioned default threshold value in the range of 0.2 to 5 Mbytes,
For example, it is possible to be 1 Mbytes.
Fig. 3 shows the block diagram generating the device of form mail according to one exemplary embodiment.
As shown in figure 3, device 300 may include report generation unit 310, memory element 320, comparing unit 330
With mail signal generating unit 340.Report generation unit 310 can be used for generating report file.Memory element 320
Can be stored with default threshold value.The report file that report generation unit 310 can be generated by comparing unit 330
The default threshold value that size and memory element 320 are stored is compared.Mail signal generating unit 340 can basis
The comparative result of comparing unit 330 generates form mail.
According to an embodiment of the invention, mail signal generating unit 340 can will be greater than the report of default threshold value
The download link of list file is added to form mail.
Fig. 4 shows the block diagram of the device generating form mail according to another exemplary embodiment of the present invention.
Fig. 4 illustrated embodiment is with the difference of Fig. 3, except report generation unit 310, memory element 320,
Outside comparing unit 330 and mail signal generating unit 340, device 300 ' may also include allocation unit 350.
For the sake of brevity, the difference only for Fig. 4 illustrated embodiment and Fig. 3 is described in detail below,
Its something in common will not be described in great detail.
Allocation unit 350 can be to distribute address more than the report file of default threshold value.Mail generates
The address distributed can be included in form mail by unit 340 as download link.
According to an embodiment of the invention, mail signal generating unit 340 can will be less than or equal to default threshold
The report file of value is as the adnexa of form mail.
According to an embodiment of the invention, can be stored with memory element 320 mail parameters configuration file,
Default threshold value is storable in this mail parameters configuration file.
Fig. 5 shows the block diagram of comparing unit according to one exemplary embodiment.As Fig. 5 institute
Show, comparing unit 330 may include reading subelement 331, identification subelement 332 and comparing subunit 333.
Read subelement 331 and can read default threshold value from mail parameters configuration file.Identification subelement 332 can
The size of the report file that identification report generation unit 310 is generated.Comparing subunit 333 can be by identification
The size of report file of unit 332 identification is compared with the default threshold value reading subelement 331 reading
Relatively.
According to an embodiment of the invention, above-mentioned default threshold value in the range of 0.2 to 5 Mbytes,
For example, it is possible to be 1 Mbytes.
Description to each embodiment of the present invention is for a better understanding of the present invention above, and it is only example
Property, and be not intended to the present invention is carried out.It should be noted that in the above description, retouch for a kind of embodiment
The feature stated and/or illustrate can be in same or similar mode in one or more other embodiments
Use, combined with the feature in other embodiment, or substitute the feature in other embodiment.Ability
Field technique personnel are appreciated that without departing from the spirit of the invention, for reality described above
The variations and modifications that the mode of applying is carried out, belong in the scope of the present invention.
Claims (10)
1. a kind of method generating form mail, including:
Generate report file;
The size of described report file is compared with default threshold value;And
Form mail is generated according to comparative result.
2. the method for claim 1, wherein generates form mail according to comparative result and includes:
The download link that will be greater than the report file of described default threshold value is included in described form mail.
3. method as claimed in claim 2, wherein will be greater than the report file of described default threshold value
Download link is included in described form mail and includes:
It is to distribute address more than the report file of described default threshold value;And
The address distributed is included in described form mail as download link.
4. method as claimed in claim 2, wherein generates form mail according to comparative result and also includes:
Using less than or equal to described default threshold value report file as described form mail adnexa.
5. the method for claim 1, wherein said default threshold value is stored in mail parameters configuration
In file.
6. method as claimed in claim 5, wherein by the size of described report file and default threshold value
Be compared including:
Read described default threshold value from described mail parameters configuration file, and identify described report file
Size;And
The size of the described report file being identified is compared with the described default threshold value being read.
7. the method for claim 1, wherein said default threshold value is in 0.2 to 5 Mbytes of model
In enclosing.
8. the method for claim 1, wherein said default threshold value is 1 Mbytes.
9. a kind of device generating form mail, including:
Report generation unit, generates report file;
Memory element, be stored with default threshold value;
Comparing unit, the size of the described report file that described report generation unit is generated is single with described storage
The described default threshold value that unit is stored is compared;And
Mail signal generating unit, the comparative result according to described comparing unit generates form mail.
10. device as claimed in claim 9, wherein said mail signal generating unit will be greater than described default
The download link of the report file of threshold value is added to described form mail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510484828.3A CN106445889A (en) | 2015-08-07 | 2015-08-07 | Report mail generation method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510484828.3A CN106445889A (en) | 2015-08-07 | 2015-08-07 | Report mail generation method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106445889A true CN106445889A (en) | 2017-02-22 |
Family
ID=58092393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510484828.3A Pending CN106445889A (en) | 2015-08-07 | 2015-08-07 | Report mail generation method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445889A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667721A (en) * | 2018-05-16 | 2018-10-16 | 平安科技(深圳)有限公司 | Subscribe to report form generation method, device, computer equipment and storage medium |
CN110519154A (en) * | 2019-08-15 | 2019-11-29 | 中国平安财产保险股份有限公司 | Data transmission method for uplink, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079846A (en) * | 2007-06-08 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A sending and receiving method and system of Email attachment |
CN101924712A (en) * | 2010-08-23 | 2010-12-22 | 宇龙计算机通信科技(深圳)有限公司 | Sending method and system for push mail and mobile terminal |
CN103580991A (en) * | 2013-01-05 | 2014-02-12 | 网易(杭州)网络有限公司 | Mail attachment uploading method and device |
CN104683213A (en) * | 2013-11-28 | 2015-06-03 | 腾讯科技(深圳)有限公司 | A mail sending method and device |
-
2015
- 2015-08-07 CN CN201510484828.3A patent/CN106445889A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079846A (en) * | 2007-06-08 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A sending and receiving method and system of Email attachment |
CN101924712A (en) * | 2010-08-23 | 2010-12-22 | 宇龙计算机通信科技(深圳)有限公司 | Sending method and system for push mail and mobile terminal |
CN103580991A (en) * | 2013-01-05 | 2014-02-12 | 网易(杭州)网络有限公司 | Mail attachment uploading method and device |
CN104683213A (en) * | 2013-11-28 | 2015-06-03 | 腾讯科技(深圳)有限公司 | A mail sending method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667721A (en) * | 2018-05-16 | 2018-10-16 | 平安科技(深圳)有限公司 | Subscribe to report form generation method, device, computer equipment and storage medium |
CN108667721B (en) * | 2018-05-16 | 2021-11-09 | 平安科技(深圳)有限公司 | Subscription report generation method and device, computer equipment and storage medium |
CN110519154A (en) * | 2019-08-15 | 2019-11-29 | 中国平安财产保险股份有限公司 | Data transmission method for uplink, device, equipment and computer readable storage medium |
CN110519154B (en) * | 2019-08-15 | 2022-11-15 | 中国平安财产保险股份有限公司 | Data transmission method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107436725A (en) | A kind of data are write, read method, apparatus and distributed objects storage cluster | |
CN104601696A (en) | Service processing method and service invoking frame, device and architecture | |
CN103902486A (en) | System, device and method for implementation of remote direct memory access | |
CN104239518A (en) | Repeated data deleting method and device | |
CN103647726A (en) | Message dispatching method and device thereof | |
CN105959346A (en) | Data processing system and data processing method based on server cluster | |
CN103475682A (en) | File transfer method and file transfer equipment | |
CN104935612A (en) | Data processing method and server | |
CN110912814A (en) | Interface data distribution method and device | |
TW201629874A (en) | Service implementation | |
CN102821045B (en) | Method and device for copying multicast message | |
CN102882960B (en) | A kind of sending method of resource file and device | |
CN106445889A (en) | Report mail generation method and apparatus | |
CN102857547B (en) | The method and apparatus of distributed caching | |
CN104468330A (en) | Data processing method and device of distributed information queue | |
CN104994141A (en) | Cooperative storage system relieving storing and computing pressures of cloud server | |
CN108205482A (en) | File mount restoration methods | |
CN107896196B (en) | Method and device for distributing messages | |
CN110334054A (en) | A kind of block chained file fragment storage method | |
CN107231287B (en) | Marketing mail sending method and sending information statistical method and device | |
CN101795243A (en) | Method, device and system for accessing attachment files in electronic mails | |
CN103685062A (en) | Cache management method and device | |
CN104202309A (en) | Data transmission control method and apparatus | |
CN103905335A (en) | Flow control method and device | |
CN102904803B (en) | A kind of message transmitting method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170222 |