CN108062714B - Annuity data sending method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN108062714B
CN108062714B CN201711213258.XA CN201711213258A CN108062714B CN 108062714 B CN108062714 B CN 108062714B CN 201711213258 A CN201711213258 A CN 201711213258A CN 108062714 B CN108062714 B CN 108062714B
Authority
CN
China
Prior art keywords
message
sent
social security
data
security center
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
CN201711213258.XA
Other languages
Chinese (zh)
Other versions
CN108062714A (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 CN201711213258.XA priority Critical patent/CN108062714B/en
Publication of CN108062714A publication Critical patent/CN108062714A/en
Application granted granted Critical
Publication of CN108062714B publication Critical patent/CN108062714B/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
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Abstract

The invention relates to a method and a device for sending annuity data, computer equipment and a storage medium, wherein the method comprises the steps of obtaining annuity data to be sent corresponding to a timing task when the existing timing task is started; acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task; acquiring a processing method corresponding to the basic configuration; acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task; acquiring a configuration template according to the interface identifier and the social security center configuration table; inputting the acquired annuity data to be sent into the acquired configuration template by the processing method to generate a message; and sending the message to a corresponding social security center through the interface. The annuity data sending method, the annuity data sending device, the computer equipment and the storage medium improve sending efficiency.

Description

Annuity data sending method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an annuity data sending method, an annuity data sending device, computer equipment and a storage medium.
Background
When receiving the message sent by the social security center with the plurality of provinces, the professional annuity entrusted person system needs to perform personalized processing according to the requirements of different social security centers and feed back message information to the social security center.
In the conventional technology, professional annuity trustees can only send message information to one social security center singly, and when message information needs to be sent to different social security centers, a large number of sending systems need to be arranged, so that the maintenance work is very large, and the sending efficiency is reduced.
Disclosure of Invention
In view of the above, it is desirable to provide an annuity data transmission method, apparatus, computer device, and storage medium.
An annuity data sending method, the method comprising:
when the existing timing task is started, acquiring annuity data to be sent corresponding to the timing task;
acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task;
acquiring a processing method corresponding to the basic configuration;
acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task;
acquiring a configuration template according to the interface identifier and the social security center configuration table;
inputting the acquired annuity data to be sent into the acquired configuration template by the processing method to generate a message;
and sending the message to a corresponding social security center through the interface.
In one embodiment, the method further comprises:
receiving a sending instruction of annuity data to be sent through a webpage;
inputting the annuity data to be sent into a corresponding interface table according to the sending instruction;
and configuring a timing task corresponding to the sending instruction.
In one embodiment, after the step of acquiring annuity data to be sent corresponding to the timing task, the method further includes:
carrying out physical verification on the annuity data to be sent;
if the verification is not passed, acquiring a user identifier corresponding to the timing task;
and feeding back information of verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate a message by the processing method includes:
generating public domain node data according to the social security center configuration table;
generating service node data according to the social security center configuration table and the acquired annuity data to be sent;
and generating a message according to the configuration module, the public domain node data and the service node data.
In one embodiment, before the step of generating the packet according to the configuration module, the public domain node data, and the service node data, the method further includes:
performing physical verification on the configuration module, the public domain node data and the service node data;
if the verification is not passed, acquiring a user identifier corresponding to the timing task;
and feeding back information of verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of sending the message to the corresponding social security center through the interface includes:
storing the message as a log;
judging whether the message is file-related or not;
when the message is file-related, sending the file corresponding to the message to a corresponding social security center, and sending the message to the corresponding social security center through the interface;
and when the message is not related to the file, directly sending the message to a corresponding social security center through the interface.
In one embodiment, after the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate a message by the processing method, the method further includes:
judging whether the generated message is related to a file or not;
and when the message is file-related, adding a file identifier into the message.
An annuity data transmission apparatus, the apparatus comprising:
the system comprises a module for acquiring annuity data to be sent, which is used for acquiring the annuity data to be sent corresponding to a timing task when the existing timing task is started;
a processing method obtaining module, configured to obtain, according to an interface identifier corresponding to the timing task, a basic configuration of an interface, and obtain a processing method corresponding to the basic configuration;
the social security center configuration table acquisition module is used for acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task;
the configuration template acquisition module is used for acquiring a configuration template according to the interface identifier and the social security center configuration table;
the message generation module is used for inputting the acquired annuity data to be sent into the acquired configuration template through the processing method to generate a message;
and the sending module is used for sending the message to a corresponding social security center through the interface.
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 sending method, the device, the computer equipment and the storage medium, the sending task is set through the timing task, the corresponding processing method is obtained according to the basic configuration of the interface corresponding to the timing task, the social security center configuration table is obtained through the timing task, the configuration template can be obtained according to the interface identification and the social security center configuration table, the annuity data to be sent are sent to the configuration template through the obtained method to generate the message, the message is sent to the social security center to complete the annuity data sending process, and the plurality of social security centers can be in butt joint with the same annuity accepting and holding system, so that the sending efficiency is improved.
Drawings
Fig. 1 is an application scenario diagram of an annuity data transmission method in an embodiment;
FIG. 2 is a schematic diagram illustrating network region partitioning in an embodiment;
FIG. 3 is a flow diagram of a method for annuity data transmission in one embodiment;
FIG. 4 is a flowchart of step S310 in the embodiment shown in FIG. 3;
FIG. 5 is a diagram of an annuity data sending device in one 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 transmission 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 transmission method in an embodiment, which includes an annuity trusted system and a plurality of social security centers. The annuity trusted system comprises a public processing module capable of communicating with the social security center, a public interface module capable of communicating with the public processing module, a public function module capable of communicating with the public interface module, a page processing module capable of communicating with the public processing module, a database capable of storing data, a configuration file for storing configuration information and the like. 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 processing module is disposed therein, and the internal WEB region may only communicate with an internal network, so that a public interface module, a public function module, a page 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 transmission method is provided, and the embodiment is exemplified by applying the method to the annuity trusted system in fig. 1. An annuity data transmission program is run on the annuity trusted system, and the annuity data transmission method is implemented by the annuity data transmission program. The method specifically comprises the following steps:
s302: and when the timing task is started, acquiring annuity data to be sent corresponding to the timing task.
In particular, annuity is a financial product sold by insurance companies for paying cash to purchasers periodically, and is generally collected periodically after retirement of the holder, and personal income taxes imposed on annuity are collected only at the time of collection, so that all tax imposed on annuity accounts lag behind the time at which revenue is generated. The timed task means that the task is preset in advance and then the preset task is executed within a preset time. For example, the sending task may be pre-configured so that it is initiated at a preset time. Because the annuity data to be sent has the preset statistical time or the preset processing time, the annuity data to be sent cannot be sent when the annuity data to be sent is not completely counted, and therefore the preset sending task needs to be started after the annuity data to be sent are collected.
The common processing module in the annuity entrusted system can detect whether the timing task is started or not, and when the timing task is started, the common interface module is triggered, and the common interface module acquires annuity data to be sent corresponding to the timing task. The reason is that the public processing module is located in an internal private line area, which is in communication with an external public network, and in order to ensure the security of internal data, the public interface module located in an internal WEB area is called to acquire annuity data to be sent.
S304: acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task; a processing method corresponding to the basic configuration is obtained.
Specifically, since a specific interface needs to be set when data is transmitted, and the configuration of the interface is also a problem to be considered in the annuity transmission process, the common interface module can obtain the basic configuration of the interface according to the interface identifier corresponding to the timing task, so that the corresponding processing method can be obtained according to the basic configuration of the interface. Wherein the basic configuration of the interface includes the transmission parameters of the interface, the physical state of the interface, the protocol parameters of the interface, and the like. The processing method can be regarded as a common processing class, the common processing class can be stored in a configured plant mode, and the plant mode is a mode which is specially responsible for instantiating a large number of classes with common interfaces and does not need to know in advance which class is to be instantiated each time. It defines an interface for creating objects, which class is instantiated as determined by the subclass, and the basic configuration can be viewed as a subclass in factory mode, from which the processing method can be determined.
S306: and acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task.
Specifically, the social security center identifier refers to an identifier that can uniquely determine the social security center, and the identifier may be a number assigned to the social security center by the annuity trusted system, or the identifier may be determined based on a location identifier, so that the social security center can be uniquely determined based on the identifier.
Different timing tasks may correspond to different social security centers, that is, the annuity trusted system may interface with different social security centers, and since the configurations of different social security centers may be different from each other, different social security centers need to be considered when transmitting annuity data to be transmitted. Therefore, the annuity trusted system can firstly acquire the social security center identifier corresponding to the timing task, and then acquire the social security center configuration table according to the social security center identifier, wherein the social security center configuration table can be pre-stored in a database, and specific configurations related to the social security center are stored, wherein the specific configurations of the social security center comprise the social security center identifier, the social security center name, the establishment time of the social security center and the like.
S308: and acquiring a configuration template according to the interface identifier and the social security center configuration table.
Specifically, the configuration template may be stored in a configuration file, the configuration template configures a format of the message in advance, such as content of the fields, an arrangement order of the fields, and the like, and the configuration template may be associated with the interface identifier and the social security center configuration table, that is, after the transmission interface and the social security center are determined, the configuration template may be uniquely determined.
S310: and inputting the acquired annuity data to be sent into the acquired configuration template through a processing method to generate a message.
Specifically, after the configuration template is acquired, the annuity data to be sent can be input into the configuration template according to the acquired processing method, wherein when the configuration template is an XML template, the annuity data to be sent is input into the XML template to generate an XML message. And then instantiating the current XML message to obtain a socket instance, and sending out the socket instance and other information as parameters.
S312: and sending the message to a corresponding social security center through an interface.
Specifically, after the message is generated, the message is directly sent to the corresponding social security center, so as to complete the sending process of the annuity data to be sent.
According to the annuity data sending method, the sending task is set through the timing task, the corresponding processing method is obtained according to the basic configuration of the interface corresponding to the timing task, the social security center configuration table is obtained according to the timing task, the configuration template can be obtained according to the interface identifier and the social security center configuration table, the annuity data to be sent are sent to the configuration template through the obtained method to generate the message, the message is sent to the social security center to complete the annuity data sending process, a plurality of social security centers can be in butt joint with the same annuity accepting and trusteeing system, and the sending efficiency is improved.
In one embodiment, the annuity data sending method may further include: receiving a sending instruction of annuity data to be sent through a webpage; inputting annuity data to be sent into a corresponding interface table according to a sending instruction; and configuring a timing task corresponding to the sending instruction.
In particular, the annuity trusted system may provide a web page on which the user may operate to trigger the generation of a timed task. For example, when the user opens an annuity data file on the interface and selects part of annuity data, and then clicks a sending button on the interface, the page processing module may obtain the part of annuity data according to a selection area of the user and store the part of annuity data in the interface table. And then the page processing module configures a timing task, wherein the timing task can comprise an interface identifier and a social security center identifier, so that the public processing module can call the public interface module according to the timing task to acquire corresponding annuity data to be sent, the interface identifier, the social security center identifier and the like for subsequent processing. The interface table can be stored in the database, the database is stored in the intranet area, so that the safety of the database can be ensured, and each sending interface is correspondingly provided with the interface table. The parameters of the timed task may include an interface identification and a social security center identification.
In addition, the annuity data to be sent may be annuity data actively provided by the annuity trusted system to the social security center, or information fed back based on the data sent by the social security center, and the like, where the annuity data to be sent may be file-related when the annuity data to be sent is the annuity data actively provided by the annuity trusted system to the social security center, and the annuity data to be sent is not file-related when the annuity data to be sent is the information fed back based on the data sent by the social security center.
In the above embodiment, the annuity entrusted system can collect the relevant annuity data to be sent only by performing simple operation on the web page by the user, and then generate the timing task according to the annuity data to be sent, so that the annuity entrusted system sends the annuity data to be sent to the social security center in time.
In one embodiment, after the step of acquiring annuity data to be sent corresponding to the timing task, the method may further include: carrying out physical verification on annuity data to be sent; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
Specifically, when the public processing module calls the public interface module to process the timing task, the public interface module firstly acquires corresponding interface data to be sent according to the timing task, then performs physical verification on the annuity data to be sent, including physical verification of data length, data type and the like, and if the verification is passed, continues to acquire the basic configuration steps of the interface according to the interface identifier corresponding to the timing task to complete the sending task. If the verification fails, that is, the corresponding annuity data to be sent has a problem, for example, the format of the annuity data to be sent has a problem, or the data type of some data has a problem, for example, the annuity data to be sent is supposed to be floating point type data, but the annuity data to be sent is integer type data, then the annuity data to be sent has a problem; or date data is supposed to be, but time data is given, the annuity data to be sent also has a problem. When the annuity data to be sent is not verified, the user triggering the sending operation needs to be notified, that is, the common interface module can call the common function module to send verification failure information to the user terminal of the corresponding user, and in order to prevent the timing task from continuing or circularly executing, the common function module ends the timing task. The step of sending the information of failed verification to the user terminal by the public function module may be to first obtain a mobile phone number, an email box or a micro-signal of the user identifier corresponding to the timing task, and then send the information of failed verification of the annuity data to be sent to the mobile phone number, the email box or the micro-signal of the user. The sending mode through the micro-letter mode can be sending by adopting a micro-letter public number mode, namely, a user firstly pays attention to the micro-letter public number, and when the annuity data to be sent fail to be checked exists, the information that the annuity data to be sent fail to be checked is sent to the corresponding user through the micro-letter public number.
In the above embodiment, when the public interface module receives the timing task, the corresponding annuity data to be sent is obtained according to the timing task, and in order to ensure that the annuity data sent from the annuity trusted system is correct, in this step, the obtained annuity data to be sent is checked at first, and only the annuity data passing the check continues to form a message in the next step, so that the annuity data is checked at first before the message is formed, thereby avoiding that the annuity data is found to be wrong after the message is formed, which causes all the steps performed by the annuity trusted system to be useless, saving the computing resources of the annuity trusted system, and improving the accuracy of sending the annuity data.
In one embodiment, referring to fig. 4, fig. 4 is a flowchart of step S310 in the embodiment shown in fig. 3, where step S310 is to input the acquired annuity data to be sent into the acquired configuration template through a processing method to generate a message, and the step may include:
s402: and generating public domain node data according to the social security center configuration table.
Specifically, the public domain nodes of different social security centers are different, and therefore, node data of corresponding public domain nodes needs to be generated according to the obtained configuration table of the social security center, for example, the node data of the public domain nodes of some social security centers is grphdr data, and the node data of some public domains is pendendata data, so that different public domain node data needs to be obtained according to the configuration table of the social security center, so as to accurately process data to be sent of different social security centers.
S404: and generating service node data according to the social security center configuration table and the acquired annuity data to be sent.
Specifically, the service nodes of different social security centers are also different, so that different service nodes need to be obtained according to the social security center configuration table, and corresponding service domain node data is generated according to annuity data to be sent, for example, when the public domain node is a grphdr node, the service domain node may be a busitext node. When the public domain node is a pensiondata node, the service domain node may be a pensioninfo node, and then generates corresponding node data according to the acquired annuity data to be sent. The data in the corresponding field in the corresponding annuity data to be sent can be selected as the corresponding node data according to the generated service domain node, and all the annuity data to be sent do not need to be added into the service domain node, so that the sending amount of the data can be reduced from the source.
S406: and generating a message according to the configuration module, the public domain node data and the service node data.
Specifically, the common interface processing module may input the acquired common domain node data and the acquired service domain node data into the corresponding configuration template to obtain the corresponding packet. For example, when the configuration template is an XML template, the data is directly input into the XML template, and then the corresponding XML message is generated, and then the XML message is sent to the public processing module, the public processing module instantiates the current XML message to obtain a socket instance, and a message is generated according to the socket instance and other information parameters.
In one embodiment, before the step of generating the packet according to the configuration module, the public domain node data, and the service node data, the method may further include: performing physical verification on the configuration module, the public domain node data and the service node data; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
Specifically, after acquiring the configuration template, the public domain node data, and the service node data, the public interface module may first perform physical verification on these data, including physical verification of data length, data type, and the like, if the verification passes, generate a corresponding message according to these contents, and if the verification fails, notify the user that triggers the sending operation this time, that is, the public interface module may call the public function module to send information of the verification failure to the user terminal of the corresponding user, and in order to prevent the timing task from continuing to be executed, the public function module ends the timing task. The step of sending the information of failed verification to the user terminal by the public function module may be to first obtain a mobile phone number, an email box or a micro-signal of the user identifier corresponding to the timing task, and then send the information of failed verification to the mobile phone number, the email box or the micro-signal of the user. The sending mode through the micro-letter mode can be sending by adopting a micro-letter public number mode, namely, a user firstly pays attention to the micro-letter public number, and when the annuity data to be sent fail to be checked exist, the information that the checking fails is sent to the corresponding user through the micro-letter public number.
In the above embodiment, after the common interface module obtains the configuration template, the common domain node data, and the service node data, the message is not directly generated, but it is first determined whether the data has an error, and only if there is no error, the message is generated according to the corresponding data, so that the correctness of the message is further improved.
In one embodiment, after the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate a message by using the processing method, the method may further include: judging whether the generated message is related to a file or not; and when the message is file-related, adding the file identification into the message.
Specifically, after a message is generated, it is determined whether the message is file-related, if so, relevant parameters of the file, that is, a file identifier, are put into the message, for example, a storage location of the file, a size of the file, and the like, and then the message and the parameters are sent to the common processing module together. If the file is not related, the message is directly sent to the public processing module so that the public processing module can conveniently perform the next processing, for example, generating a socket instance and the like. The annuity data to be sent may be annuity data actively provided by the annuity entrusted system to the social security center, or information fed back based on data sent by the social security center, and the like, wherein when the annuity data to be sent is the annuity data actively provided by the annuity entrusted system to the social security center, the annuity data to be sent may be file-related, and when the annuity data to be sent is the information fed back based on the data sent by the social security center, the annuity data to be sent is not file-related. In addition, the file identifier may exist in the form of an identifier bit, or may also exist in the form of a tag, which is not limited herein.
In the above embodiment, after the message is generated, it is first determined whether the message is file-related, and if so, a file identifier is added, so that the common processing module generates a corresponding socket instance, thereby facilitating subsequent processing.
In one embodiment, the step of sending the message to the corresponding social security center through the interface may include: storing the message as a log; judging whether the message is file-related; when the message is file-related, the file corresponding to the message is sent to the corresponding social security center, and the message is sent to the corresponding social security center through an interface; and when the message is not related to the file, directly sending the message to the corresponding social security center through the interface.
Specifically, after the socket instance is generated according to the generated XML message, a saving step is further included, namely the acquired character string, socket information and social security center configuration information are saved as log records and stored in a human-social interface request response record table which is stored in a database before the message is processed. Therefore, after the message is sent with errors, the corresponding log record can be searched to judge the reason of the errors, so that the message and the like can be adjusted in a targeted manner, and the next message is sent correctly.
In addition, after the message is stored, whether the message is file-related or not is continuously judged, if so, the file is actively sent to the social security center to be stored, and if not, the message is converted into a message stream and sent to the social security center. That is, if the message is file-related, the corresponding file needs to be obtained according to the parameters of the file, such as the location of the file and the size of the file, and the file is uploaded to the social security center, so that the social security center can directly read the related file after receiving the message. The message can be sent to the social security center in a byte stream mode, and the social security center can return a received message to the annuity entrusted system after receiving the message, so that the annuity entrusted system can know whether the message is sent successfully or not in time, and the message is sent again when the message is failed to be sent.
In the embodiment, after the message is generated, the message is stored, and after the message is sent with an error, the corresponding log record can be searched to judge the reason of the error, so that the message and the like can be adjusted in a targeted manner, the next message is sent correctly, and when the message is related to a file, the corresponding file is directly transmitted to the social security center, so that after the message is received by the social security center, the corresponding file can be directly obtained without obtaining the file from the annuity entrusted system again, and the number of data interaction is reduced.
Referring to fig. 5, fig. 5 is a schematic diagram of an annuity data transmitting device in an embodiment, the device including:
the module 100 for acquiring annuity data to be sent is configured to acquire the annuity data to be sent corresponding to the timing task when the existing timing task is started.
A processing method obtaining module 200, configured to obtain a basic configuration of the interface according to the interface identifier corresponding to the timing task, and obtain a processing method corresponding to the basic configuration.
A social security center configuration table obtaining module 300, configured to obtain the social security center configuration table according to the social security center identifier corresponding to the timing task.
And a configuration template obtaining module 400, configured to obtain a configuration template according to the interface identifier and the social security center configuration table.
A message generating module 500, configured to input the acquired annuity data to be sent to the acquired configuration template through a processing method to generate a message.
A sending module 600, configured to send the message to the corresponding social security center through an interface.
In one embodiment, the apparatus may further include:
and the receiving module is used for receiving a sending instruction of annuity data to be sent through a webpage.
And the input module is used for inputting the annuity data to be sent into the corresponding interface table according to the sending instruction.
And the timing task generating module is used for configuring a timing task corresponding to the sending instruction.
In one embodiment, the apparatus may further include: and the first checking module is used for physically checking the annuity data to be sent after acquiring the annuity data to be sent corresponding to the timing task.
The first feedback module is used for acquiring a user identifier corresponding to the timing task if the verification fails; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the message generating module may include:
and the public domain node data generating unit is used for generating public domain node data according to the social security center configuration table.
And the service node data generation unit is used for generating service node data according to the social security center configuration table and the acquired annuity data to be sent.
And the message generating unit is used for generating a message according to the configuration module, the public domain node data and the service node data.
In one embodiment, the apparatus may further include:
and the second check module is used for performing physical check on the configuration module, the public domain node data and the service node data before generating the message according to the configuration module, the public domain node data and the service node data.
The second feedback module is used for acquiring a user identifier corresponding to the timing task if the verification fails; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the sending module may include:
and the storage unit is used for storing the message as a log.
And the judging unit is used for judging whether the message is file-related or not.
The sending unit is used for sending the file corresponding to the message to the corresponding social security center and sending the message to the corresponding social security center through an interface when the message is file-related; and when the message is not related to the file, directly sending the message to the corresponding social security center through the interface.
In one embodiment, the apparatus may further include:
the file identifier adding module is used for judging whether the generated message is related to a file or not; and when the message is file-related, adding the file identification into the message.
For specific limitations of the annuity data transmission device, reference may be made to the above limitations on the annuity data transmission method, which are not described herein again. The modules in the annuity data transmission device can be wholly or partially 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 annuity data transmission 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, corresponding to the annuity trusted system in fig. 1, 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 transmission 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: when the existing timing task is started, acquiring annuity data to be sent corresponding to the timing task; acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task; acquiring a processing method corresponding to the basic configuration; acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task; acquiring a configuration template according to the interface identifier and the social security center configuration table; inputting the acquired annuity data to be sent into the acquired configuration template through a processing method to generate a message; and sending the message to a corresponding social security center through an interface.
In one embodiment, the processor when executing the program may further implement the following steps: receiving a sending instruction of annuity data to be sent through a webpage; inputting annuity data to be sent into a corresponding interface table according to a sending instruction; and configuring a timing task corresponding to the sending instruction.
In one embodiment, after the step of acquiring annuity data to be sent corresponding to the timing task, which is implemented when the processor executes the program, the method may further include: carrying out physical verification on annuity data to be sent; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of inputting the acquired annuity data to be sent into the acquired configuration template by the processing method to generate the message when the processor executes the program may include: generating public domain node data according to a social security center configuration table; generating service node data according to a social security center configuration table and the acquired annuity data to be sent; and generating a message according to the configuration module, the public domain node data and the service node data.
In one embodiment, before the step of generating the packet according to the configuration module, the public domain node data, and the service node data, which is implemented when the processor executes the program, the method may further include: carrying out physical verification on the configuration module, the public domain node data and the service node data; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of sending the message to the corresponding social security center through the interface when the processor executes the program may include: storing the message as a log; judging whether the message is file-related; when the message is file-related, the file corresponding to the message is sent to the corresponding social security center, and the message is sent to the corresponding social security center through an interface; and when the message is not related to the file, directly sending the message to the corresponding social security center through the interface.
In one embodiment, after the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate the message through the processing method when the processor executes the program, the method may further include: judging whether the generated message is related to a file or not; and when the message is file-related, adding the file identification into the message.
For the above definition of the computer device, reference may be made to the above specific definition of the annuity data transmission 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: when the existing timing task is started, acquiring annuity data to be sent corresponding to the timing task; acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task; acquiring a processing method corresponding to the basic configuration; acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task; acquiring a configuration template according to the interface identifier and the social security center configuration table; inputting the acquired annuity data to be sent into the acquired configuration template through a processing method to generate a message; and sending the message to a corresponding social security center through an interface.
In one embodiment, the program when executed by the processor further performs the steps of: receiving a sending instruction of annuity data to be sent through a webpage; inputting annuity data to be sent into a corresponding interface table according to a sending instruction; and configuring a timing task corresponding to the sending instruction.
In one embodiment, after the step of acquiring annuity data to be sent corresponding to the timing task, which is implemented when the program is executed by the processor, the method may further include: carrying out physical verification on annuity data to be sent; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of inputting the acquired annuity data to be sent into the acquired configuration template through a processing method to generate a message, which is implemented when the program is executed by the processor, may include: generating public domain node data according to a social security center configuration table; generating service node data according to a social security center configuration table and the acquired annuity data to be sent; and generating a message according to the configuration module, the public domain node data and the service node data.
In one embodiment, before the step of generating the packet according to the configuration module, the public domain node data, and the service node data when the program is executed by the processor, the method may further include: carrying out physical verification on the configuration module, the public domain node data and the service node data; if the verification is not passed, acquiring a user identifier corresponding to the timing task; and feeding back the information of the verification failure to the user terminal corresponding to the user identifier.
In one embodiment, the step of sending the message to the corresponding social security center through the interface when the program is executed by the processor may include: storing the message as a log; judging whether the message is file-related; when the message is file-related, the file corresponding to the message is sent to the corresponding social security center, and the message is sent to the corresponding social security center through an interface; and when the message is not related to the file, directly sending the message to the corresponding social security center through the interface.
In one embodiment, after the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate a message by the processing method implemented when the program is executed by the processor, the method may further include: judging whether the generated message is related to a file or not; and when the message is file-related, adding the file identification into the message.
The above-mentioned limitations on the computer-readable storage medium can be referred to the above specific limitations on the annuity data transmission method, and are 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 sending method, the method comprising:
the method comprises the steps that a public processing module located in an internal private line area detects whether a timing task is started, when the timing task is started, a public interface module is triggered, annual fund data to be sent corresponding to the timing task is obtained through the public interface module, and the timing task is started after the annual fund data to be sent are collected;
acquiring the basic configuration of an interface according to the interface identifier corresponding to the timing task;
acquiring a processing method corresponding to the basic configuration, wherein the processing method is a public processing class, and the basic configuration is a subclass under the public processing class;
acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task;
acquiring a configuration template according to the interface identifier and the social security center configuration table;
inputting the acquired annuity data to be sent into the acquired configuration template by the processing method to generate a message;
and sending the message to a corresponding social security center through the interface.
2. The method of claim 1, further comprising:
receiving a sending instruction of annuity data to be sent through a webpage;
inputting the annuity data to be sent into a corresponding interface table according to the sending instruction;
and configuring a timing task corresponding to the sending instruction.
3. The method according to claim 2, wherein the step of obtaining annuity data to be sent corresponding to the timing task is followed by further comprising:
carrying out physical verification on the annuity data to be sent;
if the verification is not passed, acquiring a user identifier corresponding to the timing task;
and feeding back information of verification failure to the user terminal corresponding to the user identifier.
4. The method according to claim 1, wherein the step of inputting the acquired annuity data to be sent into the acquired configuration template by the processing method to generate a message comprises:
generating public domain node data according to the social security center configuration table;
generating service node data according to the social security center configuration table and the acquired annuity data to be sent;
and generating a message according to the configuration module, the public domain node data and the service node data.
5. The method according to claim 4, wherein before the step of generating the packet according to the configuration module, the public domain node data, and the service node data, the method further comprises:
performing physical verification on the configuration module, the public domain node data and the service node data;
if the verification is not passed, acquiring a user identifier corresponding to the timing task;
and feeding back information of verification failure to the user terminal corresponding to the user identifier.
6. The method of claim 1, wherein the step of sending the message to the corresponding social security center via the interface comprises:
storing the message as a log;
judging whether the message is file-related or not;
when the message is file-related, sending the file corresponding to the message to a corresponding social security center, and sending the message to the corresponding social security center through the interface;
and when the message is not related to the file, directly sending the message to a corresponding social security center through the interface.
7. The method according to claim 1, wherein after the step of inputting the acquired annuity data to be sent into the acquired configuration template to generate a message by the processing method, the method further comprises:
judging whether the generated message is related to a file or not;
and when the message is file-related, adding a file identifier into the message.
8. An annuity data transmission apparatus, comprising:
the system comprises a module for acquiring annuity data to be sent, a module for acquiring the annuity data to be sent, a public processing module and a public interface module, wherein the module for acquiring the annuity data to be sent is used for detecting whether a timing task is started or not by the public processing module located in an internal private line area;
a processing method obtaining module, configured to obtain, according to an interface identifier corresponding to the timing task, a basic configuration of an interface, where the processing method is a public processing class, and the basic configuration is a subclass of the public processing class;
the social security center configuration table acquisition module is used for acquiring a social security center configuration table according to the social security center identifier corresponding to the timing task;
the configuration template acquisition module is used for acquiring a configuration template according to the interface identifier and the social security center configuration table;
the message generation module is used for inputting the acquired annuity data to be sent into the acquired configuration template through the processing method to generate a message;
and the sending module is used for sending the message to a corresponding social security center through the interface.
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 7 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 7.
CN201711213258.XA 2017-11-28 2017-11-28 Annuity data sending method and device, computer equipment and storage medium Active CN108062714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711213258.XA CN108062714B (en) 2017-11-28 2017-11-28 Annuity data sending method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711213258.XA CN108062714B (en) 2017-11-28 2017-11-28 Annuity data sending method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108062714A CN108062714A (en) 2018-05-22
CN108062714B true CN108062714B (en) 2021-01-26

Family

ID=62135087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711213258.XA Active CN108062714B (en) 2017-11-28 2017-11-28 Annuity data sending method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108062714B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871354B (en) * 2019-01-16 2023-08-22 平安科技(深圳)有限公司 File processing method and device
CN110363419B (en) * 2019-07-10 2022-05-13 拉扎斯网络科技(上海)有限公司 Task data processing method and device, electronic equipment and medium
CN111859041B (en) * 2020-07-24 2023-07-18 中国工商银行股份有限公司 Data reporting method and device
CN113726781B (en) * 2021-08-31 2023-05-16 平安养老保险股份有限公司 Message information processing method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833357A (en) * 2011-06-17 2012-12-19 上海晨阑数据技术有限公司 Interface platform communicating with third party
CN103067462A (en) * 2012-12-19 2013-04-24 东软集团股份有限公司 Document transmission method and device based on Mirror Link protocol
US9137116B1 (en) * 2012-07-12 2015-09-15 Juniper Networks, Inc. Routing protocol interface for generalized data distribution
US20160180327A1 (en) * 2014-12-19 2016-06-23 Capital One Services, Llc Systems and methods for contactless and secure data transfer
CN105808365A (en) * 2016-03-22 2016-07-27 深圳市宁远科技股份有限公司 HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN106487712A (en) * 2016-11-24 2017-03-08 泰康保险集团股份有限公司 For accessing method, device and the server of multiple external systems
CN107181663A (en) * 2017-06-28 2017-09-19 联想(北京)有限公司 A kind of message processing method, relevant device and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833357A (en) * 2011-06-17 2012-12-19 上海晨阑数据技术有限公司 Interface platform communicating with third party
US9137116B1 (en) * 2012-07-12 2015-09-15 Juniper Networks, Inc. Routing protocol interface for generalized data distribution
CN103067462A (en) * 2012-12-19 2013-04-24 东软集团股份有限公司 Document transmission method and device based on Mirror Link protocol
US20160180327A1 (en) * 2014-12-19 2016-06-23 Capital One Services, Llc Systems and methods for contactless and secure data transfer
CN105808365A (en) * 2016-03-22 2016-07-27 深圳市宁远科技股份有限公司 HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN106487712A (en) * 2016-11-24 2017-03-08 泰康保险集团股份有限公司 For accessing method, device and the server of multiple external systems
CN107181663A (en) * 2017-06-28 2017-09-19 联想(北京)有限公司 A kind of message processing method, relevant device and computer-readable recording medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108062714B (en) Annuity data sending method and device, computer equipment and storage medium
US10409711B2 (en) Automatically running tests against WEB APIs based on specifications
US20210248062A1 (en) System and Method for Data Collection and Analysis of Information Relating to Mobile Applications
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
US8793660B2 (en) Automated testing of programming code for a web service
IL275042A (en) Self-adaptive application programming interface level security monitoring
CN110569035A (en) Code compiling method, device, equipment and storage medium of software development project
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN110135129B (en) Code segment protection method and device, computer equipment and storage medium
CN109308227B (en) Fault detection control method and related equipment
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
JP6614756B2 (en) Transaction system error detection method, apparatus, storage medium, and computer device
CN108829838B (en) Batch processing method of account information and server
CN110765001B (en) Modularized automatic test method and device for application system
CN108234549B (en) Policy information checking method and device
CN108052550B (en) Annuity data receiving method and device, computer equipment and storage medium
CN105094959B (en) It is a kind of that the method and apparatus of reconciliation file are provided
CN107426266B (en) Data processing method and server
CN115328759A (en) Form verification method and device
CN107943969B (en) Annuity data file sending method and device, computer equipment and storage medium
CN108062713B (en) Annuity data file obtaining method and device, computer equipment and storage medium
CN112769674B (en) Mailbox signature generation method and device, readable storage medium and computer equipment
CN109492375B (en) SAP ERP single sign-on system based on JAVA middleware integration mode
US9684557B2 (en) System and method for facilitating recovery from a document creation error
US20220244938A1 (en) Method and system for code maintenance

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