CN112632009A - Electronic file processing method and device, storage medium and electronic equipment - Google Patents

Electronic file processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112632009A
CN112632009A CN202011592146.1A CN202011592146A CN112632009A CN 112632009 A CN112632009 A CN 112632009A CN 202011592146 A CN202011592146 A CN 202011592146A CN 112632009 A CN112632009 A CN 112632009A
Authority
CN
China
Prior art keywords
archive
electronic
information
target
file
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
Application number
CN202011592146.1A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202011592146.1A priority Critical patent/CN112632009A/en
Publication of CN112632009A publication Critical patent/CN112632009A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The disclosure relates to a processing method, a device, a storage medium and an electronic device of an electronic file, relating to the technical field of electronic information, wherein the method comprises the following steps: the method comprises the steps of obtaining target archive information to be archived from an electronic archive database and target attachment information corresponding to the target archive information, obtaining a target attachment indicated by a first storage path from a file storage server according to the first storage path included by the target attachment information, generating an electronic archive file according to the target archive information and the target attachment information, generating an electronic archive compression package and compression package information corresponding to the electronic archive compression package according to the electronic archive file and the target attachment, storing the electronic archive compression package to the archive server, and storing the compression package information to an archive database. This openly can generate electronic file compression package and the compression package information that corresponds, realizes the integration to electronic file, has improved electronic file's integrality and security.

Description

