CN117851353A - Method and system for realizing asynchronous electronic archive archiving - Google Patents

Method and system for realizing asynchronous electronic archive archiving Download PDF

Info

Publication number
CN117851353A
CN117851353A CN202311744930.3A CN202311744930A CN117851353A CN 117851353 A CN117851353 A CN 117851353A CN 202311744930 A CN202311744930 A CN 202311744930A CN 117851353 A CN117851353 A CN 117851353A
Authority
CN
China
Prior art keywords
data
archive
archiving
credential
source
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
CN202311744930.3A
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.)
Hangxin Yunxiang Technology Co ltd
Original Assignee
Hangxin Yunxiang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangxin Yunxiang Technology Co ltd filed Critical Hangxin Yunxiang Technology Co ltd
Priority to CN202311744930.3A priority Critical patent/CN117851353A/en
Publication of CN117851353A publication Critical patent/CN117851353A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and a system for realizing asynchronous electronic archive, comprising the following steps: receiving a request for archiving an electronic archive; acquiring the credential data according to the request, and if the credential data source is a single system, calling a single source application archiving interface based on the fegin interface to acquire single source archiving data; assembling the single-source archive data and the credential data according to a set message structure to obtain first archive data; if the source of the credential data is a non-single system, calling a non-single source application archiving interface based on the fegin interface to acquire non-single source archiving data and asynchronous archiving data; and assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data. The database performance is effectively improved by the data archiving and the data cleaning of different enterprise business systems.

Description

