Disclosure of Invention
The invention provides a data reporting method, a data reporting device, data reporting equipment and a storage medium, which are used for improving credit investigation data reporting efficiency and reducing reporting code redundancy in reporting main body mechanisms.
In order to achieve the above object, a first aspect of the present invention provides a data reporting method, including: when an interface standard data uploading request sent by each credit investigation reporting system is received, storing standardized business rule data corresponding to each credit investigation reporting system into a software-as-a-service system based on the interface standard data uploading request, wherein each credit investigation reporting system has a corresponding tenant; when a credit investigation data uploading request sent by each credit investigation reporting system is received, performing data verification on the credit investigation data uploading request through standardized business rule data corresponding to each credit investigation reporting system in the software-as-a-service system to obtain a verification result; when the verification result is that the verification is passed, acquiring credit investigation service data to be reported from the credit investigation data uploading request, and performing data packet encapsulation and file conversion processing on the credit investigation service data to be reported to obtain a message file corresponding to each credit investigation reporting system; and respectively pushing message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, wherein the target terminal is used for indicating the software, namely a control terminal corresponding to the service system.
Optionally, in a first implementation manner of the first aspect of the present invention, when an interface specification data upload request sent by each credit investigation reporting system is received, the standardized service rule data corresponding to each credit investigation reporting system is stored in a software-as-a-service system based on the interface specification data upload request, where each credit investigation reporting system has a corresponding tenant, where the method includes: when an interface specification data uploading request sent by each credit investigation reporting system is received, judging whether the interface specification data uploading request is a request of a universal gateway interface type, wherein each credit investigation reporting system has a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, performing parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to each credit investigation reporting system, scene types corresponding to each credit investigation reporting system, service types corresponding to each credit investigation reporting system and standardized service rule data corresponding to each credit investigation reporting system; and setting the tenant identification corresponding to each credit investigation reporting system as an index value, and writing the service type corresponding to each credit investigation reporting system, the scene type corresponding to each credit investigation reporting system and the standardized service rule data corresponding to each credit investigation reporting system into a software, namely a service system based on the index value.
Optionally, in a second implementation manner of the first aspect of the present invention, when receiving a credit investigation data upload request sent by each credit investigation reporting system, performing data verification on the credit investigation data upload request through standardized service rule data corresponding to each credit investigation reporting system in the software-as-a-service system to obtain a verification result, where the method includes: when a credit investigation data uploading request sent by each credit investigation reporting system is received, extracting a file type corresponding to each credit investigation reporting system, a scene type corresponding to each credit investigation reporting system, a tenant identification corresponding to each credit investigation reporting system, a service type corresponding to each credit investigation reporting system and credit investigation service data to be reported sent by each credit investigation reporting system from the credit investigation data uploading request; inquiring the software, namely the service system according to the tenant identification corresponding to each credit investigation reporting system to obtain inquiry data; when the query data is not null, reading standardized service rule data corresponding to each credit investigation reporting system from the query data according to the service type corresponding to each credit investigation reporting system; judging whether the credit investigation service data to be reported accords with the standardized service rule data corresponding to each credit investigation reporting system; if the credit investigation service data to be reported accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is passed; and if the credit investigation service data to be reported do not accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is verification failure.
Optionally, in a third implementation manner of the first aspect of the present invention, when the verification result is that the verification is passed, the method for obtaining credit investigation service data to be reported from the credit investigation data upload request, and performing data packet encapsulation and file conversion on the credit investigation service data to be reported to obtain a packet file corresponding to each credit investigation reporting system includes: when the verification result is that the verification is passed, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit investigation reporting system and the service type corresponding to each credit investigation reporting system; performing data analysis on the credit investigation service data to be reported to obtain a data type corresponding to the credit investigation service data to be reported, and performing data packet encapsulation on the credit investigation service data to be reported based on a message encapsulation rule and the data type to obtain message data corresponding to each credit investigation reporting system; and converting the message data corresponding to each credit investigation reporting system into the message file corresponding to each credit investigation reporting system according to the file type corresponding to each credit investigation reporting system.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the pushing the message files corresponding to the credit investigation reporting systems to a preset cloud storage service system and a target terminal respectively, where the target terminal is configured to indicate the control terminal corresponding to the software-as-a-service system, includes: carrying out file compression on message files corresponding to all credit investigation reporting systems to obtain compressed files corresponding to all credit investigation reporting systems; synchronizing compressed files corresponding to each credit investigation reporting system to a preset cloud storage service system through a preset message queue, so that the preset cloud storage service system performs fragment storage on the compressed files corresponding to each credit investigation reporting system; and acquiring file information corresponding to the message file, and pushing the file information to a target terminal through a preset application program interface so that the target terminal displays the file information, wherein the target terminal is used for indicating a control terminal of a software-as-a-service system, and the file information comprises a file name, a message file unique code and a file link address.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the message files corresponding to the credit investigation reporting systems are respectively pushed to a preset cloud storage service system and a target terminal, and the target terminal is used to indicate the software as a control terminal corresponding to the service system, the data reporting method further includes: receiving a message updating request sent by the target terminal, and performing parameter analysis on the message updating request to obtain a unique code and an operation type of a message file; and deleting or correcting the content of the message file corresponding to the target credit reporting system according to the unique code of the message file and the operation type.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the message files corresponding to the credit investigation reporting systems are respectively pushed to a preset cloud storage service system and a target terminal, and the target terminal is used to indicate the software as a control terminal corresponding to the service system, the data reporting method further includes: receiving a file downloading request sent by the target terminal, and performing parameter analysis on the file downloading request to obtain a unique code of a message file; and using the unique code of the message file as an index, searching a target message file corresponding to a target credit investigation reporting system from the preset cloud storage service system, and transmitting the target message file corresponding to the target credit investigation reporting system to the target terminal.
A second aspect of the present invention provides a data reporting apparatus, including: the storage module is used for storing the standardized business rule data corresponding to each credit investigation reporting system into a software-as-a-service system based on the interface specification data uploading request when the interface specification data uploading request sent by each credit investigation reporting system is received, wherein each credit investigation reporting system has a corresponding tenant; the verification module is used for performing data verification on the credit investigation data uploading request through standardized business rule data corresponding to each credit investigation reporting system in the software-as-a-service system when receiving the credit investigation data uploading request sent by each credit investigation reporting system to obtain a verification result; the conversion module is used for acquiring credit investigation service data to be reported from the credit investigation data uploading request when the verification result is that the verification is passed, and performing data message encapsulation and file conversion processing on the credit investigation service data to be reported to obtain message files corresponding to each credit investigation reporting system; and the pushing module is used for pushing the message files corresponding to the credit investigation reporting systems to a preset cloud storage service system and a target terminal respectively, and the target terminal is used for indicating the software, namely a control terminal corresponding to the service system.
Optionally, in a first implementation manner of the second aspect of the present invention, the storage module is specifically configured to: when an interface specification data uploading request sent by each credit investigation reporting system is received, judging whether the interface specification data uploading request is a request of a universal gateway interface type, wherein each credit investigation reporting system has a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, performing parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to each credit investigation reporting system, scene types corresponding to each credit investigation reporting system, service types corresponding to each credit investigation reporting system and standardized service rule data corresponding to each credit investigation reporting system; and setting the tenant identification corresponding to each credit investigation reporting system as an index value, and writing the service type corresponding to each credit investigation reporting system, the scene type corresponding to each credit investigation reporting system and the standardized service rule data corresponding to each credit investigation reporting system into a software, namely a service system based on the index value.
Optionally, in a second implementation manner of the second aspect of the present invention, the verification module is specifically configured to: when a credit investigation data uploading request sent by each credit investigation reporting system is received, extracting a file type corresponding to each credit investigation reporting system, a scene type corresponding to each credit investigation reporting system, a tenant identification corresponding to each credit investigation reporting system, a service type corresponding to each credit investigation reporting system and credit investigation service data to be reported sent by each credit investigation reporting system from the credit investigation data uploading request; inquiring the software, namely the service system according to the tenant identification corresponding to each credit investigation reporting system to obtain inquiry data; when the query data is not null, reading standardized service rule data corresponding to each credit investigation reporting system from the query data according to the service type corresponding to each credit investigation reporting system; judging whether the credit investigation service data to be reported accords with the standardized service rule data corresponding to each credit investigation reporting system; if the credit investigation service data to be reported accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is passed; and if the credit investigation service data to be reported do not accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is verification failure.
Optionally, in a third implementation manner of the second aspect of the present invention, the conversion processing is specifically configured to: when the verification result is that the verification is passed, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit investigation reporting system and the service type corresponding to each credit investigation reporting system; performing data analysis on the credit investigation service data to be reported to obtain a data type corresponding to the credit investigation service data to be reported, and performing data packet encapsulation on the credit investigation service data to be reported based on a message encapsulation rule and the data type to obtain message data corresponding to each credit investigation reporting system; and converting the message data corresponding to each credit investigation reporting system into the message file corresponding to each credit investigation reporting system according to the file type corresponding to each credit investigation reporting system.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the pushing module is specifically configured to: carrying out file compression on message files corresponding to all credit investigation reporting systems to obtain compressed files corresponding to all credit investigation reporting systems; synchronizing compressed files corresponding to each credit investigation reporting system to a preset cloud storage service system through a preset message queue, so that the preset cloud storage service system performs fragment storage on the compressed files corresponding to each credit investigation reporting system; and acquiring file information corresponding to the message file, and pushing the file information to a target terminal through a preset application program interface so that the target terminal displays the file information, wherein the target terminal is used for indicating a control terminal of a software-as-a-service system, and the file information comprises a file name, a message file unique code and a file link address.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the data reporting apparatus further includes: the updating module is used for receiving a message updating request sent by the target terminal, and performing parameter analysis on the message updating request to obtain a unique code and an operation type of a message file; and the processing module is used for carrying out content deletion or correction operation on the message file corresponding to the target credit reporting system according to the unique code of the message file and the operation type.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the data reporting apparatus further includes: the downloading module is used for receiving a file downloading request sent by the target terminal, and performing parameter analysis on the file downloading request to obtain a unique code of the message file; and the transmission module is used for searching a target message file corresponding to a target credit investigation reporting system from the preset cloud storage service system by taking the unique code of the message file as an index, and transmitting the target message file corresponding to the target credit investigation reporting system to the target terminal.
A third aspect of the present invention provides a data reporting apparatus, including: a memory and at least one processor, the memory having stored therein a computer program; the at least one processor calls the computer program in the memory to enable the data reporting device to execute the data reporting method.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the data reporting method.
In the technical scheme provided by the invention, when an interface standard data uploading request sent by each credit investigation reporting system is received, the standardized service rule data corresponding to each credit investigation reporting system is stored in a software-as-a-service system based on the interface standard data uploading request, and each credit investigation reporting system has a corresponding tenant; when a credit investigation data uploading request sent by each credit investigation reporting system is received, performing data verification on the credit investigation data uploading request through standardized business rule data corresponding to each credit investigation reporting system in the software-as-a-service system to obtain a verification result; when the verification result is that the verification is passed, acquiring credit investigation service data to be reported from the credit investigation data uploading request, and performing data packet encapsulation and file conversion processing on the credit investigation service data to be reported to obtain a message file corresponding to each credit investigation reporting system; and respectively pushing message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, wherein the target terminal is used for indicating the software, namely a control terminal corresponding to the service system. In the embodiment of the invention, the standardized business rule data corresponding to each credit investigation reporting system is stored in the software service system, and the credit investigation data uploading request is sequentially subjected to data verification, data message encapsulation and file conversion processing through the standardized business rule data corresponding to each credit investigation reporting system in the software service system, so that the credit investigation data reporting efficiency is improved, and the redundancy of reporting codes in each reporting main body mechanism is reduced.
Detailed Description
The embodiment of the invention provides a data reporting method, a data reporting device, data reporting equipment and a storage medium, which are used for improving credit investigation data reporting efficiency and reducing the redundancy of reporting codes in reporting main body mechanisms.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a data reporting method in the embodiment of the present invention includes:
101. when an interface standard data uploading request sent by each credit investigation reporting system is received, storing the standard business rule data corresponding to each credit investigation reporting system into a software-as-a-service system based on the interface standard data uploading request, wherein each credit investigation reporting system has a corresponding tenant.
Each tenant can be a person or an enterprise, each tenant is used for indicating different types of reporting mechanisms of business data interacting with software, namely service, and each tenant corresponds to each credit investigation reporting system one by one, and each tenant is in butt joint with software, namely service, SaaS, through a public gateway interface. Specifically, each credit reporting system performs service data acquisition and data reporting standardization processing according to a preset data acquisition rule to obtain standardized service rule data, and generates a corresponding interface standard data uploading request based on the standardized service rule data; the method comprises the steps that a server receives interface specification data uploading requests sent by various credit investigation reporting systems, and the various credit investigation reporting systems have corresponding tenants; the server analyzes parameters of the interface standard data uploading request sent by each credit investigation reporting system to obtain standardized service rule data corresponding to each credit investigation reporting system; and the standardized business rule data corresponding to each credit reporting system of the server is updated to the software, namely the service system.
It should be understood that the execution subject of the present invention may be a data reporting apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
102. When a credit investigation data uploading request sent by each credit investigation reporting system is received, the data verification is carried out on the credit investigation data uploading request through the standardized business rule data corresponding to each credit investigation reporting system in the software-as-a-service system, and a verification result is obtained.
It should be noted that each credit investigation reporting system executes a preset data processing task corresponding to each credit investigation reporting system to obtain credit investigation service data to be reported corresponding to each credit investigation reporting system, and the preset data processing task corresponding to each credit investigation reporting system is used for indicating a service type corresponding to each credit investigation reporting system and a service logic related to a corresponding service scenario. Specifically, when the server receives credit investigation data uploading requests sent by each credit investigation reporting system, the server acquires credit investigation service data to be reported corresponding to each credit investigation reporting system from the credit investigation data uploading requests sent by each credit investigation reporting system; and the server performs data verification on credit investigation service data to be reported through standardized service rule data corresponding to each credit investigation reporting system in the software, namely the service system, so as to obtain a verification result. That is, the server performs data unified processing on the credit investigation service data to be reported corresponding to each credit investigation reporting system in the credit investigation data uploading request through software, namely the service system, so that the credit investigation data uploading efficiency of each credit investigation reporting system is reduced, and the redundancy of the uploading code in each reporting main body mechanism (namely, each credit investigation reporting system) is reduced.
Further, the server determines whether the verification result is a preset value, if the verification result is the preset value, the server determines that the verification result is that the verification is passed, and the server executes step 103; if the verification result is not the preset value, the server determines that the verification result is verification failure, and the server returns verification abnormal information to each credit investigation reporting system.
103. And when the verification result is that the verification is passed, acquiring credit investigation service data to be reported from the credit investigation data uploading request, and performing data message encapsulation and file conversion on the credit investigation service data to be reported to obtain a message file corresponding to each credit investigation reporting system.
It should be noted that, when the verification result is that the verification passes, the verification result is a preset value, and the preset value may be 1 or logic true, or may be other types of data, which is not limited herein. Specifically, the server reads credit investigation service data to be reported from a credit investigation data uploading request; the method comprises the steps that a server obtains a message encapsulation rule, the server performs data format conversion and data message encapsulation on credit investigation service data to be reported based on the message encapsulation rule to obtain message data corresponding to each credit investigation reporting system, and the message encapsulation rule can be added, deleted and modified according to an actual application scene; and the server assembles the message data corresponding to each credit investigation reporting system into a message file corresponding to each credit investigation reporting system. The credit investigation service data to be reported can be various types of data, such as structured data, semi-structured data and/or unstructured data.
104. And respectively pushing message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, wherein the target terminal is used for indicating software, namely a control terminal corresponding to the service system.
Specifically, the server stores the message files corresponding to each credit investigation reporting system into a preset file directory to obtain file storage path information and a unique message file code, the preset file directory can be a temporary folder, and the file storage path information is unique. The server reads message files corresponding to all credit investigation reporting systems from a preset file directory according to the file storage path information, and calculates information abstract values corresponding to the message files; the server calls a preset file information query interface based on the unique code of the message file, obtains a file query result from a preset cloud storage service system, compares an information abstract value corresponding to the message file with the file query result, stops uploading the message file if the information abstract value corresponding to the message file is consistent with the file query result, synchronizes the message file corresponding to each credit investigation reporting system to the preset cloud storage service system if the information abstract value corresponding to the message file is inconsistent with the file query result, and sends the message file corresponding to each credit investigation reporting system to a target terminal, wherein the target terminal is used for indicating software, namely a control terminal corresponding to the service system. Further, the server stores the message file in a blockchain database, which is not limited herein.
In the embodiment of the invention, the standardized business rule data corresponding to each credit investigation reporting system is stored in the software service system, and the credit investigation data uploading request is sequentially subjected to data verification, data message encapsulation and file conversion processing through the standardized business rule data corresponding to each credit investigation reporting system in the software service system, so that the credit investigation data reporting efficiency is improved, and the redundancy of reporting codes in each reporting main body mechanism is reduced.
Referring to fig. 2, another embodiment of a data reporting method in the embodiment of the present invention includes:
201. when an interface standard data uploading request sent by each credit investigation reporting system is received, storing the standard business rule data corresponding to each credit investigation reporting system into a software-as-a-service system based on the interface standard data uploading request, wherein each credit investigation reporting system has a corresponding tenant.
It should be noted that each tenant corresponds to a tenant identifier corresponding to each credit investigation reporting system, and each credit investigation reporting system includes an insurance terminal, a guarantee terminal, a small credit terminal, a bank terminal, and the like, and can cover all category ranges of credit investigation reporting agencies. The software-as-a-service system is bound with the preset data acquisition rule, supports all data operations in the preset data acquisition rule, and needs to change data only when the preset data acquisition rule is changed. The service types corresponding to the credit investigation reporting systems comprise personal service types corresponding to the credit investigation reporting systems and enterprise service types corresponding to the credit investigation reporting systems.
Optionally, when the server receives an interface specification data uploading request sent by each credit investigation reporting system, judging whether the interface specification data uploading request is a request of a universal gateway interface type, wherein each credit investigation reporting system has a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, the server carries out parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identification corresponding to each credit investigation reporting system, scene types corresponding to each credit investigation reporting system, service types corresponding to each credit investigation reporting system and standardized service rule data corresponding to each credit investigation reporting system; the server sets the tenant identification corresponding to each credit investigation reporting system as an index value, and writes the service type corresponding to each credit investigation reporting system, the scene type corresponding to each credit investigation reporting system and the standardized service rule data corresponding to each credit investigation reporting system into the software, namely the service system based on the index value.
Further, if the interface specification data uploading request is not a request of a universal gateway interface type, the server generates request type error information and sends the request type error information to a corresponding credit investigation reporting system.
202. When a credit investigation data uploading request sent by each credit investigation reporting system is received, the data verification is carried out on the credit investigation data uploading request through the standardized business rule data corresponding to each credit investigation reporting system in the software-as-a-service system, and a verification result is obtained.
It can be understood that the standardized service rule data corresponding to each credit reporting system includes a field name, a data length corresponding to the field value, a data type corresponding to the field value, whether the field value is allowed to be a null value, a default value corresponding to the field value, a value range corresponding to the field value, and the like. The server verifies each field of the credit investigation service data to be reported one by one according to a plurality of preset fields and the standardized service rule data corresponding to each credit investigation reporting system, and when all the fields and the field values conform to the standardized service rule data corresponding to each credit investigation reporting system, the server determines that the credit investigation service data to be reported conforms to the standardized service rule data corresponding to each credit investigation reporting system.
Optionally, when the server receives credit investigation data uploading requests sent by each credit investigation reporting system, extracting a file type corresponding to each credit investigation reporting system, a scene type corresponding to each credit investigation reporting system, a tenant identifier corresponding to each credit investigation reporting system, a service type corresponding to each credit investigation reporting system, and credit investigation service data to be reported sent by each credit investigation reporting system from the credit investigation data uploading requests; the server queries software, namely a service system, according to the tenant identification corresponding to each credit investigation reporting system to obtain query data; when the query data is not null, the server reads the standardized service rule data corresponding to each credit investigation reporting system from the query data according to the service type corresponding to each credit investigation reporting system; the server judges whether the credit investigation service data to be reported conform to the standardized service rule data corresponding to each credit investigation reporting system; if the credit investigation service data to be reported conforms to the standardized service rule data corresponding to each credit investigation reporting system, the server determines that the verification result is that the verification is passed, and the server executes the step 203; and if the credit investigation service data to be reported do not accord with the standardized service rule data corresponding to each credit investigation reporting system, the server determines that the verification result is verification failure.
203. And when the verification result is that the verification is passed, acquiring credit investigation service data to be reported from the credit investigation data uploading request, and performing data message encapsulation and file conversion on the credit investigation service data to be reported to obtain a message file corresponding to each credit investigation reporting system.
It can be understood that the scene type corresponding to each credit investigation reporting system may be a general service scene type, and may also be a credit service scene type, which is not limited herein. The software-as-a-service system supports generation of report message files of individual business types and enterprise business types. The personal service type supports generation of message files such as personal basic information, personal guarantee transaction information, personal loan transaction information, and (quality) deposit information. The enterprise business type supports generation of message files such as enterprise basic information, enterprise loan transaction information, enterprise guarantee transaction information, enterprise credit agreement information, enterprise financial statement information and the like. The file type corresponding to each credit investigation reporting system can be a JS object numbered musical notation data type, and can also be a data serialization type, and is not limited herein specifically, and the file content in the message file can be an object type.
Optionally, when the verification result is that the verification passes, the server reads a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit investigation reporting system and the service type corresponding to each credit investigation reporting system; the server carries out data analysis on credit investigation service data to be reported to obtain a data type corresponding to the credit investigation service data to be reported, and carries out data message encapsulation on the credit investigation service data to be reported based on a message encapsulation rule and the data type to obtain message data corresponding to each credit investigation reporting system; and the server converts the message data corresponding to each credit investigation reporting system into the message file corresponding to each credit investigation reporting system according to the file type corresponding to each credit investigation reporting system.
204. And respectively pushing message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, wherein the target terminal is used for indicating software, namely a control terminal corresponding to the service system.
The cloud storage service system is used for indicating to archive, arrange and distribute message files integrated from virtual storage volumes of different physical hardware according to needs. Optionally, the server performs file compression on the message file corresponding to each credit investigation reporting system to obtain a compressed file corresponding to each credit investigation reporting system; the server synchronizes compressed files corresponding to each credit investigation reporting system to a preset cloud storage service system through a preset message queue, so that the preset cloud storage service system performs fragment storage on the compressed files corresponding to each credit investigation reporting system; the server acquires file information corresponding to the message file and pushes the file information to a target terminal through a preset application program interface so that the target terminal can display the file information, the target terminal is used for indicating software, namely a control terminal of a service system, and the file information comprises a file name, a message file unique code and a file link address.
205. And receiving a file downloading request sent by the target terminal, and performing parameter analysis on the file downloading request to obtain the unique code of the message file.
That is to say, the target terminal sends a file downloading request to the software, i.e. the service system, in the server, the software, i.e. the service system, receives the file downloading request sent by the target terminal, and performs parameter analysis on the file downloading request to obtain a parameter analysis result, and when the parameter analysis result is not a null value and conforms to the file encoding rule, the server extracts the unique code of the message file from the parameter analysis result, where the unique code of the message file may be an encoding character string of one message file or encoding character strings of multiple message files, and this is not limited herein. For example, the message file is uniquely encoded as "file _ 001", or "file _001, file _002, and file _ 003".
Further, the parameter parsing result may further include a target user identifier, that is, a user identifier value of a successfully logged-in target terminal. For example, the target user is identified as user-A.
206. And taking the unique code of the message file as an index, searching a target message file corresponding to the target credit investigation reporting system from a preset cloud storage service system, and transmitting the target message file corresponding to the target credit investigation reporting system to a target terminal.
Specifically, the server inquires a preset role authority data table according to the target user identification to obtain user authority information, and the server judges whether the user authority information comprises file downloading authority data or not; if the user permission information comprises file downloading permission data, the server takes the unique code of the message file as an index, calls a preset file query interface according to the index, searches a target message file corresponding to a target credit investigation reporting system from a preset cloud storage service system, transmits the target message file corresponding to the target credit investigation reporting system to a target terminal, and stores the target message file in a memory database by the target terminal until the target terminal finishes downloading the target message file, and stores the target message file in a preset file directory by the target terminal.
Further, the server receives a message updating request sent by the target terminal, and performs parameter analysis on the message updating request to obtain a unique code and an operation type of the message file; and the server deletes or corrects the content of the message file corresponding to the target credit reporting system according to the unique code and the operation type of the message file. For example, the operation type is del, which indicates to delete the content of the message file corresponding to the target credit investigation reporting system, and the operation type is update, which indicates to correct the content of the message file corresponding to the target credit investigation reporting system.
In the embodiment of the invention, the standardized business rule data corresponding to each credit investigation reporting system is stored in the software service system, and the credit investigation data uploading request is sequentially subjected to data verification, data message encapsulation and file conversion processing through the standardized business rule data corresponding to each credit investigation reporting system in the software service system, so that the credit investigation data reporting efficiency is improved, and the redundancy of reporting codes in each reporting main body mechanism is reduced.
As described above for the data reporting method in the embodiment of the present invention, the following describes a data reporting apparatus in the embodiment of the present invention, referring to fig. 3, an embodiment of the data reporting apparatus in the embodiment of the present invention includes:
the storage module 301 is configured to, when an interface specification data upload request sent by each credit investigation reporting system is received, store, based on the interface specification data upload request, standardized service rule data corresponding to each credit investigation reporting system into a software-as-a-service system, where each credit investigation reporting system has a corresponding tenant;
the verification module 302 is configured to perform data verification on the credit investigation data uploading request through standardized service rule data corresponding to each credit investigation reporting system in the software-as-a-service system when receiving the credit investigation data uploading request sent by each credit investigation reporting system, so as to obtain a verification result;
the conversion module 303 is configured to, when the verification result is that the verification is passed, obtain credit investigation service data to be reported from the credit investigation data uploading request, and perform data packet encapsulation and file conversion processing on the credit investigation service data to be reported to obtain a packet file corresponding to each credit investigation reporting system;
the pushing module 304 is configured to push the message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, where the target terminal is used to indicate software, i.e., a control terminal corresponding to the service system.
Further, the message file is stored in the block chain database, which is not limited herein.
In the embodiment of the invention, the standardized business rule data corresponding to each credit investigation reporting system is stored in the software service system, and the credit investigation data uploading request is sequentially subjected to data verification, data message encapsulation and file conversion processing through the standardized business rule data corresponding to each credit investigation reporting system in the software service system, so that the credit investigation data reporting efficiency is improved, and the redundancy of reporting codes in each reporting main body mechanism is reduced.
Referring to fig. 4, another embodiment of a data reporting apparatus in the embodiment of the present invention includes:
the storage module 301 is configured to, when an interface specification data upload request sent by each credit investigation reporting system is received, store, based on the interface specification data upload request, standardized service rule data corresponding to each credit investigation reporting system into a software-as-a-service system, where each credit investigation reporting system has a corresponding tenant;
the verification module 302 is configured to perform data verification on the credit investigation data uploading request through standardized service rule data corresponding to each credit investigation reporting system in the software-as-a-service system when receiving the credit investigation data uploading request sent by each credit investigation reporting system, so as to obtain a verification result;
the conversion module 303 is configured to, when the verification result is that the verification is passed, obtain credit investigation service data to be reported from the credit investigation data uploading request, and perform data packet encapsulation and file conversion processing on the credit investigation service data to be reported to obtain a packet file corresponding to each credit investigation reporting system;
the pushing module 304 is configured to push the message files corresponding to each credit investigation reporting system to a preset cloud storage service system and a target terminal, where the target terminal is used to indicate software, i.e., a control terminal corresponding to the service system.
Optionally, the storage module 301 may be further specifically configured to:
when an interface specification data uploading request sent by each credit investigation reporting system is received, judging whether the interface specification data uploading request is a request of a universal gateway interface type, wherein each credit investigation reporting system has a corresponding tenant;
if the interface specification data uploading request is a request of a universal gateway interface type, performing parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to each credit investigation reporting system, scene types corresponding to each credit investigation reporting system, service types corresponding to each credit investigation reporting system and standardized service rule data corresponding to each credit investigation reporting system;
and setting the tenant identification corresponding to each credit investigation reporting system as an index value, and writing the service type corresponding to each credit investigation reporting system, the scene type corresponding to each credit investigation reporting system and the standardized service rule data corresponding to each credit investigation reporting system into a software, namely a service system based on the index value.
Optionally, the verification module 302 may be further specifically configured to:
when credit investigation data uploading requests sent by all credit investigation reporting systems are received, extracting file types corresponding to all credit investigation reporting systems, scene types corresponding to all credit investigation reporting systems, tenant identifications corresponding to all credit investigation reporting systems, service types corresponding to all credit investigation reporting systems and credit investigation service data to be reported sent by all credit investigation reporting systems from the credit investigation data uploading requests;
inquiring software, namely a service system according to the tenant identification corresponding to each credit investigation reporting system to obtain inquiry data;
when the query data is not null, reading the standardized service rule data corresponding to each credit investigation reporting system from the query data according to the service type corresponding to each credit investigation reporting system;
judging whether credit investigation service data to be reported conform to standardized service rule data corresponding to each credit investigation reporting system;
if the credit investigation service data to be reported accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is that the verification is passed;
and if the credit investigation service data to be reported do not accord with the standardized service rule data corresponding to each credit investigation reporting system, determining that the verification result is verification failure.
Optionally, the conversion module 303 may be further specifically configured to:
when the verification result is that the verification is passed, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit investigation reporting system and the service type corresponding to each credit investigation reporting system;
performing data analysis on credit investigation service data to be reported to obtain a data type corresponding to the credit investigation service data to be reported, and performing data packet encapsulation on the credit investigation service data to be reported based on a message encapsulation rule and the data type to obtain message data corresponding to each credit investigation reporting system;
and converting the message data corresponding to each credit investigation reporting system into the message file corresponding to each credit investigation reporting system according to the file type corresponding to each credit investigation reporting system.
Optionally, the pushing module 304 may be further specifically configured to:
carrying out file compression on message files corresponding to all credit investigation reporting systems to obtain compressed files corresponding to all credit investigation reporting systems;
synchronizing compressed files corresponding to each credit investigation reporting system to a preset cloud storage service system through a preset message queue, so that the preset cloud storage service system performs fragment storage on the compressed files corresponding to each credit investigation reporting system;
the method comprises the steps of obtaining file information corresponding to a message file, and pushing the file information to a target terminal through a preset application program interface so that the target terminal can display the file information, wherein the target terminal is used for indicating software, namely a control terminal of a service system, and the file information comprises a file name, a message file unique code and a file link address.
Optionally, the data reporting apparatus further includes:
the update module 305 is configured to receive a message update request sent by a target terminal, perform parameter analysis on the message update request, and obtain a unique code and an operation type of a message file;
and the processing module 306 is configured to perform content deletion or correction operation on the message file corresponding to the target credit reporting system according to the unique code and the operation type of the message file.
Optionally, the data reporting apparatus further includes:
the downloading module 307 is configured to receive a file downloading request sent by a target terminal, perform parameter analysis on the file downloading request, and obtain a unique code of a message file;
the transmission module 308 is configured to use the unique message file code as an index, search a target message file corresponding to the target credit investigation reporting system from a preset cloud storage service system, and transmit the target message file corresponding to the target credit investigation reporting system to the target terminal.
In the embodiment of the invention, the standardized business rule data corresponding to each credit investigation reporting system is stored in the software service system, and the credit investigation data uploading request is sequentially subjected to data verification, data message encapsulation and file conversion processing through the standardized business rule data corresponding to each credit investigation reporting system in the software service system, so that the credit investigation data reporting efficiency is improved, and the redundancy of reporting codes in each reporting main body mechanism is reduced.
Fig. 3 and fig. 4 describe the data reporting apparatus in the embodiment of the present invention in detail from the perspective of modularization, and the data reporting apparatus in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a data reporting apparatus according to an embodiment of the present invention, where the data reporting apparatus 500 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of computer program operations on the data reporting device 500. Further, processor 510 may be configured to communicate with storage medium 530 to execute a series of computer program operations in storage medium 530 on data reporting device 500.
The data reporting device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the data reporting device architecture shown in fig. 5 does not constitute a limitation of the data reporting device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and may also be a volatile computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is caused to execute the steps of the data reporting method.
The present invention also provides a data reporting device, where the data reporting device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the data reporting method in the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several computer programs to enable a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.