Electronic file processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic information technologies, and in particular, to a method and an apparatus for processing an electronic file, a storage medium, and an electronic device.
Background
With the rapid development of electronic information technology, electronic archives are widely used in various fields, and the archiving of electronic archives is an important link for long-term storage of electronic archives. At present, attachments are generally packaged into attachment file packages, the attachment file packages, archive information and attachment information are respectively stored in different servers, and corresponding relationships are established for the archive information, the attachment information and the attachment file packages in advance. So that the user can search the corresponding attachment file packet according to the corresponding relationship when looking up the archive information or the attachment information. Because the archive information, the attachment information and the attachment file packet are stored in a scattered manner, the security and the integrity of the attachment are difficult to ensure, and if part of the archive information or the attachment information is lost, the corresponding attachment file packet cannot be found.
Disclosure of Invention
The disclosure aims to provide a processing method, a processing device, a storage medium and an electronic device of an electronic file, which are used for improving the integrity and the security of the electronic file.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing an electronic archive, the method including:
acquiring target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database;
acquiring a target attachment indicated by a first storage path from a file storage server according to the first storage path included by the target attachment information, wherein the target archive information includes a designated field in the target attachment;
generating an electronic archive file according to the target archive information and the target attachment information;
generating an electronic file compressed package and compressed package information corresponding to the electronic file compressed package according to the electronic file and the target attachment;
and storing the electronic archive compressed package to an archiving server, and storing the compressed package information to an archiving database.
Optionally, the obtaining target archive information to be archived and target attachment information corresponding to the target archive information from the electronic archive database includes:
determining an electronic archive list to be archived, in which at least one archive information to be archived is stored, in the electronic archive database;
acquiring the target archive information from the electronic archive list to be archived;
and searching the target attachment information from the electronic archive database, wherein the target attachment information comprises an identifier of the target archive information.
Optionally, before generating an electronic archive file according to the target archive information and the target attachment information, the method further includes:
generating an accessory check code corresponding to the target accessory according to a first preset algorithm;
generating an electronic archive file according to the target archive information and the target attachment information, comprising:
and generating the electronic archive file according to the target archive information, the target attachment information and the attachment check code.
Optionally, the generating an electronic archive compressed package and compressed package information corresponding to the electronic archive compressed package according to the electronic archive file and the target attachment includes:
generating the electronic archive compression package according to the electronic archive file and the target attachment;
generating a compressed package check code corresponding to the electronic file compressed package according to a second preset algorithm;
and generating the compressed packet information according to the electronic file compressed packet and the compressed packet check code.
Optionally, the generating an electronic archive compressed package and compressed package information corresponding to the electronic archive compressed package according to the electronic archive file and the target attachment includes:
generating the electronic archive compression package according to the electronic archive file and the target attachment;
determining a second storage path according to the electronic archive file;
generating the compressed packet information according to the electronic archive compressed packet and the second storage path;
the storing the electronic archive compressed package to an archive server includes:
and storing the electronic archive compressed packet to the archiving server according to the second storage path.
Optionally, the generating the electronic archive compression package according to the electronic archive file and the target attachment includes:
generating a storage directory according to the first storage path included in the electronic archive file;
and generating the electronic archive compression package according to the electronic archive file, the target attachment and the storage directory, wherein the target attachment is stored in the electronic archive compression package according to the storage directory.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for processing an electronic archive, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database;
a second obtaining module, configured to obtain, according to a first storage path included in the target attachment information, a target attachment indicated by the first storage path from a file storage server, where the target archive information includes a specified field in the target attachment;
the first generation module is used for generating an electronic archive file according to the target archive information and the target attachment information;
the second generation module is used for generating an electronic archive compressed package and compressed package information corresponding to the electronic archive compressed package according to the electronic archive file and the target attachment;
and the storage module is used for storing the electronic archive compressed package to an archiving server and storing the compressed package information to an archiving database.
Optionally, the first obtaining module includes:
the first determining submodule is used for determining an electronic archive list to be archived, in which at least one archive information to be archived is stored, in the electronic archive database;
the acquisition submodule is used for acquiring the target archive information from the electronic archive list to be archived;
and the searching sub-module is used for searching the target attachment information from the electronic archive database, wherein the target attachment information comprises the identification of the target archive information.
Optionally, the first generating module is further configured to:
generating an attachment check code corresponding to the target attachment according to a first preset algorithm before generating an electronic archive file according to the target archive information and the target attachment information;
and generating the electronic archive file according to the target archive information, the target attachment information and the attachment check code.
Optionally, the second generating module includes:
the first generation submodule is used for generating the electronic archive compression package according to the electronic archive file and the target attachment;
the second generation submodule is used for generating a compressed packet check code corresponding to the electronic file compressed packet according to a second preset algorithm;
and the third generation submodule is used for generating the compressed packet information according to the electronic file compressed packet and the compressed packet check code.
Optionally, the first generation submodule is further configured to: generating the electronic archive compression package according to the electronic archive file and the target attachment;
the second generating module further comprises:
the second determining submodule is used for determining a second storage path according to the electronic archive file;
the third generation submodule is further configured to: generating the compressed packet information according to the electronic archive compressed packet and the second storage path;
the storage module is further configured to: and storing the electronic archive compressed packet to the archiving server according to the second storage path.
Optionally, the first generation submodule is further configured to:
generating a storage directory according to the first storage path included in the electronic archive file;
and generating the electronic archive compression package according to the electronic archive file, the target attachment and the storage directory, wherein the target attachment is stored in the electronic archive compression package according to the storage directory.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the method of any one of the first aspects of the embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of the first aspect of the embodiments of the present disclosure.
According to the technical scheme, the method comprises the steps of firstly obtaining target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database, obtaining a target attachment indicated by a first storage path from a file storage server according to the first storage path included by the target attachment information, enabling the target archive information to include a designated field in the target attachment, then generating an electronic archive file according to the target archive information and the target attachment information, generating a compressed package information corresponding to an electronic archive compressed package and the electronic archive compressed package according to the electronic archive file and the target attachment, finally storing the electronic archive compressed package to the archive server, and storing the compressed package information to an archive database. The target file is acquired according to the target file information and the corresponding target attachment information, so that an electronic file compressed package capable of completely reflecting the electronic file and corresponding compressed package information are generated and filed, integration of the electronic file is realized, and the integrity and the safety of the electronic file are improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow chart illustrating a method of processing an electronic archive in accordance with an exemplary embodiment;
FIG. 2 is a block diagram of an archive system according to the embodiment of FIG. 1;
FIG. 3 is a flow chart illustrating another method of processing an electronic archive in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating another method of processing an electronic archive in accordance with an exemplary embodiment;
FIG. 5 is a flow chart illustrating another method of processing an electronic archive in accordance with an exemplary embodiment;
FIG. 6 is a flow chart illustrating another method of processing an electronic archive in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a processing device of an electronic archive in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating another electronic archive processing device in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating another electronic archive processing device in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating another electronic archive processing device in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating a method of processing an electronic archive, as shown in FIG. 1, in accordance with an exemplary embodiment, the method comprising:
step 101, obtaining target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database.
For example, an application scenario of the present disclosure may be an archive system for performing processing operations of electronic archives, and the archive system may include an electronic archive database, a file storage server, an archive database, and the like, and the structure of the archive system is shown in fig. 2. The archive system may scan the electronic archive database at regular time (for example, at a certain time point every day) to traverse all the status tags of the archive information included in the electronic archive database, so as to find the status tag as target archive information to be archived and obtain target attachment information corresponding to the target archive information, where the target archive information may be one or more, and this disclosure does not specifically limit this. An electronic archive database is understood to be a database for storing a large amount of archive information, and attachment information corresponding to each archive information. The status tag of the target archive information may be used to mark the status of the target archive information, and may include an archived, to-be-archived, modified, and other statuses, for example, if the value of the status tag of a certain archive information is 0, indicating that the archive information is in the to-be-archived status, the archive information may be used as the target archive information, and when the value of the status tag of the archive information is other than 0, indicating that the archive information is not in the to-be-archived status.
It should be noted that the archive information may be understood as a summary of the attachment, and may describe information included in the attachment as a whole, and the attachment information may include information such as a storage path, a file type, a file name, and a file size of the attachment. The manner of obtaining the target attachment information corresponding to the target archive information may be that the corresponding relationship between the archive information and the attachment information is stored in a preset table in advance, and after obtaining the target archive information, the archive system may obtain the target attachment information having the corresponding relationship with the target archive information by searching the preset table. Or storing the identification (e.g. number) of the target archive information in a specified field in the target attachment information, and after the target archive information is acquired, searching the electronic archive database for the target attachment information including the identification of the target archive information.
102, according to the first storage path included in the target attachment information, acquiring the target attachment indicated by the first storage path from the file storage server, wherein the target archive information includes a specified field in the target attachment.
For example, after the target attachment information is obtained, the target attachment information may be parsed, and a first storage path included in the target attachment information is determined, where the first storage path is used to indicate a storage location of a target attachment corresponding to the target attachment information in the file storage server. The target attachment indicated by the first storage path can be obtained from the file storage server according to the first storage path. A file storage server may be understood as a server for storing target attachments. The target profile information may include a designated field in the target attachment, the designated field may be preset or may be set according to a specific requirement of a user, and the target profile information may be understood as a summary of the target attachment and may describe information included in the target attachment as a whole. The target attachment information may also include information such as the file type, file name, file size, etc. of the target attachment.
Specifically, for example, the target archive information is electronic invoice information, the target attachment is an electronic invoice file, and the target attachment information is electronic invoice attachment information, where the electronic invoice information may include important information (e.g., amount of money, invoicing party, etc.) in the electronic invoice file, the electronic invoice file may be a file in a preset format (e.g., pdf format), and the electronic invoice attachment information may include information such as a file type, a file name, a file size, and a first storage path of the electronic invoice file. After the electronic invoice accessory information is acquired, a first storage path can be extracted from the electronic invoice accessory information, and an electronic invoice file is acquired from a file storage server according to the first storage path.
And 103, generating an electronic archive file according to the target archive information and the target attachment information.
And 104, generating an electronic file compressed package and compressed package information corresponding to the electronic file compressed package according to the electronic file and the target attachment.
And 105, storing the electronic archive compressed package to an archiving server, and storing the compressed package information to an archiving database.
For example, the archive system may generate an electronic archive file in a preset format according to the acquired target archive information and the target attachment information, where the preset format may be, for example, an xml format. Then, the electronic archive file including the target archive information and the target attachment can be packaged to generate an electronic archive compression package and compression package information corresponding to the electronic archive compression package. The compressed packet information may include information such as a compressed packet name, a compressed packet size, a compressed packet storage path, and a compressed packet check code of the electronic archive compressed packet. Further, the compressed electronic archive package may be stored in an archive server, and the compressed package information may be stored in an archive database, where the archive server may be understood as a server for storing the compressed electronic archive package, and the archive database may be understood as a database for storing the compressed package information.
Therefore, the corresponding relations between the target attachment and the target file information and between the target attachment and the target attachment information do not need to be established in advance, and the electronic file can be filed only by establishing one corresponding relation between the electronic file compressed package and the compressed package information. And the target archive information, the target attachment information and the target attachment are stored in one electronic archive compression package, so that the electronic archive compression package can completely reflect the electronic archive, the integrity of the electronic archive is improved, the risk of losing or tampering the target attachment is reduced, and the safety of the electronic archive is improved.
Specifically, for example, the target archive information is student certificate information, the target attachment is a student certificate picture, and the target attachment information is student certificate attachment information, the student certificate information may include important information (such as name and school number) in a student certificate, the student certificate picture may be a picture in a preset format (such as a JPGE format), and the student certificate attachment information may include information such as a file type, a file name, and a first storage path of the student certificate picture. Can be according to student's card information and student's card annex information, generate the electronic archive file of xml format, later, can pack electronic archive file and student's card picture, generate the compression package information that electronic archive compression package and electronic archive compression package correspond. And finally, the electronic archive compressed package can be stored in an archive server, and the compressed package information is stored in an archive database.
In summary, according to the present disclosure, first, target archive information to be archived and target attachment information corresponding to the target archive information are obtained from an electronic archive database, and according to a first storage path included in the target attachment information, a target attachment indicated by the first storage path is obtained from a file storage server, where the target archive information includes a specified field in the target attachment, then, according to the target archive information and the target attachment information, an electronic archive file is generated, and according to the electronic archive file and the target attachment, a compressed package information corresponding to an electronic archive compressed package and the electronic archive compressed package is generated, and finally, the electronic archive compressed package is stored in an archive server, and the compressed package information is stored in an archive database. The target file is acquired according to the target file information and the corresponding target attachment information, so that an electronic file compressed package capable of completely reflecting the electronic file and corresponding compressed package information are generated and filed, integration of the electronic file is realized, and the integrity and the safety of the electronic file are improved.
Fig. 3 is a flow chart illustrating another method for processing an electronic archive according to an exemplary embodiment, and as shown in fig. 3, step 101 may be implemented by:
in step 1011, a list of electronic archives to be archived is determined, wherein at least one archive information to be archived is stored in the electronic archive database.
Step 1012, obtain the target archive information from the list of electronic archives to be archived.
Step 1013, searching target attachment information from the electronic archive database, wherein the target attachment information includes an identifier of the target archive information.
For example, the archive system may scan the electronic archive database at regular time to traverse the electronic archive database, and obtain an electronic archive list to be archived according to the status tags of the archive information, where the electronic archive list to be archived may store at least one status tag as the archive information to be archived. And then, acquiring target archive information from the electronic list to be archived, wherein the target archive information may be one or more, and the disclosure does not specifically limit this. Further, target attachment information including an identification of the target profile information may be looked up from the electronic profile database. The identifier of the target profile information may be understood as information capable of uniquely identifying the target profile information, and may be, for example, a number of the target profile information.
Specifically, the example is that the identifier of the target file information is the identifier of the target file information, the identifier of the target file information is 7, and the identifier of the target file information is stored in the first field of the target attachment information, where the information stored in the first field of the target attachment information may be "7", and after the file system acquires the target file information with the identifier of "7", the file system may search for the attachment information with the information of "7" stored in the first field, and determine the attachment information as the target attachment information.
FIG. 4 is a flow chart illustrating another method for processing an electronic archive, according to an exemplary embodiment, as shown in FIG. 4, before step 103, the method may further include:
and 106, generating an accessory check code corresponding to the target accessory according to a first preset algorithm.
Accordingly, one implementation of step 103 may be:
and generating an electronic archive file according to the target archive information, the target attachment information and the attachment check code.
For example, to ensure that the target attachment is not tampered, before generating the electronic archive file, the attachment check code corresponding to the target attachment may be generated according to a first preset algorithm, and then the target archive information, the target attachment information, and the attachment check code may be packaged to generate the electronic archive file, that is, the electronic archive file may include the attachment check code of the target attachment, which may be used to check whether the target attachment is tampered. The first preset Algorithm may be, for example, an MD5 (english: Message-Digest Algorithm, chinese: information Digest Algorithm) Algorithm, Base64, SHA (english: Secure Hash Algorithm, chinese: Secure Hash Algorithm) Algorithm, and the like, which is not specifically limited in this disclosure, and for example, the target accessory may be used as an input of the MD5 Algorithm to obtain an accessory check code output by the MD5 Algorithm. Further, after the electronic archive file is archived, the archive system may periodically (e.g., weekly) check whether the target attachment is modified according to the attachment check code corresponding to the target attachment, so as to ensure the integrity of the target attachment.
FIG. 5 is a flow chart illustrating another method of processing an electronic archive, according to an exemplary embodiment, as shown in FIG. 5, step 104 may be implemented by:
and 1041, generating an electronic file compressed package according to the electronic file and the target attachment.
And 1042, generating a compressed package check code corresponding to the electronic file compressed package according to a second preset algorithm.
And 1043, generating compressed package information according to the electronic file compressed package and the compressed package check code.
For example, after generating an electronic archive file based on the target archive information and the target attachment information, the archive system may package and compress the electronic archive file and the target attachment to generate an electronic archive compression package. And then, generating a compressed packet check code corresponding to the electronic file compressed packet according to a second preset algorithm, wherein the second preset algorithm may be, for example, an MD5 algorithm, a Base64 algorithm, an SHA algorithm, and the like, and the second preset algorithm may be the same as or different from the first preset algorithm, which is not specifically limited by the disclosure, and for example, the electronic file compressed packet may be used as an input of an MD5 algorithm to obtain the compressed packet check code output by the MD5 algorithm. Further, information of the compressed electronic file package (for example, a compressed package name, a compressed package size, etc.) may be obtained, and the information of the compressed electronic file package and the compressed package check code may be packaged and compressed, so as to generate compressed package information, where the compressed package information may include the compressed package name, the compressed package size, the compressed package check code, etc. of the compressed electronic file package.
Further, after the electronic file compressed package is stored in the archive server, the archive system may periodically (e.g., weekly) check whether the electronic file compressed package is modified according to the compressed package check code corresponding to the electronic file compressed package, so as to ensure the integrity of the electronic file compressed package.
FIG. 6 is a flow chart illustrating another method of processing an electronic archive, according to an exemplary embodiment, as shown in FIG. 6, step 104 may also be implemented by:
and step 1044, generating an electronic file compressed package according to the electronic file and the target attachment.
Step 1045, determining a second storage path according to the electronic archive file.
And 1046, generating a compressed packet according to the electronic file compressed packet and the second storage path.
Accordingly, one implementation of step 105 may be:
and storing the electronic file compressed package to an archiving server according to a second storage path.
For example, after generating the electronic archive file according to the target archive information and the target attachment information, the electronic archive file and the target attachment may be packed and compressed to generate an electronic archive compression package. The second storage path may then be determined based on the file type of the target attachment included in the attachment information in the electronic archive file. That is, target attachments of different file types may be stored in different storage locations in the archive server, and the electronic archive compressed package may be stored in the archive server according to the second storage path, where the storage path of the electronic archive compressed package on the archive server is the second storage path. Further, information (for example, a compressed package name, a compressed package size, and the like) of the compressed package of the electronic archive may be obtained, and the information of the compressed package of the electronic archive and the second storage path may be packaged and compressed, so as to generate compressed package information, where the compressed package information may include the compressed package name, the compressed package size, the second storage path, and the like of the compressed package of the electronic archive.
Specifically, for example, the file type of the target attachment is "electronic invoice for value-added tax in beijing city", first, the second storage path may be determined to be "electronic invoice \ electronic invoice for value-added tax in beijing city" according to the "electronic invoice \ electronic invoice for value-added tax in beijing city", and then, the target attachment of the file type "electronic invoice for value-added tax in beijing city" may be stored to the archive server according to the storage path of "electronic invoice \ electronic invoice for value-added tax in beijing city".
In an application scenario, one implementation manner of steps 1041 and 1044 may be:
and generating a storage directory according to the first storage path included in the electronic archive file.
And generating an electronic file compressed package according to the electronic file, the target attachment and the storage directory, wherein the target attachment is stored in the electronic file compressed package according to the storage directory.
For example, after generating the electronic archive file according to the target archive information and the target attachment information, a storage directory may be generated according to a first storage path included in the electronic archive file, where each directory information included in the storage directory and each path information included in the first storage path may be in a one-to-one correspondence relationship. Further, the electronic archive file, the target attachment and the storage directory may be packaged and compressed to generate an electronic archive compression package, wherein the target attachment may be stored in the electronic archive compression package according to the storage directory.
Specifically, for example, the first storage path is "2020 \7 \30 days", a storage directory of "2020 \7 \30 days" may be generated according to the first storage path, and the target accessory is stored in the electronic archive compression package according to the storage directory of "2020 \7 \30 days".
In summary, according to the present disclosure, first, target archive information to be archived and target attachment information corresponding to the target archive information are obtained from an electronic archive database, and according to a first storage path included in the target attachment information, a target attachment indicated by the first storage path is obtained from a file storage server, where the target archive information includes a specified field in the target attachment, then, according to the target archive information and the target attachment information, an electronic archive file is generated, and according to the electronic archive file and the target attachment, a compressed package information corresponding to an electronic archive compressed package and the electronic archive compressed package is generated, and finally, the electronic archive compressed package is stored in an archive server, and the compressed package information is stored in an archive database. The target file is acquired according to the target file information and the corresponding target attachment information, so that an electronic file compressed package capable of completely reflecting the electronic file and corresponding compressed package information are generated and filed, integration of the electronic file is realized, and the integrity and the safety of the electronic file are improved.
Fig. 7 is a block diagram illustrating an apparatus for processing an electronic archive, according to an exemplary embodiment, the apparatus 200 comprising, as shown in fig. 7:
the first obtaining module 201 is configured to obtain target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database.
A second obtaining module 202, configured to obtain, according to the first storage path included in the target attachment information, a target attachment indicated by the first storage path from the file storage server, where the target archive information includes a specified field in the target attachment.
And the first generation module 203 is used for generating the electronic archive file according to the target archive information and the target attachment information.
The second generating module 204 is configured to generate an electronic archive compression package and compression package information corresponding to the electronic archive compression package according to the electronic archive file and the target attachment.
The storage module 205 is configured to store the electronic archive compressed package to the archive server, and store the compressed package information to the archive database.
Fig. 8 is a block diagram illustrating another processing apparatus for an electronic archive according to an exemplary embodiment, and as shown in fig. 8, the first obtaining module 201 includes:
the first determining sub-module 2011 is configured to determine an electronic archive list to be archived, in which at least one archive information to be archived is stored in the electronic archive database.
The obtaining sub-module 2012 is configured to obtain target archive information from the electronic archive list to be archived.
And the searching submodule 2013 is used for searching the target attachment information from the electronic archive database, wherein the target attachment information comprises an identifier of the target archive information.
In an application scenario, the first generating module 203 is further configured to:
and generating an attachment check code corresponding to the target attachment according to a first preset algorithm before generating the electronic archive file according to the target archive information and the target attachment information.
And generating an electronic archive file according to the target archive information, the target attachment information and the attachment check code.
Fig. 9 is a block diagram illustrating another electronic archive processing apparatus according to an exemplary embodiment, and as shown in fig. 9, the second generation module 204 includes:
the first generating sub-module 2041 is configured to generate an electronic archive compression package according to the electronic archive file and the target attachment.
The second generating submodule 2042 is configured to generate a compressed packet check code corresponding to the compressed packet of the electronic archive according to a second preset algorithm.
And the third generating sub-module 2043 is configured to generate compressed packet information according to the compressed electronic file packet and the compressed packet check code.
Fig. 10 is a block diagram illustrating another processing device of an electronic archive according to an exemplary embodiment, as shown in fig. 10, the first generation submodule 2041 is further configured to: and generating an electronic file compressed package according to the electronic file and the target attachment.
The second generation module 204 further includes:
the second determining submodule 2044 is configured to determine a second storage path according to the electronic archive file.
The third generation submodule 2043 is also used to: and generating compressed packet information according to the electronic archive compressed packet and the second storage path.
The storage module 205 is further configured to: and storing the electronic file compressed package to an archiving server according to a second storage path.
In an application scenario, the first generation submodule 2041 is further configured to:
and generating a storage directory according to the first storage path included in the electronic archive file.
And generating an electronic file compressed package according to the electronic file, the target attachment and the storage directory, wherein the target attachment is stored in the electronic file compressed package according to the storage directory.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, according to the present disclosure, first, target archive information to be archived and target attachment information corresponding to the target archive information are obtained from an electronic archive database, and according to a first storage path included in the target attachment information, a target attachment indicated by the first storage path is obtained from a file storage server, where the target archive information includes a specified field in the target attachment, then, according to the target archive information and the target attachment information, an electronic archive file is generated, and according to the electronic archive file and the target attachment, a compressed package information corresponding to an electronic archive compressed package and the electronic archive compressed package is generated, and finally, the electronic archive compressed package is stored in an archive server, and the compressed package information is stored in an archive database. The target file is acquired according to the target file information and the corresponding target attachment information, so that an electronic file compressed package capable of completely reflecting the electronic file and corresponding compressed package information are generated and filed, integration of the electronic file is realized, and the integrity and the safety of the electronic file are improved.
Fig. 11 is a block diagram illustrating an electronic device 1100 in accordance with an example embodiment. As shown in fig. 11, the electronic device 1100 may include: a processor 1101, a memory 1102. The electronic device 1100 may also include one or more of a multimedia component 1103, an input/output (I/O) interface 1104, and a communications component 1105.
The processor 1101 is configured to control the overall operation of the electronic device 1100, so as to complete all or part of the steps in the above-mentioned method for processing an electronic file. The memory 1102 is used to store various types of data to support operation at the electronic device 1100, such as instructions for any application or method operating on the electronic device 1100, as well as application-related data, such as contact data, messaging, pictures, audio, video, and so forth. The Memory 1102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 1103 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 1102 or transmitted through the communication component 1105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 1104 provides an interface between the processor 1101 and other interface modules, such as a keyboard, mouse, buttons, and the like. These buttons may be virtual buttons or physical buttons. The communication component 1105 provides for wired or wireless communication between the electronic device 1100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 1105 can therefore include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the above-mentioned Processing method of the electronic file.
In another exemplary embodiment, a computer-readable storage medium is also provided, which comprises program instructions, which when executed by a processor, implement the steps of the above-described method of processing an electronic archive. For example, the computer readable storage medium may be the memory 1102 comprising program instructions executable by the processor 1101 of the electronic device 1100 to perform the processing method of the electronic archive described above.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A method for processing an electronic file, the method comprising:
acquiring target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database;
acquiring a target attachment indicated by a first storage path from a file storage server according to the first storage path included by the target attachment information, wherein the target archive information includes a designated field in the target attachment;
generating an electronic archive file according to the target archive information and the target attachment information;
generating an electronic file compressed package and compressed package information corresponding to the electronic file compressed package according to the electronic file and the target attachment;
and storing the electronic archive compressed package to an archiving server, and storing the compressed package information to an archiving database.
2. The method according to claim 1, wherein the obtaining target archive information to be archived from an electronic archive database and target attachment information corresponding to the target archive information comprises:
determining an electronic archive list to be archived, in which at least one archive information to be archived is stored, in the electronic archive database;
acquiring the target archive information from the electronic archive list to be archived;
and searching the target attachment information from the electronic archive database, wherein the target attachment information comprises an identifier of the target archive information.
3. The method of claim 1, wherein prior to said generating an electronic archive file based on said target archive information and said target attachment information, said method further comprises:
generating an accessory check code corresponding to the target accessory according to a first preset algorithm;
generating an electronic archive file according to the target archive information and the target attachment information, comprising:
and generating the electronic archive file according to the target archive information, the target attachment information and the attachment check code.
4. The method according to claim 1, wherein the generating an electronic archive compression package and compression package information corresponding to the electronic archive compression package according to the electronic archive file and the target attachment comprises:
generating the electronic archive compression package according to the electronic archive file and the target attachment;
generating a compressed package check code corresponding to the electronic file compressed package according to a second preset algorithm;
and generating the compressed packet information according to the electronic file compressed packet and the compressed packet check code.
5. The method according to claim 1, wherein the generating an electronic archive compression package and compression package information corresponding to the electronic archive compression package according to the electronic archive file and the target attachment comprises:
generating the electronic archive compression package according to the electronic archive file and the target attachment;
determining a second storage path according to the electronic archive file;
generating the compressed packet information according to the electronic archive compressed packet and the second storage path;
the storing the electronic archive compressed package to an archive server includes:
and storing the electronic archive compressed packet to the archiving server according to the second storage path.
6. The method according to claim 4 or 5, wherein said generating the electronic archive compression package from the electronic archive file and the target attachment comprises:
generating a storage directory according to the first storage path included in the electronic archive file;
and generating the electronic archive compression package according to the electronic archive file, the target attachment and the storage directory, wherein the target attachment is stored in the electronic archive compression package according to the storage directory.
7. An apparatus for processing an electronic file, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring target archive information to be archived and target attachment information corresponding to the target archive information from an electronic archive database;
a second obtaining module, configured to obtain, according to a first storage path included in the target attachment information, a target attachment indicated by the first storage path from a file storage server, where the target archive information includes a specified field in the target attachment;
the first generation module is used for generating an electronic archive file according to the target archive information and the target attachment information;
the second generation module is used for generating an electronic archive compressed package and compressed package information corresponding to the electronic archive compressed package according to the electronic archive file and the target attachment;
and the storage module is used for storing the electronic archive compressed package to an archiving server and storing the compressed package information to an archiving database.
8. The apparatus of claim 7, wherein the first obtaining module comprises:
the sub-module is determined and used for determining an electronic archive list to be archived, which stores at least one archive information to be archived, in the electronic archive database;
the acquisition submodule is used for acquiring the target archive information from the electronic archive list to be archived;
and the searching sub-module is used for searching the target attachment information from the electronic archive database, wherein the target attachment information comprises the identification of the target archive information.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 6.
CN202011592146.1A 2020-12-29 2020-12-29 Electronic file processing method and device, storage medium and electronic equipment Pending CN112632009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011592146.1A CN112632009A (en) 2020-12-29 2020-12-29 Electronic file processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011592146.1A CN112632009A (en) 2020-12-29 2020-12-29 Electronic file processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112632009A true CN112632009A (en) 2021-04-09

Family

ID=75286080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011592146.1A Pending CN112632009A (en) 2020-12-29 2020-12-29 Electronic file processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112632009A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743896A (en) * 2021-08-30 2021-12-03 远光软件股份有限公司 Full-service chain archiving method, computer device and computer readable storage medium
CN116150129A (en) * 2023-04-19 2023-05-23 国家海洋局北海环境监测中心 Sea-entry sewage outlet data reorganization evaluation method
CN117112497A (en) * 2023-10-17 2023-11-24 湖南云档信息科技有限公司 File data storage method, system and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276883A1 (en) * 2006-05-24 2007-11-29 International Business Machines Corporation Apparatus, system, and method for pattern-based archiving of business events
CN101650790A (en) * 2008-08-12 2010-02-17 英业达股份有限公司 System and method for managing integrated travel event
US8832365B1 (en) * 2012-04-20 2014-09-09 Kip Cr P1 Lp System, method and computer program product for a self-describing tape that maintains metadata of a non-tape file system
CN106302751A (en) * 2016-08-17 2017-01-04 中国联合网络通信集团有限公司 The archiving method of electronic record, interface server and filing system
CN106339362A (en) * 2016-08-31 2017-01-18 同方鼎欣科技股份有限公司 Large file encapsulation and analytical check method and system for archival information package
CN110716895A (en) * 2019-09-17 2020-01-21 平安科技(深圳)有限公司 Target data archiving method and device, computer equipment and medium
CN110737629A (en) * 2019-08-30 2020-01-31 华迪计算机集团有限公司 method and system for archiving electronic files
CN111143281A (en) * 2019-12-31 2020-05-12 精英数智科技股份有限公司 File management method, device, system and medium
CN112052749A (en) * 2020-08-20 2020-12-08 中国建设银行股份有限公司 Archive filing method and device, electronic equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276883A1 (en) * 2006-05-24 2007-11-29 International Business Machines Corporation Apparatus, system, and method for pattern-based archiving of business events
CN101650790A (en) * 2008-08-12 2010-02-17 英业达股份有限公司 System and method for managing integrated travel event
US8832365B1 (en) * 2012-04-20 2014-09-09 Kip Cr P1 Lp System, method and computer program product for a self-describing tape that maintains metadata of a non-tape file system
CN106302751A (en) * 2016-08-17 2017-01-04 中国联合网络通信集团有限公司 The archiving method of electronic record, interface server and filing system
CN106339362A (en) * 2016-08-31 2017-01-18 同方鼎欣科技股份有限公司 Large file encapsulation and analytical check method and system for archival information package
CN110737629A (en) * 2019-08-30 2020-01-31 华迪计算机集团有限公司 method and system for archiving electronic files
CN110716895A (en) * 2019-09-17 2020-01-21 平安科技(深圳)有限公司 Target data archiving method and device, computer equipment and medium
CN111143281A (en) * 2019-12-31 2020-05-12 精英数智科技股份有限公司 File management method, device, system and medium
CN112052749A (en) * 2020-08-20 2020-12-08 中国建设银行股份有限公司 Archive filing method and device, electronic equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743896A (en) * 2021-08-30 2021-12-03 远光软件股份有限公司 Full-service chain archiving method, computer device and computer readable storage medium
CN116150129A (en) * 2023-04-19 2023-05-23 国家海洋局北海环境监测中心 Sea-entry sewage outlet data reorganization evaluation method
CN117112497A (en) * 2023-10-17 2023-11-24 湖南云档信息科技有限公司 File data storage method, system and storage medium
CN117112497B (en) * 2023-10-17 2024-01-12 湖南云档信息科技有限公司 File data storage method, system and storage medium