Method and system for realizing asynchronous electronic archive archiving
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a system for realizing asynchronous electronic archive.
Background
In the current enterprise information systems, a great amount of historical transaction data is accumulated in some key business systems along with long-time accumulation, and the historical data makes the systems become more and more huge and more complex in maintenance.
Disclosure of Invention
In view of the above technical problems, the present invention provides a method for implementing asynchronous electronic archive, including:
receiving a request for archiving an electronic archive;
acquiring credential data according to the request, and if the credential data source is a single system, calling a single source application archiving interface based on a fegin interface to acquire single source archiving data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; returning the first archive data corresponding to the request through a callback fegin interface;
if the credential data source is a non-single system, calling a non-single source application archiving interface based on a fegin interface to acquire non-single source archiving data and asynchronous archiving data; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; returning second archive data corresponding to the request through a callback fegin interface;
and backing up the first archive data and the second archive data to a designated storage space to finish archiving the electronic archive.
Further, obtaining credential data according to the request includes:
and acquiring corresponding credential data according to the request id.
Further, assembling the single-source archive data and the credential data according to a predetermined message structure to obtain first archive data, including:
and assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
Further, the method further comprises the following steps: after obtaining temporary data, storing the temporary data in a cache;
and if the storage time of the temporary data exceeds a preset value, cleaning the temporary data.
Further, after backing up the first archive data and the second archive data to the designated storage space, the method further includes:
and accessing the designated storage space to obtain the electronic archive data.
The invention also provides a system for realizing asynchronous electronic archive, which comprises:
the request module is used for receiving a request for archiving the electronic file;
the first archive data acquisition module is used for acquiring the credential data according to the request, and if the source of the credential data is a single system, calling a single source application archive interface based on a fegin interface to acquire single source archive data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; returning the first archive data corresponding to the request through a callback fegin interface;
the second archive data acquisition module is used for calling a non-single source application archive interface based on a fegin interface to acquire non-single source archive data and asynchronous archive data if the credential data source is a non-single system; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; returning second archive data corresponding to the request through a callback fegin interface;
and the archiving module is used for backing up the first archiving data and the second archiving data to the appointed storage space to complete archiving of the electronic archive.
Further, the first archive data acquisition module includes:
and the credential data acquisition sub-module is used for acquiring corresponding credential data according to the request id.
Further, the first archive data acquisition module includes:
and the message assembly sub-module is used for assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
Further, the method further comprises the following steps:
the buffer memory sub-module is used for storing the temporary data in a buffer memory after the temporary data are obtained;
and the temporary data cleaning sub-module is used for cleaning the temporary data if the storage time of the temporary data exceeds a preset value.
Further, the method further comprises the following steps:
and the access module is used for obtaining the electronic archive data by accessing the appointed storage space.
According to the method and the system for realizing asynchronous electronic archive, the business systems of different enterprises can be realized through the Fegin interface, and the database performance can be effectively improved through the implementation of data archiving and data cleaning.
Drawings
FIG. 1 is a flow chart of a method for implementing asynchronous electronic archive in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of electronic archive categorization vouchers collecting document data in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system for implementing asynchronous electronic archive in accordance with an embodiment of the present invention.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present invention may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present invention is not limited to the specific embodiments disclosed below.
Example 1
FIG. 1 is a diagram of a method for implementing asynchronous electronic archive in accordance with the present invention, and the method is described in detail below with reference to FIG. 1.
In step S101, a request for archiving an electronic archive is received.
The data filed by the electronic archive referred to in the present invention generally includes data from a plurality of systems of different enterprises. The request includes a request id, which is used as a unique identifier when the request is sent.
Step S102, acquiring credential data according to the request, and if the source of the credential data is a single system, calling a single source application archiving interface based on a fegin interface to acquire single source archiving data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; and returning the first archive data corresponding to the request through a callback fegin interface.
Credential data, typically an issued related document. Such as invoices, borrowed documents, etc. For example, requesting to archive item data for a certain item, a request id for the associated item may be sent, and then associated credential data for the item may be obtained based on the request id. And then, judging whether the source of the credential data is a single system, namely the same system, and if the source of the credential data is the single system, calling a single source application archiving interface based on the fegin interface to acquire single source archiving data. And assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
Step S103, if the credential data source is a non-single system, calling a non-single source application archiving interface based on a fegin interface to obtain non-single source archiving data and asynchronous archiving data; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; and returning the second archive data corresponding to the request through the callback fegin interface.
The source of the credential data is a non-single system, i.e. the credential data exists in multiple systems, such as invoices related to request ids, can exist in financial systems, can also exist in customer management systems (CRM), even in external systems, and at this time, related archive data needs to be acquired across multiple systems, even across enterprise internal systems, and asynchronous archive data needs to be acquired from external systems through asynchronous transmission. Therefore, if the credential data source is a non-single system, calling a non-single source application archiving interface based on the fegin interface to acquire non-single source archiving data and asynchronous archiving data; because the archive data is obtained from a plurality of systems or even an external system, the archive data is inevitably duplicated or not completed, and therefore the archive data is required to be cleaned or combined, and the method specifically comprises the steps of assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, combining the temporary data with the asynchronous archive data to obtain second archive data, and then returning the second archive data corresponding to the request through a callback fegin interface.
And step S104, backing up the first archive data and the second archive data to a designated storage space to finish archiving the electronic archive.
The primary purpose of this step is to store the archived data, which is preferably stored in a separate storage space, such as a re-planned data server, and isolated from the origin server of the archived data. After the archiving and storing are completed, the archived electronic archive data also provides functions of inquiry, downloading and the like, and is convenient for users to review.
Example 2
Taking the flowchart of the electronic archive classification license collection document data of fig. 2 as an example, the method and system for implementing asynchronous electronic archive archiving provided by the invention are further described, and the method and system specifically include the following steps:
1.1 when a single product is used, only one financial system is used, no divergence exists, when an SAAS service interface is called, which financial system needs to be explicitly called, the problem of data volume is solved, an asynchronous method is adopted for requesting, the request id needs to be transmitted as a unique identifier when the request is requested, and if a callback function is a variable, the request parameter needs to be explicitly called.
1.2 obtaining the credential data according to the request parameters, judging whether the credential source is an internal system, and if only the credential data of the internal system is obtained, cycling through the credential list.
1.3 loop through the credential list.
1.4 is really the current internal system call, then the fegin interface mode is used, and the fegin interface is used again in the thread to execute the call application document filing interface.
And 1.5, after the document backstop data is obtained, the fegin interface is recalled and assembled with the certificate data.
1.6, assembling json according to the message structure and standard specification required by the electronic file.
1.7, calling a callback function by using a fegin interface to return the certificate and all data of the bill.
1.8 calling callback function by using the fegin interface to return the certificate and all data of the bill.
1.9 classifying and judging the credential source.
1.10 is called in the current internal system, then the fegin interface mode is used, and the fegin interface is used in the thread to execute the calling application document filing interface.
1.11 assembling the data returned by 1.10 into the certificate data, and since the filing state of the current certificate and the document related to 1.10 inquiry belongs to filing at the moment, the related data does not need to be changed.
1.12, the data is used as temporary data after being assembled and is associated with the asynchronous request ID of 1.13 and stored, the data needs to be managed to a certain extent, and the data which reaches a certain time after overtime is used as garbage data to be cleaned.
1.13 calling a source document archiving interface of a non-current product by using a fegin interface, and providing a request ID and a callback function.
1.14, after acquiring document filing data by using a fegin interface callback function, associating the document filing data with other data in the step 1.12 according to the request ID.
1.15 since the certificates are multiple, when assembling 1.12 and 1.14 data into complete archive data, whether all the archive data of the certificates are obtained completely needs to be considered, and then the following steps are carried out.
1.16 and 1.7 return complete json data.
Example 3
Based on the same inventive concept, the present invention also provides a system 300 for implementing asynchronous electronic archive, as shown in fig. 3, including:
a request module 310, configured to receive a request for archiving an electronic archive;
a first archive data obtaining module 320, configured to obtain credential data according to the request, and if the credential data source is a single system, call a single source application archive interface based on a fegin interface to obtain single source archive data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; returning the first archive data corresponding to the request through a callback fegin interface;
a second archive data obtaining module 330, configured to, if the credential data source is a non-single system, invoke a non-single source application archive interface based on a fegin interface to obtain non-single source archive data and asynchronous archive data; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; returning second archive data corresponding to the request through a callback fegin interface;
and the archiving module 340 is configured to backup the first archiving data and the second archiving data to the designated storage space, thereby completing archiving of the electronic archive.
Further, the first archive data acquisition module includes:
and the credential data acquisition sub-module is used for acquiring corresponding credential data according to the request id.
Further, the first archive data acquisition module includes:
and the message assembly sub-module is used for assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
Further, the method further comprises the following steps:
the buffer memory sub-module is used for storing the temporary data in a buffer memory after the temporary data are obtained;
and the temporary data cleaning sub-module is used for cleaning the temporary data if the storage time of the temporary data exceeds a preset value.
Further, the method further comprises the following steps:
and the access module is used for obtaining the electronic archive data by accessing the appointed storage space.
The method and the system for realizing asynchronous electronic archive archiving provided by the invention can effectively improve the database performance through the implementation of data archiving and data cleaning by using the Fegin interface to realize different enterprise service systems, ensure that core services can not have performance problems and data loss problems caused by long-time data accumulation, and further provide high-quality service experience for users by application.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the specific embodiments of the present invention without departing from the spirit and scope of the present invention, and it should be covered by the scope of the claims of the present invention.

