CN108062713B - Annuity data file obtaining method and device, computer equipment and storage medium - Google Patents

Annuity data file obtaining method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108062713B
CN108062713B CN201711212939.4A CN201711212939A CN108062713B CN 108062713 B CN108062713 B CN 108062713B CN 201711212939 A CN201711212939 A CN 201711212939A CN 108062713 B CN108062713 B CN 108062713B
Authority
CN
China
Prior art keywords
file
annuity
data file
timing task
annuity data
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.)
Active
Application number
CN201711212939.4A
Other languages
Chinese (zh)
Other versions
CN108062713A (en
Inventor
郭亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance 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 Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201711212939.4A priority Critical patent/CN108062713B/en
Publication of CN108062713A publication Critical patent/CN108062713A/en
Application granted granted Critical
Publication of CN108062713B publication Critical patent/CN108062713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • 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/178Techniques for file synchronisation in file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method and a device for acquiring an annuity data file, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring an annuity data file from a social security center, and generating a file decryption timing task; when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file; decrypting the annuity data file in a decryption mode to obtain a plaintext file, and generating a file analysis timing task; when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center; and calling a processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table. According to the annuity data file acquisition method, the annuity data file acquisition device, the computer equipment and the storage medium, only one annuity trusted system is required to be configured for a plurality of social security centers, and the annuity trusted system processes the acquired annuity data files according to the difference of the social security centers and the difference of file types, so that the cost is saved.

Description

Annuity data file obtaining method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for acquiring an annuity data file, computer equipment and a storage medium.
Background
Annuals are financial products sold by insurance companies to pay cash to purchasers on a regular basis, and are typically received by the bearer on a regular basis after retirement. The personal income tax imposed on annuals is imposed only on earnings in exchange for earnings, and therefore all tax imposed on annuals accounts lag behind the time they generate revenue.
The annuity system needs to process files such as payment notices and the like sent by social security institutions of governments in each region in a payment process or other processes, and traditionally, one annuity system can only be adapted to one social security center, and when the annuity system needs to be in butt joint with a plurality of social security centers, a plurality of annuity systems need to be arranged, so that the cost is increased.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an annuity data file acquisition method, apparatus, computer device and storage medium.
A annuity data file acquisition method, the method comprising:
acquiring an annuity data file from a social security center, and generating a file decryption timing task;
when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file;
decrypting the annuity data file in the decryption mode to obtain a plaintext file, and generating a file analysis timing task;
when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center;
and calling the processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table.
In one embodiment, the step of obtaining the annuity data file from the social security center and generating the file decryption timing task comprises:
acquiring an annuity data file from a social security center and storing the annuity data file in an external network storage area;
acquiring first storage information of the annuity data file in the external network storage area, and generating a file synchronization timing task;
when the file synchronization timing task is started, synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information;
and acquiring second storage information of the annuity data file in the internal network storage area, and generating a file decryption timing task.
In one embodiment, the step of decrypting the annuity data file by the decryption method to obtain a plaintext file, and generating a file parsing timing task includes:
configuring a factory mode according to the decryption mode;
acquiring an annuity data file from the internal network storage area according to the second storage information;
inputting the acquired annuity data file into the factory mode to obtain a plaintext file;
and after the plain text file is stored in the internal network storage area, generating a file analysis timing task.
In one embodiment, the step of converting the plaintext file into the field table and the content table by invoking the processing rule through a unified processing method includes:
acquiring the plaintext file from the internal network storage area;
calling the processing rule through a uniform processing method to convert the plaintext file to obtain a data model;
obtaining a field table according to the first row data of the data model obtained by conversion;
and obtaining a content table according to the non-head line data of the converted data model.
In one embodiment, after the step of obtaining the field table and the content table by invoking the processing rule through the unified processing method to convert the plaintext file, the method further includes:
acquiring a configured verification method corresponding to the social security center;
performing physical verification on the field table and the content table through the verification method;
when the field table and the content table pass the physical verification, performing service verification on the field table and the content table by the verification method;
when the field table and the content table pass the service check, the field table and the content table are stored;
and when at least one of the field table and the content table fails the physical verification or the service verification, feeding back information of verification failure to the social security center.
An annuity data file acquisition apparatus, the apparatus comprising:
the annuity data file acquisition module is used for acquiring the annuity data files from the social security center and generating a file decryption timing task;
the decryption mode acquisition module is used for acquiring a decryption mode corresponding to the social security center and the type of the annuity data file when the file decryption timing task is started;
the decryption module is used for decrypting the annuity data file in the decryption mode to obtain a plaintext file and generating a file analysis timing task;
the processing rule acquisition module is used for acquiring a processing rule corresponding to the social security center when the file analysis timing task is started;
and the analysis module is used for calling the processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table.
In one embodiment, the annuity data file obtaining module includes:
the storage unit is used for acquiring the annuity data file from the social security center and storing the annuity data file into an external network storage area;
the first storage information acquisition unit is used for acquiring first storage information of the annuity data file in the external network storage area and generating a file synchronization timing task;
the synchronization unit is used for synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information when the file synchronization timing task is started;
and the second storage information acquisition unit is used for acquiring second storage information of the annuity data file in the internal network storage area and generating a file decryption timing task.
In one embodiment, the decryption module comprises:
a factory mode configuration unit, configured to configure a factory mode according to the decryption manner;
the annuity data file acquisition unit is used for acquiring the annuity data file from the internal network storage area according to the second storage information;
the decryption unit is used for inputting the acquired annuity data file into the factory mode to obtain a plaintext file;
and the timing task generating unit is used for generating a file analysis timing task after the plaintext file is stored in the intranet storage area.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the computer program.
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 of any of the preceding claims.
According to the annuity data file acquisition method, the annuity data file acquisition device, the computer equipment and the storage medium, only one annuity trusted system is required to be configured for a plurality of social security centers, the annuity trusted system processes the acquired annuity data files according to the difference of the social security centers and the difference of file types, one annuity trusted system is not required to be configured for each social security center, the cost is saved, the decryption timing task and the analysis timing task are configured in a timing task mode, and the resources of the system are fully considered.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a method for generating annuity data files;
FIG. 2 is a schematic diagram illustrating network region partitioning in an embodiment;
FIG. 3 is a flowchart of a method for annuity data file acquisition in one embodiment;
FIG. 4 is a flowchart of step S302 in the embodiment shown in FIG. 3;
FIG. 5 is a diagram of an annuity data file obtaining device in an embodiment;
FIG. 6 is a block diagram of a computer device in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Before describing in detail embodiments that are in accordance with the present invention, it should be observed that the embodiments reside primarily in combinations of steps and system components related to annuity data file acquisition methods, apparatus, computer devices, and storage media. Accordingly, the system components and method steps have been represented where appropriate by conventional symbols in the drawings, showing only those details that are pertinent to understanding the embodiments of the present invention so as not to obscure the disclosure with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
In this document, relational terms such as left and right, top and bottom, front and back, first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a diagram illustrating an application scenario of an annuity data file obtaining method in an embodiment, which includes an annuity trusted system and a plurality of social security centers. The annuity entrusted system also comprises a public interface processing module which can be communicated with the social security center, a public processing module which can be communicated with the public interface processing module, a file processing module which can be communicated with the public processing module, a database which can store data, a configuration file which stores configuration information and the like, wherein a public interface processing module network memory is arranged corresponding to the public interface processing module, and a public processing module network memory is arranged corresponding to the public processing module. In order to ensure the security of data transmission, referring to fig. 2, fig. 2 is a schematic diagram of network region division in an embodiment, which may be divided into an internal private line region, an internal public network region, an external public network region, and an internal WEB region, where the internal private line region may communicate with an external public network, so that a public interface processing module is disposed therein, and the internal WEB region may only communicate with an internal network, so that the public processing module, a file processing module, a database, a configuration file, and the like are all stored in the internal WEB region; the multiple social security centers are in the external public network area and can communicate with the public processing module in the internal private line area.
Referring to fig. 3, in one embodiment, an annuity data file obtaining method is provided, and the embodiment is exemplified by applying the method to the annuity trusted system in fig. 1. The annuity trusted system runs an annuity data file acquisition program, and the annuity data file acquisition method is implemented through the annuity data file acquisition program. The method specifically comprises the following steps:
s302: and acquiring the annuity data file from the social security center, and generating a file decryption timing task.
Specifically, when the annuity trusted system receives the annuity data file sent by the social security center, or the annuity trusted system actively acquires the annuity data file from the social security center, the annuity data file needs to be decrypted first, and a file decryption timing task is set so as not to affect other processing tasks in the annuity system, wherein the file decryption timing task is set by the annuity trusted system and executes a corresponding decryption task at a preset time. For example, the annuity trusted system may first acquire the system time, then predict the time for executing the decryption timing task according to the processing amount in the current annuity trusted system, and finally associate the predicted time with the decryption timing task, and when the predicted time arrives, the annuity trusted system executes the decryption timing task.
S304: and when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file.
Specifically, since the files of different social security centers may have different encryption and signing manners, the corresponding decryption manner needs to be obtained according to the social security center, for example, the corresponding decryption manner may be obtained according to the social security center identifier, which may be set according to the place name, or may be a unique number assigned by the annuity trusted system, or a combination of the two. In addition, because there may be multiple types of annuity data files between the same social security center and the annuity trusted system, for example, there are payment notification files, and the like, and the encryption and signing manners of different file types are different, where signing refers to different signing manners of files, for example, different certificates and private keys of social security centers are different, and the social security center signs the files through the private keys, so that the annuity trusted system can sign the signed files through the corresponding certificates of the social security centers, and therefore, according to the types of annuity data, a proper decryption manner can be further selected from decryption manners corresponding to the identities of the social security centers to accurately decrypt the annuity data files.
S306: and decrypting the annuity data file in a decryption mode to obtain a plaintext file, and generating a file analysis timing task.
Specifically, the file processing module of the annuity trusted system decrypts the annuity data file in the acquired decryption mode corresponding to the annuity data file to obtain a plaintext file, and the plaintext file can be stored firstly, so that the plaintext file can be read again when the plaintext file is processed incorrectly in the following process. And after the plaintext file is stored, generating an analysis timing task according to the plaintext file, wherein the analysis timing task is set by the annuity entrusted system and executes a corresponding analysis task at a preset time. For example, the annuity entrusted system may first acquire the system time, then predict the time for executing the analysis timing task according to the processing amount in the current annuity entrusted system, and finally associate the predicted time with the analysis timing task, and when the predicted time arrives, the annuity entrusted system executes the analysis timing task.
S308: and when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center.
Specifically, the file processing rules of different social security centers are different, so that after the file parsing timing task is started, the file processing module of the annuity trusted system acquires the processing rule corresponding to the social security center. Further processing rules may also be associated with file types such that a file processing module of an annuity trusted system may retrieve processing rules related to a particular file type for a social security center.
S310: and calling a processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table.
Specifically, the annuity entrusted system extracts the commonality of the processing method of the plaintext files of each social security center to generate a uniform processing method, wherein the different places of each social security center generate corresponding processing rules, so that the uniform processing method and the corresponding processing rules can obtain the processing mode of the plaintext files, and therefore the file processing module of the annuity entrusted system can call the processing rules to convert the plaintext files through the uniform processing method to obtain the field table and the content table. The field table is the content of the field in the corresponding plaintext file, such as name, gender, cost, etc., and the content table is the specific content of the corresponding name and gender, which is not described herein again.
In the embodiment, only one annuity trusted system needs to be configured for a plurality of social security centers, the annuity trusted system processes the acquired annuity data files according to the difference of the social security centers and the difference of the file types, one annuity trusted system does not need to be configured for each social security center, the cost is saved, a decryption timing task and an analysis timing task are configured in a timing task mode, and the resources of the system are fully considered.
In one embodiment, referring to fig. 4, fig. 4 is a flowchart of step S302 in the embodiment shown in fig. 3, and the step S302 of obtaining the annuity data file from the social security center and generating the file decryption timing task may include:
s402: and acquiring the annuity data file from the social security center and storing the annuity data file in an external network storage area.
Specifically, the public interface processing module of the social security entrusted system may acquire the annuity data file from the social security center, for example, may acquire a payment notification file stored in the social security center, and since the public interface processing module may not directly call the internal network memory for storage, the public interface processing module stores the acquired annuity data file in an external network memory area, for example, in a network memory area corresponding to the public interface processing module in the internal network memory area, so as to store the original file, which may lay a foundation for calling after querying of the subsequent file.
S404: acquiring first storage information of the annuity data file in an external network storage area, and generating a file synchronization timing task.
Specifically, the common interface processing module may obtain first storage information of the annuity data file in the external network storage area, and store the first storage information, for example, the common interface processing module may call the common processing module to synchronize the first storage information to an external network file information table stored in the internal network storage area, and call the common processing module to record synchronization information to a file synchronization information table to establish a file synchronization timing task, where the file synchronization timing task is a task generated by the annuity trusted system and performing file synchronization at a preset time, for example, synchronizing the annuity data file in the external network storage area to the internal network storage area at the preset time. The first storage information may refer to a storage address of the annuity data file in the external network storage area, a size of a storage space, and the like.
Furthermore, the public interface processing module may further determine whether an error occurs in the processing process after the public processing module synchronization information is called and recorded in the file synchronization information table, and if the error occurs in the processing process, the public interface processing module acquires a relevant error parameter and returns the error parameter to a corresponding social security center so as to facilitate timely processing by the social security center, wherein the social security center may be divided into a social security center processing system and a social security center file system, the annuity entrusted system reads a corresponding annuity data file from the social security center file system, and the error parameter and the like are processed by the social security center processing system. And when no error occurs in the deletion processing process, the public interface processing module in the annuity entrusted system acquires the parameters of the related processing success and returns the parameters to the social security center to inform the social security center that the file acquisition is successful.
S406: and when the file synchronization timing task is started, synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information.
Specifically, the file interface processing module may call the common processing module to determine whether a newly added file synchronization timing task exists in the file synchronization information table, determine whether an annuity data file is to be synchronized according to the first storage information when the file synchronization timing task exists, and end the processing and end the timing task when the annuity data file is not to be synchronized. When the annuity data file to be synchronized exists, the common interface processing module synchronizes the annuity data file to the internal network storage area from the external network storage area, namely to the network storage area corresponding to the file processing module.
S408: and acquiring second storage information of the annuity data file in an internal network storage area, and generating a file decryption timing task.
Specifically, the common interface processing module stores the second storage information of the annuity data file in the intranet storage area into the intranet file information table, for example, the common processing module may be called to read the intranet file information table stored in the intranet storage area, and write the second storage information into the intranet file information table. And after the second storage information is successfully written, the public interface processing module decrypts the timing task according to the second storage information added file so as to facilitate the next processing. The second storage information may be a storage address and a size of a storage space of the online storage area of the annuity data file.
In the embodiment, the data in the external network is synchronized to the internal network storage area in a synchronous timing task mode, and the corresponding decryption task is generated according to the file in the internal network storage area, so that the decryption task is performed in the internal network without involving interaction with the external network, and the security of the file is improved.
In one embodiment, the step of decrypting the annuity data file by a decryption method to obtain a plaintext file, and generating a file parsing timing task, that is, step S306 may include: configuring a factory mode according to a decryption mode; acquiring an annuity data file from an internal network storage area according to second storage information; inputting the acquired annuity data file into a factory mode to obtain a plaintext file; and after the plain text file is stored in the internal network storage area, generating a file analysis timing task.
Specifically, after reading the decryption timing task, the file processing module in the annuity trusted system may first obtain the configured decryption mode corresponding to the current social security center from the social security center configuration table in the data, and then configure the engineering mode according to the decryption mode, where the factory mode is specially responsible for instantiating a large number of classes with common interfaces, and it is not necessary to implement a mode of knowing which class is to be instantiated each time, it defines an interface for creating an object, and determines which class is to be instantiated by a subclass, and the configuration in the social security center may be regarded as a subclass in the factory mode, through which the decryption mode may be determined. The file processing module acquires an annuity data file from the intranet storage area according to second storage information stored in the intranet file information table, and inputs the annuity data file into the generated factory mode to acquire a plaintext file, wherein the file processing module can store the plaintext file into the intranet storage area after acquiring the plaintext file, for example, the plaintext file is stored in association with a corresponding annuity data file stored in the intranet storage area. And storing the information parameters of the plaintext file, such as storage location, size, etc., in the intranet file information table, preferably, the file processing module may store the information parameters of the plaintext file in association with the information parameters of the corresponding annuity data file.
Furthermore, after the plaintext file is obtained through decryption, an analysis timing task can be directly generated according to the plaintext file, and the analysis timing task is set by the annuity trusted system and executes a corresponding analysis task at a preset time. For example, the annuity trusted system may first acquire the system time, then predict the time for executing the analysis timing task according to the processing amount in the current annuity trusted system, and finally associate the predicted time with the analysis timing task, and when the predicted time arrives, the annuity trusted system executes the decryption timing task. Furthermore, after the file processing module decrypts the plaintext file, whether an error exists in the decryption process can be determined, if the error exists, the file processing module organizes the content of the error to form an error message, the error message is sent to the public interface processing module, the public interface processing module forwards the error message to the social security center so as to facilitate the social security center to process the error message in time, and when the error does not occur in the decryption process, an analysis timing task is generated.
In the embodiment, the annuity data file is decrypted by configuring the factory mode, so that the processing process is simpler, and the security of the file can be improved in the internal network storage area in the whole decryption process.
In one embodiment, the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method, that is, step S310, may include: acquiring a plaintext file from an internal network storage area; calling a processing rule through a unified processing method to convert a plaintext file to obtain a data model; obtaining a field table according to the first row data of the data model obtained by conversion; and obtaining a content table according to the non-head line data of the converted data model.
Specifically, the file processing module may first obtain a corresponding processing rule according to the type of the social security center or the file, then obtain a plaintext file from the intranet storage area according to information parameters of the plaintext file stored in the intranet file information table, then call the processing rule through a unified processing method to convert the plaintext file to obtain a data model, and obtain a field table according to first-line data of the converted data model; and obtaining a content table according to the non-first-row data of the converted data model, wherein the field table and the content table are stored in the internal network storage area.
Further, after the content table and the field table are obtained, the file processing module may further determine whether the process has an error, if so, may obtain error information, and call the file interface processing module to send the error information to the processing system of the social security center, and if not, may add a verification timing task.
In the above embodiment, the annuity entrusted system extracts the commonality of the processing methods of the plaintext files of each social security center to generate a unified processing method, wherein the different places of each social security center generate corresponding processing rules, so that the processing method of the plaintext files can be obtained by adding the unified processing method to the corresponding processing rules, and therefore, the file processing module of the annuity entrusted system can call the processing rules to convert the plaintext files to obtain the field table and the content table through the unified processing method, and the processing process is simple.
In one embodiment, after the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method, that is, after step S310, the method may further include: acquiring a configured verification method corresponding to the social security center; carrying out physical verification on the field table and the content table by a verification method; when the field table and the content table pass the physical verification, the field table and the content table are subjected to service verification through a verification method; when the field table and the content table pass the service check, the field table and the content table are stored; and when at least one of the field table and the content table fails the physical verification or the service verification, feeding back information of failure verification to the social security center.
Specifically, because different social security centers have different verification modes, a file processing module of the annuity entrusted system firstly reads a social security center configuration table and acquires a verification method corresponding to the social security center from the social security center configuration table, wherein the verification method comprises a physical verification method and a service verification method, then the file processing module performs physical verification on a field table and a content table stored in an internal storage area, for example, the name of a verification field, the length of the field, the format of the field and the like, and when the physical verification passes, the service verification is performed on the field table and the content table; and when the service check is passed, storing the file form, for example, when the file is a payment notification file, storing the payment notification form to an intranet storage area, storing a detailed list of the payment notification form to the intranet storage area, and returning a successfully organized message to the social security center by the file interface processing module. If one of the physical verification and the business verification is known to have an error, the file processing module organizes error information and returns the error information to the social security center through the file interface processing module.
In the above embodiment, after the obtained annuity data file is analyzed, the corresponding field table and the service table are obtained, and the field table and the service table are further verified, and only after the field table and the service table are successfully verified, the annuity data file is considered to be successfully obtained, otherwise, error information is fed back to the social security center, and the social security center further processes the annuity data file.
Referring to fig. 5, fig. 5 is a schematic diagram of an annuity data file obtaining apparatus in an embodiment, the apparatus includes:
the annuity data file acquisition module 100 is used for acquiring the annuity data file from the social security center and generating a file decryption timing task.
A decryption mode obtaining module 200, configured to obtain, when the file decryption timing task is started, a decryption mode corresponding to the type of the social security center and the annuity data file.
And the decryption module 300 is configured to decrypt the annuity data file in a decryption manner to obtain a plaintext file, and generate a file analysis timing task.
The processing rule obtaining module 400 is configured to obtain a processing rule corresponding to the social security center when the file parsing timing task is started.
The parsing module 500 is configured to invoke a processing rule through a unified processing method to convert a plaintext file to obtain a field table and a content table.
In one embodiment, the annuity data file obtaining module 100 may include:
and the storage unit is used for acquiring the annuity data file from the social security center and storing the annuity data file to an external network storage area.
And the first storage information acquisition unit is used for acquiring the first storage information of the annuity data file in the external network storage area and generating a file synchronization timing task.
And the synchronization unit is used for synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information when the file synchronization timing task is started.
And the second storage information acquisition unit is used for acquiring second storage information of the annuity data file in the internal network storage area and generating a file decryption timing task.
In one embodiment, the decryption module 300 may include:
and the factory mode configuration unit is used for configuring the factory mode according to the decryption mode.
And the annuity data file acquisition unit is used for acquiring the annuity data file from the internal network storage area according to the second storage information.
And the decryption unit is used for inputting the acquired annuity data file into the factory mode to obtain a plaintext file.
And the timing task generating unit is used for generating a file analysis timing task after the plaintext file is stored in the internal network storage area.
In one embodiment, the parsing module 500 includes:
and the plaintext file acquisition unit is used for acquiring the plaintext file from the internal network storage area.
And the conversion unit is used for calling the processing rule through a uniform processing method to convert the plaintext file to obtain a data model.
And the field table analyzing unit is used for obtaining a field table according to the first row data of the data model obtained by conversion.
And the content table analysis unit is used for obtaining the content table according to the non-head-line data of the converted data model.
In one embodiment, the apparatus further comprises:
and the verification method acquisition unit is used for acquiring the configured verification method corresponding to the social security center after the field table and the content table are obtained by converting the plaintext file through the unified processing method calling the processing rule.
And the physical checking unit is used for physically checking the field table and the content table by a checking method.
And the service checking unit is used for performing service checking on the field table and the content table by a checking method after the field table and the content table are both physically checked.
And the storage unit is used for storing the field table and the content table after the field table and the content table pass the service check.
And the feedback unit is used for feeding back information of verification failure to the social security center when at least one of the field table and the content table fails physical verification or service verification.
For the specific limitation of the annuity data file obtaining device, reference may be made to the above limitation on the annuity data file obtaining method, which is not described herein again. All or part of the modules in the annuity data file acquisition device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like. The above-described annuity data file acquisition means may be implemented in the form of a computer program that can be run on an annuity trusted system as shown in fig. 1.
In one embodiment, a computer device is provided, which corresponds to the above-mentioned annuity trusted system, and which may be a server or a mobile terminal. When the computer device is a server, its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, an operating system, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an annuity data file acquisition method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein, the following steps are realized when the processor executes the program: acquiring an annuity data file from a social security center, and generating a file decryption timing task; when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file; decrypting the annuity data file in a decryption mode to obtain a plaintext file, and generating a file analysis timing task; when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center; and calling a processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table.
In one embodiment, the step of obtaining the annuity data file from the social security center and generating the file decryption timing task, which is implemented when the processor executes the program, may include: acquiring an annuity data file from a social security center and storing the annuity data file in an external network storage area; acquiring first storage information of the annuity data file in an external network storage area, and generating a file synchronization timing task; when the file synchronization timing task is started, synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information; and acquiring second storage information of the annuity data file in an internal network storage area, and generating a file decryption timing task.
In one embodiment, the step of decrypting the annuity data file by a decryption method to obtain a plaintext file and generating the file parsing timing task, which is implemented when the processor executes the program, may include: configuring a factory mode according to a decryption mode; acquiring an annuity data file from an internal network storage area according to second storage information; inputting the acquired annuity data file into a factory mode to obtain a plaintext file; and after the plain text file is stored in the internal network storage area, generating a file analysis timing task.
In one embodiment, the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method when the processor executes the program may include: acquiring a plaintext file from an internal network storage area; calling a processing rule through a unified processing method to convert a plaintext file to obtain a data model; obtaining a field table according to the first row data of the data model obtained by conversion; and obtaining a content table according to the non-head line data of the converted data model.
In one embodiment, after the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method when the processor executes the program, the method may further include: acquiring a configured verification method corresponding to the social security center; carrying out physical verification on the field table and the content table by a verification method; when the field table and the content table pass the physical verification, the field table and the content table are subjected to service verification through a verification method; when the field table and the content table pass the service check, the field table and the content table are stored; and when at least one of the field table and the content table fails the physical verification or the service verification, feeding back information of failure verification to the social security center.
For the above definition of the computer device, reference may be made to the above specific definition of the annuity data file obtaining method, which is not described herein again.
With continuing reference to fig. 6, there is also provided a computer readable storage medium having stored thereon a computer program, such as the non-volatile storage medium shown in fig. 6, wherein the program when executed by a processor implements the steps of: acquiring an annuity data file from a social security center, and generating a file decryption timing task; when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file; decrypting the annuity data file in a decryption mode to obtain a plaintext file, and generating a file analysis timing task; when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center; and calling a processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table.
In one embodiment, the step of obtaining the annuity data file from the social security center and generating the file decryption timing task, which is implemented when the program is executed by the processor, may include: acquiring an annuity data file from a social security center and storing the annuity data file in an external network storage area; acquiring first storage information of the annuity data file in an external network storage area, and generating a file synchronization timing task; when the file synchronization timing task is started, synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information; and acquiring second storage information of the annuity data file in an internal network storage area, and generating a file decryption timing task.
In one embodiment, the step of decrypting the annuity data file by a decryption method to obtain a plaintext file and generating the file parsing timing task, which is implemented when the program is executed by the processor, may include: configuring a factory mode according to a decryption mode; acquiring an annuity data file from an internal network storage area according to second storage information; inputting the acquired annuity data file into a factory mode to obtain a plaintext file; and after the plain text file is stored in the internal network storage area, generating a file analysis timing task.
In one embodiment, the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method when the program is executed by the processor may include: acquiring a plaintext file from an internal network storage area; calling a processing rule through a unified processing method to convert a plaintext file to obtain a data model; obtaining a field table according to the first row data of the data model obtained by conversion; and obtaining a content table according to the non-head line data of the converted data model.
In one embodiment, after the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method when the program is executed by the processor, the method may further include: acquiring a configured verification method corresponding to the social security center; carrying out physical verification on the field table and the content table by a verification method; when the field table and the content table pass the physical verification, the field table and the content table are subjected to service verification through a verification method; when the field table and the content table pass the service check, the field table and the content table are stored; and when at least one of the field table and the content table fails the physical verification or the service verification, feeding back information of failure verification to the social security center.
The above definition of the computer-readable storage medium can refer to the above specific definition of the annuity data file obtaining method, and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An annuity data file acquisition method, characterized by comprising:
acquiring an annuity data file from a social security center, and generating a file decryption timing task;
when the file decryption timing task is started, acquiring a decryption mode corresponding to the social security center and the type of the annuity data file;
decrypting the annuity data file in the decryption mode to obtain a plaintext file, generating a file analysis timing task, and storing the generated plaintext file so as to read the plaintext file again when the plaintext file is processed incorrectly in the subsequent process;
when the file analysis timing task is started, acquiring a processing rule corresponding to the social security center;
and calling the processing rules through a unified processing method to convert the plaintext files to obtain a field table and a content table, wherein the unified processing method is generated by extracting the commonalities of the processing methods of the plaintext files of all the social security centers through an annuity trusted system, and the processing rules are generated according to different places processed by all the social security centers.
2. The method of claim 1, wherein the step of obtaining annuity data files from a social security center and generating a file decryption timing task comprises:
acquiring an annuity data file from a social security center and storing the annuity data file in an external network storage area;
acquiring first storage information of the annuity data file in the external network storage area, and generating a file synchronization timing task;
when the file synchronization timing task is started, synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information;
and acquiring second storage information of the annuity data file in the internal network storage area, and generating a file decryption timing task.
3. The method according to claim 2, wherein the step of decrypting the annuity data file by the decryption means to obtain a plaintext file and generating a file parsing timing task comprises:
configuring a factory mode according to the decryption mode;
acquiring an annuity data file from the internal network storage area according to the second storage information;
inputting the acquired annuity data file into the factory mode to obtain a plaintext file;
and after the plain text file is stored in the internal network storage area, generating a file analysis timing task.
4. The method according to claim 3, wherein the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method comprises:
acquiring the plaintext file from the internal network storage area;
calling the processing rule through a uniform processing method to convert the plaintext file to obtain a data model;
obtaining a field table according to the first row data of the data model obtained by conversion;
and obtaining a content table according to the non-head line data of the converted data model.
5. The method according to claim 1, wherein after the step of converting the plaintext file into the field table and the content table by invoking the processing rule through the unified processing method, the method further comprises:
acquiring a configured verification method corresponding to the social security center;
performing physical verification on the field table and the content table through the verification method;
when the field table and the content table pass the physical verification, performing service verification on the field table and the content table by the verification method;
when the field table and the content table pass the service check, the field table and the content table are stored;
and when at least one of the field table and the content table fails the physical verification or the service verification, feeding back information of verification failure to the social security center.
6. An annuity data file obtaining apparatus, comprising:
the annuity data file acquisition module is used for acquiring the annuity data files from the social security center and generating a file decryption timing task;
the decryption mode acquisition module is used for acquiring a decryption mode corresponding to the social security center and the type of the annuity data file when the file decryption timing task is started;
the decryption module is used for decrypting the annuity data file in the decryption mode to obtain a plaintext file, generating a file analysis timing task and storing the generated plaintext file so as to read the plaintext file again when the plaintext file is processed incorrectly in the subsequent process;
the processing rule acquisition module is used for acquiring a processing rule corresponding to the social security center when the file analysis timing task is started;
the system comprises a processing rule module, an analysis module and a processing module, wherein the processing rule module is used for calling the processing rule through a unified processing method to convert the plaintext file to obtain a field table and a content table, the unified processing method is generated by extracting the commonalities of the processing methods of the plaintext files of all social security centers through an annuity trusted system, and the processing rule is generated according to different places processed by all the social security centers.
7. The apparatus of claim 6, wherein the annuity data file obtaining module comprises:
the storage unit is used for acquiring the annuity data file from the social security center and storing the annuity data file into an external network storage area;
the first storage information acquisition unit is used for acquiring first storage information of the annuity data file in the external network storage area and generating a file synchronization timing task;
the synchronization unit is used for synchronizing the annuity data file from the external network storage area to the internal network storage area according to the first storage information when the file synchronization timing task is started;
and the second storage information acquisition unit is used for acquiring second storage information of the annuity data file in the internal network storage area and generating a file decryption timing task.
8. The apparatus of claim 7, wherein the decryption module comprises:
a factory mode configuration unit, configured to configure a factory mode according to the decryption manner;
the annuity data file acquisition unit is used for acquiring the annuity data file from the internal network storage area according to the second storage information;
the decryption unit is used for inputting the acquired annuity data file into the factory mode to obtain a plaintext file;
and the timing task generating unit is used for generating a file analysis timing task after the plaintext file is stored in the intranet storage area.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. 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 of any one of claims 1 to 5.
CN201711212939.4A 2017-11-28 2017-11-28 Annuity data file obtaining method and device, computer equipment and storage medium Active CN108062713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711212939.4A CN108062713B (en) 2017-11-28 2017-11-28 Annuity data file obtaining method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711212939.4A CN108062713B (en) 2017-11-28 2017-11-28 Annuity data file obtaining method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108062713A CN108062713A (en) 2018-05-22
CN108062713B true CN108062713B (en) 2020-10-09

Family

ID=62135082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711212939.4A Active CN108062713B (en) 2017-11-28 2017-11-28 Annuity data file obtaining method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108062713B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189843A (en) * 2018-08-02 2019-01-11 浪潮通用软件有限公司 Take the method that button receives file request and resolution response based on supplementary pension system account pipe
CN110111209A (en) * 2019-05-05 2019-08-09 泰康保险集团股份有限公司 Pay processing method, device and the readable storage medium storing program for executing of notice business
CN113726781B (en) * 2021-08-31 2023-05-16 平安养老保险股份有限公司 Message information processing method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753589A (en) * 2008-12-15 2010-06-23 中国移动通信集团公司 Method and device for decrypting data file and data broadcast system
CN102231707A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 Method and system for reliably transmitting data message in bank outlets
CN102571635A (en) * 2012-01-18 2012-07-11 浪潮(北京)电子信息产业有限公司 Message transmission method and equipment
CN103595698A (en) * 2012-08-16 2014-02-19 福州福昕软件开发有限公司北京分公司 Management method for digital rights
CN104391974A (en) * 2014-12-05 2015-03-04 北京奇虎科技有限公司 Browser and browser bookmark data processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753589A (en) * 2008-12-15 2010-06-23 中国移动通信集团公司 Method and device for decrypting data file and data broadcast system
CN102231707A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 Method and system for reliably transmitting data message in bank outlets
CN102571635A (en) * 2012-01-18 2012-07-11 浪潮(北京)电子信息产业有限公司 Message transmission method and equipment
CN103595698A (en) * 2012-08-16 2014-02-19 福州福昕软件开发有限公司北京分公司 Management method for digital rights
CN104391974A (en) * 2014-12-05 2015-03-04 北京奇虎科技有限公司 Browser and browser bookmark data processing method

Also Published As

Publication number Publication date
CN108062713A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN111416808B (en) Cross-block-chain data mutual storage method, device, equipment and storage medium
CN110597925B (en) Cross-chain data processing method and device based on block chain
CN109246197B (en) Data processing method and device based on intelligent contract
CN106161629B (en) Business object synchronization method, client and server
CA3027741A1 (en) Blockchain systems and methods for user authentication
CN110378755B (en) Electronic invoice generation method and device, computer equipment and storage medium
CN111080295A (en) Block chain-based electronic contract processing method and equipment
WO2020098824A9 (en) Smart logistics management using blockchain
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN108062713B (en) Annuity data file obtaining method and device, computer equipment and storage medium
CN110084600B (en) Processing and verifying method, device, equipment and medium for resolution transaction request
CN111506632A (en) Data processing method and device
CN108052550B (en) Annuity data receiving method and device, computer equipment and storage medium
CN110740038A (en) Block chain and communication method, gateway, communication system and storage medium thereof
CN113961956A (en) Method, device, equipment and medium for generating and applying tagged network information service
CN110599270A (en) Electronic bill generation method and device and computer equipment
CN114036495B (en) Method and device for updating privatized deployment verification code system
CN109818965B (en) Personal identity verification device and method
CN107943969B (en) Annuity data file sending method and device, computer equipment and storage medium
CN111311259A (en) Bill processing method, device, terminal and computer readable storage medium
US20230196351A1 (en) Transaction tracing method and apparatus based on blockchain
CN112134707B (en) Concurrent access method and device for multiple KERBEROS clusters
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN113449322A (en) Data sharing method and device based on block chain, electronic equipment and readable medium
US8493581B2 (en) Electronic document having authentication function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant