Disclosure of Invention
The invention provides a data reporting method, a device, equipment and a storage medium, which are used for improving the reporting efficiency of credit investigation data and reducing the redundancy of reporting codes in each reporting main body mechanism.
In order to achieve the above object, a first aspect of the present invention provides a data reporting method, including: when receiving an interface specification data uploading request sent by each credit reporting system, storing standardized business rule data corresponding to each credit reporting system into a software serving system based on the interface specification data uploading request, wherein each credit reporting system has a corresponding tenant; when a credit information data uploading request sent by each credit information reporting system is received, carrying out data verification on the credit information data uploading request through the software, namely standardized business rule data corresponding to each credit information reporting system in a service system, so as to obtain a verification result; when the verification result is that verification is passed, acquiring to-be-reported credit service data from the credit data uploading request, and carrying out data message packaging and file conversion processing on the to-be-reported credit service data to obtain message files corresponding to each credit reporting system; and pushing the message files corresponding to the credit reporting systems to a preset cloud storage service system and a target terminal respectively, wherein the target terminal is used for indicating the control terminal corresponding to the software serving system.
Optionally, in a first implementation manner of the first aspect of the present invention, when receiving an interface specification data upload request sent by each credit reporting system, the standardized business rule data corresponding to each credit reporting system is stored in a software serving system based on the interface specification data upload request, where each credit reporting system has a corresponding tenant, including: when receiving an interface specification data uploading request sent by each credit reporting system, judging whether the interface specification data uploading request is a request of a universal gateway interface type or not, wherein each credit reporting system is provided with a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, carrying out parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to all credit reporting systems, scene types corresponding to all credit reporting systems, service types corresponding to all credit reporting systems and standardized service rule data corresponding to all credit reporting systems; and setting tenant identifications corresponding to the credit reporting systems as index values, and writing the service types corresponding to the credit reporting systems, the scene types corresponding to the credit reporting systems and the standardized service rule data corresponding to the credit reporting systems into a software serving system based on the index values.
Optionally, in a second implementation manner of the first aspect of the present invention, when receiving a credit information data uploading request sent by each credit information reporting system, performing data verification on the credit information data uploading request through standardized service rule data corresponding to each credit information reporting system in the software serving system, to obtain a verification result, where the verification result includes: when a credit information data uploading request sent by each credit information reporting system is received, extracting a file type corresponding to each credit information reporting system, a scene type corresponding to each credit information reporting system, a tenant identifier corresponding to each credit information reporting system, a service type corresponding to each credit information reporting system and to-be-reported credit information service data sent by each credit information reporting system from the credit information data uploading request; inquiring the software serving system according to tenant identifications corresponding to the credit reporting systems to obtain inquiry data; when the query data is not null, reading standardized business rule data corresponding to each credit reporting system from the query data according to the business type corresponding to each credit reporting system; judging whether the to-be-reported credit service data accords with standardized service rule data corresponding to each credit reporting system; if the to-be-reported credit service data accords with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is verification passing; and if the to-be-reported credit service data does not accord with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is that the verification is failed.
Optionally, in a third implementation manner of the first aspect of the present invention, when the verification result is that verification passes, acquiring to-be-reported credit service data from the credit data uploading request, and performing data message packaging and file conversion processing on the to-be-reported credit service data to obtain a message file corresponding to each credit reporting system, where the method includes: when the verification result is that verification is passed, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit reporting system and the service type corresponding to each credit reporting system; carrying out data analysis on the to-be-reported credit service data to obtain a data type corresponding to the to-be-reported credit service data, and carrying out data message encapsulation on the to-be-reported credit service data based on message encapsulation rules and the data type to obtain message data corresponding to each credit reporting system; and converting the message data corresponding to each credit reporting system into the message file corresponding to each credit reporting system according to the file type corresponding to each credit reporting system.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the pushing the message file corresponding to each credit reporting system to a preset cloud storage service system and a target terminal, where the target terminal is used to instruct the control terminal corresponding to the software serving as a service system, includes: carrying out file compression on the message files corresponding to the credit reporting systems to obtain compressed files corresponding to the credit reporting systems; synchronizing the compressed files corresponding to each credit reporting system through a preset message queue to a preset cloud storage service system, so that the preset cloud storage service system stores the compressed files corresponding to each credit reporting system in a slicing way; the method comprises the steps of obtaining file information corresponding to a message file, 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 software, namely a control terminal of a service system, and the file information comprises a file name, a unique message file code and a file link address.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after pushing the message files corresponding to each credit reporting system to a preset cloud storage service system and a target terminal, the target terminal is used for indicating the control terminal corresponding to the software serving system, the data reporting method further includes: receiving a message updating request sent by the target terminal, and carrying out parameter analysis on the message updating request to obtain a unique code and an operation type of a message file; and performing content deletion or correction operation on the message file corresponding to the target credit reporting system according to the unique message file code and the operation type.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after pushing the message files corresponding to each credit reporting system to a preset cloud storage service system and a target terminal, the target terminal is used for indicating the control terminal corresponding to the software serving system, the data reporting method further includes: receiving a file downloading request sent by the target terminal, and carrying out parameter analysis on the file downloading request to obtain a unique code of the message file; and searching a target message file corresponding to a target credit 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 reporting system to the target terminal.
The second aspect of the present invention provides a data reporting device, including: the storage module is used for storing standardized business rule data corresponding to each credit reporting system into the software serving system based on the interface specification data uploading request when receiving the interface specification data uploading request sent by each credit reporting system, wherein each credit reporting system has a corresponding tenant; the verification module is used for carrying out data verification on the credit information uploading request through the software, namely standardized business rule data corresponding to each credit information uploading system in the service system when the credit information uploading request sent by each credit information uploading system is received, so as to obtain a verification result; the conversion module is used for acquiring the to-be-reported credit service data from the credit data uploading request when the verification result is verification passing, and carrying out data message encapsulation and file conversion processing on the to-be-reported credit service data to obtain message files corresponding to each credit reporting system; the pushing module is used for pushing the message files corresponding to the credit reporting systems to a preset cloud storage service system and a target terminal respectively, and the target terminal is used for indicating the control terminal corresponding to the software serving system.
Optionally, in a first implementation manner of the second aspect of the present invention, the storage module is specifically configured to: when receiving an interface specification data uploading request sent by each credit reporting system, judging whether the interface specification data uploading request is a request of a universal gateway interface type or not, wherein each credit reporting system is provided with a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, carrying out parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to all credit reporting systems, scene types corresponding to all credit reporting systems, service types corresponding to all credit reporting systems and standardized service rule data corresponding to all credit reporting systems; and setting tenant identifications corresponding to the credit reporting systems as index values, and writing the service types corresponding to the credit reporting systems, the scene types corresponding to the credit reporting systems and the standardized service rule data corresponding to the credit reporting systems into a software serving system based on the index values.
Optionally, in a second implementation manner of the second aspect of the present invention, the verification module is specifically configured to: when a credit information data uploading request sent by each credit information reporting system is received, extracting a file type corresponding to each credit information reporting system, a scene type corresponding to each credit information reporting system, a tenant identifier corresponding to each credit information reporting system, a service type corresponding to each credit information reporting system and to-be-reported credit information service data sent by each credit information reporting system from the credit information data uploading request; inquiring the software serving system according to tenant identifications corresponding to the credit reporting systems to obtain inquiry data; when the query data is not null, reading standardized business rule data corresponding to each credit reporting system from the query data according to the business type corresponding to each credit reporting system; judging whether the to-be-reported credit service data accords with standardized service rule data corresponding to each credit reporting system; if the to-be-reported credit service data accords with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is verification passing; and if the to-be-reported credit service data does not accord with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is that the verification is failed.
Optionally, in a third implementation manner of the second aspect of the present invention, the conversion process is specifically configured to: when the verification result is that verification is passed, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit reporting system and the service type corresponding to each credit reporting system; carrying out data analysis on the to-be-reported credit service data to obtain a data type corresponding to the to-be-reported credit service data, and carrying out data message encapsulation on the to-be-reported credit service data based on message encapsulation rules and the data type to obtain message data corresponding to each credit reporting system; and converting the message data corresponding to each credit reporting system into the message file corresponding to each credit reporting system according to the file type corresponding to each credit 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 the message files corresponding to the credit reporting systems to obtain compressed files corresponding to the credit reporting systems; synchronizing the compressed files corresponding to each credit reporting system through a preset message queue to a preset cloud storage service system, so that the preset cloud storage service system stores the compressed files corresponding to each credit reporting system in a slicing way; the method comprises the steps of obtaining file information corresponding to a message file, 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 software, namely a control terminal of a service system, and the file information comprises a file name, a unique message file code and a file link address.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the data reporting device further includes: the updating module is used for receiving a message updating request sent by the target terminal, and carrying out parameter analysis on the message updating request to obtain a unique code and an operation type of the message file; and the processing module is used for performing content deletion or correction operation on the message file corresponding to the target credit reporting system according to the unique message file code and the operation type.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the data reporting device further includes: the downloading module is used for receiving a file downloading request sent by the target terminal, and carrying out parameter analysis on the file downloading request to obtain a unique code of the message file; and the transmission module is used for searching the target message file corresponding to the target credit 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 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 a computer program stored therein; and the at least one processor calls the computer program in the memory so that the data reporting device executes the data reporting method.
A fourth aspect of the present invention provides a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the above-described data reporting method.
According to the technical scheme provided by the invention, when an interface specification data uploading request sent by each credit reporting system is received, standardized business rule data corresponding to each credit reporting system is stored in a software serving system based on the interface specification data uploading request, and each credit reporting system has a corresponding tenant; when a credit information data uploading request sent by each credit information reporting system is received, carrying out data verification on the credit information data uploading request through the software, namely standardized business rule data corresponding to each credit information reporting system in a service system, so as to obtain a verification result; when the verification result is that verification is passed, acquiring to-be-reported credit service data from the credit data uploading request, and carrying out data message packaging and file conversion processing on the to-be-reported credit service data to obtain message files corresponding to each credit reporting system; and pushing the message files corresponding to the credit reporting systems to a preset cloud storage service system and a target terminal respectively, wherein the target terminal is used for indicating the control terminal corresponding to the software serving system. In the embodiment of the invention, the standardized business rule data corresponding to each credit reporting system is stored in the software serving system, and the data verification, the data message encapsulation and the file conversion processing are sequentially carried out on the credit reporting data uploading request through the standardized business rule data corresponding to each credit reporting system in the software serving system, so that the credit reporting efficiency of the credit reporting data is improved, and the reporting code redundancy in each reporting subject mechanism is reduced.
Detailed Description
The embodiment of the invention provides a data reporting method, a device, equipment and a storage medium, which are used for improving the reporting efficiency of credit investigation data and reducing the redundancy of reporting codes in each reporting main body mechanism.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, 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 or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a data reporting method in the embodiment of the present invention includes:
101. when receiving an interface specification data uploading request sent by each credit reporting system, storing standardized business rule data corresponding to each credit reporting system into a software serving system based on the interface specification data uploading request, wherein each credit reporting system has a corresponding tenant.
Each tenant can be a person or an enterprise, and is used for indicating different types of reporting mechanisms for interacting business data with the software as a service, and each tenant corresponds to each credit reporting system in a one-to-one mode and is in butt joint with the software as a 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 specification data uploading request based on the standardized service rule data; the server receives interface specification data uploading requests sent by each credit reporting system, and each credit reporting system is provided with a corresponding tenant; the server analyzes parameters of the interface specification data uploading request sent by each credit reporting system to obtain standardized business rule data corresponding to each credit reporting system; and updating standardized business rule data corresponding to each credit reporting system of the server into the software serving system.
It is understood that the execution body of the present invention may be a data reporting device, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
102. When a credit information data uploading request sent by each credit information reporting system is received, the data verification is carried out on the credit information data uploading request through software, namely standardized business rule data corresponding to each credit information reporting system in the service system, so that a verification result is obtained.
It should be noted that, each credit reporting system executes a preset data processing task corresponding to each credit reporting system to obtain the to-be-reported credit service data corresponding to each credit reporting system, where the preset data processing task corresponding to each credit reporting system is used to indicate a service type corresponding to each credit reporting system and a service logic related to a corresponding service scenario. Specifically, when the server receives a credit information data uploading request sent by each credit information reporting system, the server acquires the credit information service data to be reported corresponding to each credit information reporting system from the credit information data uploading request sent by each credit information reporting system; and the server performs data verification on the credit reporting service data to be reported through the standardized service rule data corresponding to each credit reporting system in the software-as-a-service system, so as to obtain a verification result. The server performs unified data processing on the to-be-reported credit service data corresponding to each credit reporting system in the credit reporting data uploading request through the software serving system, so that the credit reporting efficiency of each credit reporting system is reduced, and the reporting code redundancy of each reporting main body mechanism (namely, each credit reporting system) is reduced.
Further, the server judges whether the verification result is a preset value, if the verification result is the preset value, the server determines that the verification result is verification passing, and the server executes step 103; if the verification result is not the preset value, the server determines that the verification result is that the verification is not passed, and the server returns verification abnormal information to each credit reporting system.
103. And when the verification result is that verification passes, acquiring the to-be-reported credit service data from the credit data uploading request, and carrying out data message encapsulation and file conversion processing on the to-be-reported credit service data to obtain the message file corresponding to each credit 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 logical true, or may be other types of data, which is not limited herein. Specifically, the server reads the credit information service data to be reported from the credit information data uploading request; the method comprises the steps that a server obtains message encapsulation rules, the server performs data format conversion and data message encapsulation on the to-be-reported credit service data based on the message encapsulation rules to obtain message data corresponding to each credit reporting system, and the message encapsulation rules can be added, deleted and modified according to actual application scenes; and the server assembles the message data corresponding to each credit reporting system into the message file corresponding to each credit reporting system. The traffic data to be reported may be various types of data, such as structured data, semi-structured data, and/or unstructured data.
104. And pushing the message files corresponding to the credit reporting systems to a preset cloud storage service system and a target terminal respectively, wherein the target terminal is used for indicating the control terminal corresponding to the software serving system.
Specifically, the server stores the message files corresponding to each credit reporting system into a preset file directory to obtain file storage path information and unique codes of the message files, wherein the preset file directory can be a temporary folder, and the file storage path information has uniqueness. The server reads the message files corresponding to each credit reporting system from a preset file directory according to the file storage path information, and calculates the information abstract values corresponding to the message files; the server calls a preset file information query interface based on the unique message file code, a file query result is obtained from a preset cloud storage service system, the information abstract value corresponding to the message file is compared with the file query result, if the information abstract value corresponding to the message file is consistent with the file query result, the server stops uploading the message file, if the information abstract value corresponding to the message file is inconsistent with the file query result, the server synchronizes the message file corresponding to each credit reporting system to the preset cloud storage service system, and sends the message file corresponding to each credit reporting system to a target terminal, and 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 reporting system is stored in the software serving system, and the data verification, the data message encapsulation and the file conversion processing are sequentially carried out on the credit reporting data uploading request through the standardized business rule data corresponding to each credit reporting system in the software serving system, so that the credit reporting efficiency of the credit reporting data is improved, and the reporting code redundancy in each reporting subject mechanism is reduced.
Referring to fig. 2, another embodiment of a data reporting method in an embodiment of the present invention includes:
201. when receiving an interface specification data uploading request sent by each credit reporting system, storing standardized business rule data corresponding to each credit reporting system into a software serving system based on the interface specification data uploading request, wherein each credit reporting system has a corresponding tenant.
It should be noted that, each tenant corresponds to the tenant identifier corresponding to each credit reporting system one by one, and each credit reporting system includes an insurance terminal, a guarantee terminal, a small credit terminal, a bank terminal, and the like, and can cover all kinds of ranges of the credit reporting mechanism. The software is bound with the preset data acquisition rule, supports all data operations in the preset data acquisition rule, and only needs to change the data when the preset data acquisition rule is changed. The service types corresponding to the credit reporting systems comprise personal service types corresponding to the credit reporting systems and enterprise service types corresponding to the credit reporting systems.
Optionally, when the server receives the interface specification data uploading request sent by each credit reporting system, judging whether the interface specification data uploading request is a request of a universal gateway interface type or not, wherein each credit reporting system has a corresponding tenant; if the interface specification data uploading request is a request of a universal gateway interface type, the server performs parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to all credit reporting systems, scene types corresponding to all credit reporting systems, service types corresponding to all credit reporting systems and standardized service rule data corresponding to all credit reporting systems; the server sets the tenant identification corresponding to each credit reporting system as an index value, and writes the service type corresponding to each credit reporting system, the scene type corresponding to each credit reporting system and the standardized service rule data corresponding to each credit reporting system into the software serving system based on the index value.
Further, if the interface specification data uploading request is not a request of the general gateway interface type, the server generates request type error information and sends the request type error information to a corresponding credit reporting system.
202. When a credit information data uploading request sent by each credit information reporting system is received, the data verification is carried out on the credit information data uploading request through software, namely standardized business rule data corresponding to each credit information reporting system in the service system, so that a verification result is obtained.
It can be understood that the standardized business rule data corresponding to each credit reporting system includes a field name, a data length corresponding to a field value, a data type corresponding to a field value, whether the field value is allowed to be null, a default value corresponding to the field value, a numerical range corresponding to the field value, and the like. The server verifies each field of the credit information service data to be reported according to a plurality of preset fields and standardized service rule data corresponding to each credit information reporting system one by one, and when all the fields and the field values accord with the standardized service rule data corresponding to each credit information reporting system, the server determines that the credit information service data to be reported accord with the standardized service rule data corresponding to each credit information reporting system.
Optionally, when the server receives a credit data uploading request sent by each credit reporting system, extracting a file type corresponding to each credit reporting system, a scene type corresponding to each credit reporting system, a tenant identifier corresponding to each credit reporting system, a service type corresponding to each credit reporting system and to-be-reported credit service data sent by each credit reporting system from the credit data uploading request; the server inquires the software as a service system according to tenant identifications corresponding to each credit reporting system to obtain inquiry data; when the query data is not null, the server reads standardized business rule data corresponding to each credit reporting system from the query data according to the business type corresponding to each credit reporting system; the server judges whether the credit reporting service data to be reported accords with standardized service rule data corresponding to each credit reporting system; if the to-be-reported credit service data accords with the standardized service rule data corresponding to each credit reporting system, the server determines that the verification result is verification passing, and the server executes step 203; if the to-be-reported credit service data does not accord with the standardized service rule data corresponding to each credit reporting system, the server determines that the verification result is that verification fails.
203. And when the verification result is that verification passes, acquiring the to-be-reported credit service data from the credit data uploading request, and carrying out data message encapsulation and file conversion processing on the to-be-reported credit service data to obtain the message file corresponding to each credit reporting system.
It may be understood that the scene type corresponding to each credit reporting system may be a general service scene type or a credit service scene type, which is not limited herein specifically. The software-as-a-service system supports report message file generation of personal business types and enterprise business types. The personal business type supports the generation of message files such as personal basic information, personal guarantee transaction information, personal lending transaction information, substance rejection information and the like. The enterprise business type supports the generation of message files such as enterprise basic information, enterprise lending transaction information, enterprise guarantee transaction information, enterprise credit agreement information, enterprise financial statement information and the like. The file type corresponding to each credit reporting system can be a JS object numbered musical notation data type, or a data serialization type, which is not limited herein, and the file content in the message file can be an object type.
Optionally, when the verification result is that the verification is passed, the server reads the message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit reporting system and the service type corresponding to each credit reporting system; the server performs data analysis on the to-be-reported credit service data to obtain a data type corresponding to the to-be-reported credit service data, and performs data message encapsulation on the to-be-reported credit service data based on message encapsulation rules and the data type to obtain message data corresponding to each credit reporting system; and the server converts the message data corresponding to each credit reporting system into the message file corresponding to each credit reporting system according to the file type corresponding to each credit reporting system.
204. And pushing the message files corresponding to the credit reporting systems to a preset cloud storage service system and a target terminal respectively, wherein the target terminal is used for indicating the control terminal corresponding to the software serving system.
The cloud storage service system is used for indicating to archive, sort and distribute the message files integrated in the virtualized storage volumes of different physical hardware according to the requirements. Optionally, the server performs file compression on the message file corresponding to each credit reporting system to obtain a compressed file corresponding to each credit reporting system; the server synchronizes the compressed files corresponding to each credit reporting system through a preset message queue to a preset cloud storage service system, so that the preset cloud storage service system stores the compressed files corresponding to each credit reporting system in a slicing mode; the server acquires file information corresponding to the message file, pushes the file information to the target terminal through a preset application program interface, so that the target terminal displays the file information, and the target terminal is used for indicating a control terminal of the software serving system, wherein the file information comprises a file name, a unique code of the message file and a file link address.
205. And receiving a file downloading request sent by the target terminal, and carrying out parameter analysis on the file downloading request to obtain a unique code of the message file.
That is, the target terminal sends a file downloading request to the software in the server, that is, the service system, and the software in the server 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. For example, the message file is uniquely encoded as "file_001", or "file_001, file_002, file_003".
Further, the parameter analysis result may further include a target user identifier, that is, a user identifier value of the target terminal that is successfully logged in. For example, the target user is identified as user-A.
206. And searching a target message file corresponding to the target credit reporting system from a preset cloud storage service system by using the unique code of the message file as an index, and transmitting the target message file corresponding to the target credit reporting system to a target terminal.
Specifically, the server queries a preset role authority data table according to the target user identification to obtain user authority information, and judges whether the user authority information comprises file downloading authority data or not; if the user authority information comprises file downloading authority data, the server takes the unique code of the message file as an index, the server calls a preset file inquiry interface according to the index, searches a target message file corresponding to a target credit reporting system from a preset cloud storage service system, transmits the target message file corresponding to the target credit reporting system to a target terminal, and the target terminal stores the target message file in a memory database until the target terminal downloads the target message file, and the target terminal stores the target message file in a preset file catalog.
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 performs 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. For example, the operation type is del, which indicates that the content of the message file corresponding to the target credit reporting system is deleted, and the operation type is update, which indicates that the content of the message file corresponding to the target credit reporting system is corrected.
In the embodiment of the invention, the standardized business rule data corresponding to each credit reporting system is stored in the software serving system, and the data verification, the data message encapsulation and the file conversion processing are sequentially carried out on the credit reporting data uploading request through the standardized business rule data corresponding to each credit reporting system in the software serving system, so that the credit reporting efficiency of the credit reporting data is improved, and the reporting code redundancy in each reporting subject mechanism is reduced.
The method for reporting data in the embodiment of the present invention is described above, and the following describes a device for reporting data in the embodiment of the present invention, referring to fig. 3, one embodiment of the device for reporting data in the embodiment of the present invention includes:
the storage module 301 is configured to store, when receiving an interface specification data upload request sent by each credit reporting system, standardized service rule data corresponding to each credit reporting system into a software serving system based on the interface specification data upload request, where each credit reporting system has a corresponding tenant;
the verification module 302 is configured to, when receiving a credit information data uploading request sent by each credit information reporting system, perform data verification on the credit information data uploading request through software, that is, standardized service rule data corresponding to each credit information reporting system in the service system, so as to obtain a verification result;
The conversion module 303 is configured to obtain, when the verification result is that the verification is passed, service data to be reported from the credit data uploading request, and perform data packet encapsulation and file conversion processing on the service data to be reported, so as to obtain a packet file corresponding to each credit reporting system;
the pushing module 304 is configured to push the message files corresponding to each credit reporting system to a preset cloud storage service system and a target terminal, where the target terminal is used to instruct the software, i.e. a control terminal corresponding to the service system.
Further, the message file is stored in a blockchain database, which is not limited herein.
In the embodiment of the invention, the standardized business rule data corresponding to each credit reporting system is stored in the software serving system, and the data verification, the data message encapsulation and the file conversion processing are sequentially carried out on the credit reporting data uploading request through the standardized business rule data corresponding to each credit reporting system in the software serving system, so that the credit reporting efficiency of the credit reporting data is improved, and the reporting code redundancy in each reporting subject mechanism is reduced.
Referring to fig. 4, another embodiment of the data reporting device in the embodiment of the present invention includes:
The storage module 301 is configured to store, when receiving an interface specification data upload request sent by each credit reporting system, standardized service rule data corresponding to each credit reporting system into a software serving system based on the interface specification data upload request, where each credit reporting system has a corresponding tenant;
the verification module 302 is configured to, when receiving a credit information data uploading request sent by each credit information reporting system, perform data verification on the credit information data uploading request through software, that is, standardized service rule data corresponding to each credit information reporting system in the service system, so as to obtain a verification result;
the conversion module 303 is configured to obtain, when the verification result is that the verification is passed, service data to be reported from the credit data uploading request, and perform data packet encapsulation and file conversion processing on the service data to be reported, so as to obtain a packet file corresponding to each credit reporting system;
the pushing module 304 is configured to push the message files corresponding to each credit reporting system to a preset cloud storage service system and a target terminal, where the target terminal is used to instruct the software, i.e. a control terminal corresponding to the service system.
Optionally, the storage module 301 may be further specifically configured to:
When receiving an interface specification data uploading request sent by each credit reporting system, judging whether the interface specification data uploading request is a request of a universal gateway interface type or not, wherein each credit reporting system is provided with a corresponding tenant;
if the interface specification data uploading request is a request of a universal gateway interface type, carrying out parameter analysis on the interface specification data uploading request according to a universal gateway interface protocol to obtain tenant identifications corresponding to all credit reporting systems, scene types corresponding to all credit reporting systems, service types corresponding to all credit reporting systems and standardized service rule data corresponding to all credit reporting systems;
and setting tenant identifications corresponding to the credit reporting systems as index values, and writing the service types corresponding to the credit reporting systems, the scene types corresponding to the credit reporting systems and the standardized service rule data corresponding to the credit reporting systems into the software serving system based on the index values.
Optionally, the verification module 302 may be further specifically configured to:
when a credit data uploading request sent by each credit reporting system is received, extracting a file type corresponding to each credit reporting system, a scene type corresponding to each credit reporting system, a tenant identifier corresponding to each credit reporting system, a service type corresponding to each credit reporting system and to-be-reported credit service data sent by each credit reporting system from the credit data uploading request;
Inquiring the software as a service system according to tenant identifications corresponding to each credit reporting system to obtain inquiry data;
when the query data is not null, reading standardized business rule data corresponding to each credit reporting system from the query data according to the business type corresponding to each credit reporting system;
judging whether the service data to be reported accords with standardized service rule data corresponding to each credit reporting system;
if the to-be-reported credit service data accords with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is verification passing;
and if the to-be-reported credit service data does not accord with the standardized service rule data corresponding to each credit reporting system, determining that the verification result is that the verification is failed.
Optionally, the conversion module 303 may be further specifically configured to:
when the verification result is that the verification passes, reading a message encapsulation rule from a preset rule configuration table according to the scene type corresponding to each credit reporting system and the service type corresponding to each credit reporting system;
carrying out data analysis on the to-be-reported credit service data to obtain a data type corresponding to the to-be-reported credit service data, and carrying out data message encapsulation on the to-be-reported credit service data based on message encapsulation rules and the data type to obtain message data corresponding to each credit reporting system;
And converting the message data corresponding to each credit reporting system into the message file corresponding to each credit reporting system according to the file type corresponding to each credit reporting system.
Optionally, the pushing module 304 may be further specifically configured to:
carrying out file compression on the message files corresponding to the credit reporting systems to obtain compressed files corresponding to the credit reporting systems;
synchronizing the compressed files corresponding to each credit reporting system through a preset message queue to a preset cloud storage service system, so that the preset cloud storage service system stores the compressed files corresponding to each credit reporting system in a slicing mode;
the method comprises the steps of obtaining file information corresponding to a message file, 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 serving system, and the file information comprises a file name, a unique code of the message file and a file link address.
Optionally, the data reporting device further includes:
the updating module 305 is configured to receive a message update request sent by a target terminal, and perform parameter analysis on the message update request to obtain a unique code and an operation type of a message file;
And the processing module 306 is used for performing 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 device further includes:
the downloading module 307 is configured to receive a file downloading request sent by the target terminal, and perform parameter analysis on the file downloading request to obtain a unique code of the message file;
the transmission module 308 is configured to search, from a preset cloud storage service system, a target message file corresponding to the target credit reporting system, and transmit the target message file corresponding to the target credit reporting system to the target terminal, with the unique code of the message file as an index.
In the embodiment of the invention, the standardized business rule data corresponding to each credit reporting system is stored in the software serving system, and the data verification, the data message encapsulation and the file conversion processing are sequentially carried out on the credit reporting data uploading request through the standardized business rule data corresponding to each credit reporting system in the software serving system, so that the credit reporting efficiency of the credit reporting data is improved, and the reporting code redundancy in each reporting subject mechanism is reduced.
The data reporting device in the embodiment of the present invention is described in detail from the modularization point of view in fig. 3 and fig. 4, and the data reporting device in the embodiment of the present invention is described in detail from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a data reporting device according to an embodiment of the present invention, where the data reporting device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 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) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory 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 in the data reporting device 500. Still further, the processor 510 may be arranged to communicate with a storage medium 530 to execute a series of computer program operations in the storage medium 530 on the 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 Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the data reporting device structure shown in fig. 5 is not limiting of the data reporting device and may include more or fewer components than shown, or may combine certain components, 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, or may 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 program causes the computer to execute the steps of the data reporting method.
The invention also provides a data reporting device, which comprises a memory and a processor, wherein the memory stores a computer program, 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 from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a storage medium, comprising a number of computer programs for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) 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: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.