Claims (10)

1. A method for implementing asynchronous electronic archive comprising:
receiving a request for archiving an electronic archive;
acquiring credential data according to the request, and if the credential data source is a single system, calling a single source application archiving interface based on a fegin interface to acquire single source archiving data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; returning the first archive data corresponding to the request through a callback fegin interface;
if the credential data source is a non-single system, calling a non-single source application archiving interface based on a fegin interface to acquire non-single source archiving data and asynchronous archiving data; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; returning second archive data corresponding to the request through a callback fegin interface;
and backing up the first archive data and the second archive data to a designated storage space to finish archiving the electronic archive.
2. The method of claim 1, wherein obtaining credential data in accordance with the request comprises:
and acquiring corresponding credential data according to the request id.
3. The method of claim 1, wherein assembling the single source archive data and the credential data according to a predetermined message structure to obtain first archive data comprises:
and assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
4. The method as recited in claim 1, further comprising: after obtaining temporary data, storing the temporary data in a cache;
and if the storage time of the temporary data exceeds a preset value, cleaning the temporary data.
5. The method of claim 1, wherein backing up the first archive data and the second archive data to the designated storage space further comprises:
and accessing the designated storage space to obtain the electronic archive data.
6. A system for implementing asynchronous electronic archive comprising:
the request module is used for receiving a request for archiving the electronic file;
the first archive data acquisition module is used for acquiring the credential data according to the request, and if the source of the credential data is a single system, calling a single source application archive interface based on a fegin interface to acquire single source archive data; assembling the single-source archive data and the credential data according to a preset message structure to obtain first archive data; returning the first archive data corresponding to the request through a callback fegin interface;
the second archive data acquisition module is used for calling a non-single source application archive interface based on a fegin interface to acquire non-single source archive data and asynchronous archive data if the credential data source is a non-single system; assembling the non-single source archive data and the credential data according to a preset message structure to obtain temporary data, and combining the temporary data with the asynchronous archive data to obtain second archive data; returning second archive data corresponding to the request through a callback fegin interface;
and the archiving module is used for backing up the first archiving data and the second archiving data to the appointed storage space to complete archiving of the electronic archive.
7. The system of claim 6, wherein the first archive data acquisition module comprises:
and the credential data acquisition sub-module is used for acquiring corresponding credential data according to the request id.
8. The system of claim 6, wherein the first archive data acquisition module comprises:
and the message assembly sub-module is used for assembling the single-source archive data and the credential data according to a json message structure required by the electronic archive to obtain first archive data.
9. The system of claim 6, further comprising:
the buffer memory sub-module is used for storing the temporary data in a buffer memory after the temporary data are obtained;
and the temporary data cleaning sub-module is used for cleaning the temporary data if the storage time of the temporary data exceeds a preset value.
10. The system of claim 6, further comprising:
and the access module is used for obtaining the electronic archive data by accessing the appointed storage space.
CN202311744930.3A 2023-12-18 2023-12-18 Method and system for realizing asynchronous electronic archive archiving Pending CN117851353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311744930.3A CN117851353A (en) 2023-12-18 2023-12-18 Method and system for realizing asynchronous electronic archive archiving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311744930.3A CN117851353A (en) 2023-12-18 2023-12-18 Method and system for realizing asynchronous electronic archive archiving