Similar Documents

Publication Publication Date Title
CN112632009A (en) Electronic file processing method and device, storage medium and electronic equipment
US11640474B2 (en) Method and apparatus for operating database
CN111163182B (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN110879903A (en) Evidence storage method, evidence verification method, evidence storage device, evidence verification device, evidence storage equipment and evidence verification medium
CN104461491A (en) Running method and system of Hybrid components
CN108647317B (en) Incremental file generation method and device, storage medium and electronic equipment
CN111177801B (en) Signature method and device of electronic document, storage medium and electronic equipment
CN111651468A (en) Data updating method and device based on SQL analysis, electronic equipment and storage medium
CN106664308B (en) Device authentication prior to enrollment
CN111090582A (en) Error code positioning method and device, storage medium and electronic equipment
CN111259217A (en) Invoice archiving method and device and computer readable storage medium
CN114443159A (en) Plug-in processing device and method, computer equipment and storage medium
CN112087475A (en) Message pushing method and device for cloud platform component application and message server
CN110545542A (en) Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment
CN111757282B (en) Short message sending method and device
CN110727576B (en) Web page testing method, device, equipment and storage medium
CN110719590B (en) One-key login method, device, equipment and storage medium based on mobile phone number
CN109635558B (en) Access control method, device and system
CN108052842B (en) Signature data storage and verification method and device
CN111199390A (en) Invoice reimbursement method and device, storage medium and electronic equipment
CN111083145A (en) Message sending method and device and electronic equipment
CN113806815B (en) File signing method and system
CN111460436B (en) Unstructured data operation method and system based on blockchain
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN113283891A (en) Information processing method and device and electronic equipment

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