Publications (1)

Publication Number Publication Date
CN117851353A true CN117851353A (en) 2024-04-09

Family

ID=90539193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311744930.3A Pending CN117851353A (en) 2023-12-18 2023-12-18 Method and system for realizing asynchronous electronic archive archiving

Country Status (1)

Country Link
CN (1) CN117851353A (en)

Similar Documents

Publication Publication Date Title
US6396913B1 (en) System and method for processing call detail records
EP2880848B1 (en) Aggregating data in a mediation system
EP2434685A1 (en) Method and system for processing telephone bill
US20140025683A1 (en) Methods and apparatus for managing community-updateable data
US8675842B2 (en) Speech usage and performance tool
CN105164674A (en) Queries involving multiple databases and execution engines
CN101771723A (en) Data synchronization method
CN109783512A (en) Data processing method, device, computer equipment and storage medium
CN108509523A (en) Structuring processing method, equipment and the readable storage medium storing program for executing of block chain data
US11954128B2 (en) Query alerts generation for virtual warehouse
CN111752970B (en) Distributed query service response method based on cache and storage medium
CN107609172B (en) Cross-system multi-dimensional data retrieval processing method and device
CN102737061B (en) Distributed ticket query management system and method
CN101778131A (en) Data synchronization system
CN116016647A (en) Business service method, device and computer readable medium
CN101789963A (en) Data synchronization system
CN114205641A (en) Video data processing method and device
CN109583615A (en) Booking method, system and server, the computer readable storage medium of meeting room
CN117851353A (en) Method and system for realizing asynchronous electronic archive archiving
CN116842090A (en) Accounting system, method, equipment and storage medium
CN116467352A (en) Transaction inquiry system
CN110515991A (en) Batch dispenses the collection method and device, storage medium, terminal of file
WO2022089321A1 (en) Method and apparatus for scheduling access point, and server and storage medium
CN103186553B (en) The querying method of service product and system in a kind of value-added service
US11635907B2 (en) Record information management based on self-describing attributes

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