Resource interaction compliance risk data backtracking method and device and computer equipment

By using two processing threads to detect and obtain risk in resource interaction compliance risk inspection, and establishing the association relationship between change data and identification information, the problem that traditional technology cannot meet the timeliness requirements is solved, and fast and accurate Resource interaction requests backtracking data acquisition and retrieval.

CN118916388APending Publication Date: 2024-11-08CHINA CONSTRUCTION BANK +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410935691.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The traditional day-end batch replay method cannot meet the timeliness requirements for resource interaction compliance risk checks, and cannot quickly locate and adjust the reasons for instruction violations.

Method used

By using two processing threads to detect compliance risk and obtain change data for resource interaction requests, and establish an association relationship between change data and identification information, the traceability data collection and retrieval of resource interaction requests are realized.

Benefits of technology

It improves the efficiency and accuracy of backtracking data acquisition of resource interaction requests, meets the timeliness requirements, provides a variety of retrieval methods, is suitable for different application scenarios, and ensures data integrity and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916388A_ABST
    Figure CN118916388A_ABST
Patent Text Reader

Abstract

The invention relates to the field of big data, and particularly discloses a resource interaction compliance risk data backtracking method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring initial resource data, and establishing a first processing thread and a second processing thread of the initial resource data; in response to the resource interaction request, performing compliance risk detection on the resource interaction request by using a first processing thread according to the initial resource data to obtain a detection result of the resource interaction request; obtaining change data of initial resource data in a resource interaction request risk detection process by utilizing a second processing thread according to the resource interaction request; obtaining identification information corresponding to the change data according to the resource interaction request; and establishing association information of the change data and the corresponding identification information to obtain backtracking data of the resource interaction request. By adopting the method, the efficiency of compliance risk detection and the low delay of backtracking data processing can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a backtracking method, apparatus, computer equipment, computer-readable storage medium, and computer program product for resource interaction compliance risk data. Background Art

[0002] With the continuous development of resource management, compliance risk checks based on regulatory and audit requirements and business needs are becoming more and more important and attract more attention. Before executing resource interaction instructions, it is crucial to conduct compliance risk checks, which refers to determining whether resource interaction instructions will trigger regulatory requirements or business rules. However, after establishing a compliance risk check module, retrospective analysis is still required to understand the reasons for the instruction violations.

[0003] Traditional technology usually uses the end-of-day batch playback method to process instructions to obtain compliance risk inspection data and analyze the reasons for instruction violations. However, in actual business scenarios, manual work is required to quickly locate the problem and adjust the instructions after encountering instruction violations, so the timeliness requirement is high. The traditional end-of-day batch playback method cannot meet the timeliness requirements of traceability analysis. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product that can trace back resource interaction compliance risk data in response to the above-mentioned technical problems.

[0005] In a first aspect, the present application provides a method for backtracking resource interaction compliance risk data, including:

[0006] Acquire initial resource data, and establish a first processing thread and a second processing thread for the initial resource data;

[0007] In response to the resource interaction request, using the first processing thread, according to the initial resource data, perform a compliance risk detection on the resource interaction request to obtain a detection result of the resource interaction request;

[0008] Using the second processing thread, according to the resource interaction request, obtaining the change data of the initial resource data in the process of risk detection of the resource interaction request;

[0009] Acquire identification information corresponding to the changed data according to the resource interaction request;

[0010] Establish association information between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

[0011] In one embodiment, in response to the resource interaction request, using the first processing thread to perform compliance risk detection on the resource interaction request according to the initial resource data includes:

[0012] In response to a resource interaction request, after the initial resource data is acquired and the first processing thread and the second processing thread are established, using the first processing thread to perform compliance risk detection on the resource interaction request according to the initial resource data;

[0013] In response to a resource interaction request, when the initial resource data is not completely acquired, or the first processing thread is not completely established, or the second processing thread is not completely established, the resource interaction request is stored in a preset message queue.

[0014] In one embodiment, the establishing of association information between the change data and the corresponding identification information to obtain the backtracking data of the resource interaction request includes:

[0015] The change data corresponding to the resource interaction request is stored in a preset data file to obtain a change data file corresponding to the resource interaction request;

[0016] Compressing the changed data file to obtain a target file;

[0017] An association relationship between the changed data file and the corresponding identification information is established, and the target file and the association relationship are stored in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

[0018] In one embodiment, the establishing of the association relationship between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request includes:

[0019] Using a preset risk data strategy, the change data and the risk data are matched to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data;

[0020] An association relationship between initial traceback data and corresponding identification information is established to obtain traceback data of the resource interaction request; wherein the initial traceback data includes at least one of change data and risk data.

[0021] In one of the embodiments, the resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; and the establishment of association information between the change data and the corresponding identification information includes:

[0022] Establishing an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier;

[0023] Establishing an association relationship between resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier;

[0024] Establishing an association relationship between the interaction request and the risk data to obtain a third sub-association relationship;

[0025] Establishing an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data using a preset risk threshold;

[0026] The first sub-association, the second sub-association, the third sub-association and the fourth sub-association are determined as associations between the change data and the corresponding identification information.

[0027] In one embodiment, obtaining identification information corresponding to the change data according to the resource interaction request includes:

[0028] Using the resource interaction request, a data identifier is obtained; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction sub-request corresponding to the resource interaction request, and a resource interaction sub-request identifier;

[0029] Obtaining a response time of the resource interaction request, and using the response time to obtain a time identifier;

[0030] The data identifier and the time identifier are determined as identification information corresponding to the changed data.

[0031] In a second aspect, the present application also provides a backtracking device for resource interaction compliance risk data, including:

[0032] A data acquisition module, used for acquiring initial resource data and establishing a first processing thread and a second processing thread for the initial resource data;

[0033] A data processing module, configured to respond to a resource interaction request, use the first processing thread, and perform compliance risk detection on the resource interaction request according to the initial resource data to obtain a detection result of the resource interaction request;

[0034] The data processing module is further configured to obtain, using the second processing thread, change data of the initial resource data in the process of risk detection of the resource interaction request according to the resource interaction request;

[0035] The data acquisition module is further used to acquire identification information corresponding to the changed data according to the resource interaction request;

[0036] The data establishment module is used to establish association information between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

[0037] In one embodiment, in response to the resource interaction request, using the first processing thread to perform compliance risk detection on the resource interaction request according to the initial resource data includes:

[0038] a data processing submodule, configured to respond to a resource interaction request, and, when the initial resource data is acquired and the first processing thread and the second processing thread are established, perform compliance risk detection on the resource interaction request according to the initial resource data by using the first processing thread;

[0039] The data processing submodule is also used to respond to a resource interaction request and store the resource interaction request in a preset message queue when the initial resource data has not been acquired, the first processing thread has not been established, or the second processing thread has not been established.

[0040] In one embodiment, the data establishment module includes:

[0041] A file creation submodule, used for storing the change data corresponding to the resource interaction request into a preset data file, and obtaining the change data file corresponding to the resource interaction request;

[0042] A file compression submodule, used for compressing the changed data file to obtain a target file;

[0043] The data storage submodule is used to establish an association relationship between the changed data file and the corresponding identification information, and store the target file and the association relationship in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

[0044] In one embodiment, the data establishment module includes:

[0045] A risk data acquisition submodule, used to match the change data and the risk data using a preset risk data strategy to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data;

[0046] The backtracking data establishment submodule is used to establish an association relationship between the initial backtracking data and the corresponding identification information to obtain the backtracking data of the resource interaction request; wherein the initial backtracking data includes at least one of the change data and the risk data.

[0047] In one of the embodiments, the resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; and the data establishment module includes:

[0048] The association relationship establishment submodule is used to establish an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier;

[0049] The association relationship establishment submodule is further used to establish an association relationship between the resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier;

[0050] The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the risk data to obtain a third sub-association relationship;

[0051] The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data using a preset risk threshold;

[0052] The association relationship establishing submodule is further used to determine the first sub-association relationship, the second sub-association relationship, the third sub-association relationship and the fourth sub-association relationship as association relationships between the change data and the corresponding identification information.

[0053] In one embodiment, the data acquisition module includes:

[0054] A data acquisition submodule, configured to acquire a data identifier by using the resource interaction request; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction subrequest corresponding to the resource interaction request, and a resource interaction subrequest identifier;

[0055] The data acquisition submodule is further used to acquire the response time of the resource interaction request, and obtain a time identifier using the response time;

[0056] The data acquisition submodule is further used to determine the data identifier and time identifier as identification information corresponding to the changed data.

[0057] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the resource interaction compliance risk data backtracking method as described in any one of the embodiments of the present disclosure is implemented.

[0058] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the resource interaction compliance risk data backtracking method as described in any one of the embodiments of the present disclosure.

[0059] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for tracing back resource interaction compliance risk data as described in any one of the embodiments of the present disclosure is implemented.

[0060] The backtracking method, device, computer equipment, computer-readable storage medium and computer program product of the resource interaction compliance risk data above use different threads to perform compliance risk detection and change data acquisition on resource interaction requests respectively, and establish an association relationship between change data and identification information, thereby obtaining the backtracking data of the resource interaction request. When a resource interaction request is received, the resource interaction request is subjected to compliance risk detection by the first processing thread, and the detection result of the resource interaction request can be quickly obtained. At the same time, the change data of the resource interaction request is acquired by the second processing thread, so that the real-time tracking and monitoring of the data of the resource interaction request can be realized, and the violation data in the resource interaction request can be quickly found when the compliance risk detection violates the rules, so that the resource interaction request can be adjusted in time. By establishing an association relationship between change data and identification information, the subsequent retrieval of the target backtracking data is facilitated, making the use of the backtracking data more efficient and convenient. The association relationship is established by the identification of the change data, which ensures the integrity of the change data collection. At the same time, the identification information can provide a variety of retrieval methods for the backtracking data, so that the retrieval of the backtracking data can be applied to different application scenarios, thereby improving the flexibility and adaptability of data retrieval, thereby ensuring the accuracy of the backtracking data, and improving the efficiency of backtracking data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0062] FIG1 is an application environment diagram of a method for backtracking resource interaction compliance risk data in one embodiment;

[0063] FIG2 is a flow chart of a method for backtracking resource interaction compliance risk data in one embodiment;

[0064] FIG3 is a flow chart of a method for implementing a backtracking method for resource interaction compliance risk data in one embodiment;

[0065] FIG4 is a schematic diagram of a process of responding to a resource interaction request in one embodiment;

[0066] FIG5 is a schematic diagram of a process for establishing and storing backtracking data in one embodiment;

[0067] FIG6 is a schematic diagram of a process flow of resource interaction backtracking file processing in one embodiment;

[0068] FIG7 is a schematic diagram of a process for establishing resource interaction traceability data in one embodiment;

[0069] FIG8 is a schematic diagram of a process of establishing an association relationship in one embodiment;

[0070] FIG9 is a schematic diagram of a process for obtaining change data identification information in one embodiment;

[0071] FIG10 is a schematic diagram of a first process of backtracking resource interaction compliance risk data in one embodiment;

[0072] FIG11 is a schematic diagram of a second process of backtracking resource interaction compliance risk data in one embodiment;

[0073] FIG12 is a structural block diagram of a device for tracing back resource interaction compliance risk data in one embodiment;

[0074] FIG. 13 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0076] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.

[0077] The method for tracing back resource interaction compliance risk data provided in the embodiment of the present application can be applied in the application environment shown in FIG. 1 . Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The terminal 102 receives the resource interaction request, and the server 104 performs risk compliance data tracing back on the resource interaction request received by the terminal 102. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0078] In an exemplary embodiment, as shown in FIG2 , a method for backtracking resource interaction compliance risk data is provided, which is described by taking the method applied to the server in FIG1 as an example, and includes the following steps 100 to 500, wherein:

[0079] Step S100: acquiring initial resource data, and establishing a first processing thread and a second processing thread for the initial resource data.

[0080] In an exemplary embodiment, the initial resource data may include the original resource data of each interaction object, that is, the data before the resource interaction; specifically, when the resource interaction is an investment instruction, the initial resource data may include initialization factor value, product data, product holding share data of asset management interaction, third-party asset data, etc.

[0081] In an exemplary embodiment, obtaining the initial resource data may include processing the initial resource data; for example, using Flink to perform compliance risk detection and backtracking on resource interactions, obtaining the initial resource data may include initializing the initial resource data; establishing the first processing thread and the second processing thread may include starting Flink to start a compliance check flow and a backtracking flow, etc.

[0082] In an exemplary embodiment, before obtaining the initial resource data and establishing the first processing thread and the second processing thread, the compliance risk detection and backtracking of resource interaction can be turned off; it is understandable that this method can ensure the consistency of the two processing threads, avoiding new regression risk check instructions from being sent to Kafka, etc. when data is obtained; and after obtaining the initialization resource data, establishing the first combing thread and the second processing thread, the compliance risk check and backtracking are turned on, and the risk check of investment instructions is normally received, etc. In another exemplary embodiment, when the initialization data is not loaded, or the first processing thread is not established, or the second processing thread is not established, it can include turning off the compliance risk check and backtracking, and can also include storing the received resource interaction request in the message queue, and when the risk check and backtracking are turned on, the resource interaction request in the message queue is detected and backtracked, etc.

[0083] Step S200: In response to a resource interaction request, using the first processing thread, according to the initial resource data, perform a compliance risk check on the resource interaction request to obtain a check result of the resource interaction request.

[0084] In an exemplary embodiment, the detection result may include a violation detection result of a resource interaction request. Specifically, the detection result may only include a final result of the instruction compliance detection without outputting any process data or the like.

[0085] Step S300: using the second processing thread, according to the resource interaction request, obtain the change data of the initial resource data in the process of risk detection of the resource interaction request.

[0086] In an exemplary embodiment, the change data may include all detailed data of the resource interaction request compliance check; it can be understood that the change data may include data obtained by the change data and the unchanged data; for example, if the numerator data in the proportion data changes, while the denominator data does not change, then the proportion data is also the change data, etc.

[0087] In an exemplary embodiment, the compliance risk check and the backtracking may have at least one of the following differences: different output data, different persistent target storage, incomplete data at a certain point in time, etc. Specifically, the different output data may include that the compliance check flow finally outputs only the rule results of the resource interaction request compliance check, and does not output any process data. In addition to outputting all rule results, the resource interaction request backtracking flow also needs to retain and output all relevant data designed during the inspection of each resource interaction request for compliance risk check. The different persistent target storage may include that the compliance check flow performs real-time compliance checks on instructions and needs to return results in real time, wherein the storage of persistent output is mainly Redis, HBase and Mysql. The backtracking flow can output data to a file because the amount of data to be output is very large and the final result needs to be combined with data processing. Incomplete data at a certain point in time may include that the backtracking flow can perform supplementary queries on some relevant data relative to the compliance check flow, such as resource information designed for resource interaction requests. The compliance check flow only focuses on the detection results of factors, while the backtracking flow requires complete resource information. Therefore, the backtracking flow will have more data backtracking queries, etc. Specifically, when the resource interaction is an investment request, the compliance check data may include the product ID, type, status, etc., but other data such as product name, date and time will not be used; and the backtracking flow needs to query again to obtain complete data to facilitate user queries, etc.

[0088] Step S400: acquiring identification information corresponding to the changed data according to the resource interaction request.

[0089] In an exemplary embodiment, obtaining the identification information corresponding to the changed data may include obtaining an index identification of the changed data corresponding to the resource interaction request, that is, the changed data may be obtained by using the identification information.

[0090] Step S500: establishing association information between the change data and corresponding identification information to obtain traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

[0091] In an exemplary embodiment, the establishment of the association relationship between the change data and the corresponding identification information may include establishing an index identification of the change data using the corresponding identification information, that is, the corresponding change data can be retrieved through the identification information. In another exemplary embodiment, the change data may include a detection result of the change data, that is, whether each change data satisfies a corresponding detection strategy. Specifically, whether the detection strategy is satisfied may also exist in the identification information. It is understandable that the illegal change data and the legal change data can be found by selecting whether the detection strategy is satisfied.

[0092] In an exemplary embodiment, the first processing thread and the second processing thread can simultaneously perform compliance risk detection and backtracking on resource interaction requests. It is understandable that when making a resource interaction request, if the amount of data involved is small, only compliance checks can be performed and the detailed data of the check can be saved at the same time. However, when the resource interaction request involves changes and detections of a large amount of resource data, the efficiency of this method is too low. The parallel processing method used in this application can quickly and accurately return the compliance risk check results. At the same time, the difference between the processing efficiency of the backtracking flow and the processing efficiency of the normal compliance risk check is within seconds, and the average difference can be controlled to 100ms, which can meet the timeliness of backtracking.

[0093] In an exemplary embodiment, the resource interaction compliance risk data backtracking method may be implemented as shown in the flowchart of FIG3 , and specifically includes:

[0094] Step S601, turn off the compliance risk check switch;

[0095] Step S602, initializing compliance check data, and starting the compliance check flow after the initialization is completed; initializing the backtracking flow data, and starting the backtracking flow after the backtracking flow data initialization is completed;

[0096] Step S603, after starting the compliance check flow and the backtracking flow, turn on the compliance risk check switch;

[0097] Step S604, the compliance check result is executed, the compliance check flow outputs the compliance check summary result, and the backtracking flow outputs the compliance check detailed data;

[0098] Step S605, backtracking data processing, namely, backtracking index data processing and backtracking detail data processing;

[0099] Step S606, real-time compliance check result query, and real-time backtracking detailed data query.

[0100] In the above-mentioned backtracking method for resource interaction compliance risk data, different threads are used to perform compliance risk detection and change data acquisition on resource interaction requests respectively, and an association relationship between change data and identification information is established, thereby obtaining the backtracking data of resource interaction requests. When a resource interaction request is received, the resource interaction request is subjected to compliance risk detection by the first processing thread, and the detection result of the resource interaction request can be quickly obtained. At the same time, the change data of the resource interaction request is acquired by the second processing thread, so that the real-time tracking and monitoring of the data of the resource interaction request can be realized, and the violation data in the resource interaction request can be quickly found when the compliance risk detection violates the rules, so as to adjust the resource interaction request in time. By establishing an association relationship between change data and identification information, it is convenient to retrieve the target backtracking data in the future, making the use of backtracking data more efficient and convenient. By establishing an association relationship through the identification of change data, the integrity of change data collection is guaranteed. At the same time, multiple retrieval methods are provided for backtracking data through identification information, so that the retrieval of backtracking data can be applied to different application scenarios, thereby improving the flexibility and adaptability of data retrieval, thereby ensuring the accuracy of backtracking data, and improving the efficiency of backtracking data acquisition.

[0101] In an exemplary embodiment, as shown in FIG4 , in response to the resource interaction request, using the first processing thread, and performing compliance risk detection on the resource interaction request according to the initial resource data, includes:

[0102] Step S201, in response to a resource interaction request, after the initial resource data is acquired and the first processing thread and the second processing thread are established, use the first processing thread to perform compliance risk detection on the resource interaction request based on the initial resource data.

[0103] Step S202, in response to a resource interaction request, when the initial resource data is not acquired, the first processing thread is not established, or the second processing thread is not established, the resource interaction request is stored in a preset message queue.

[0104] In an exemplary embodiment, when a resource interaction request is received before the initial resource data is acquired, or the first processing thread is established, or the second processing thread is established, the compliance check on the resource interaction request can be suspended, thereby ensuring the consistency of risk compliance checking and retrospective data processing, and avoiding new compliance check instructions being sent to the message queue when data is initialized; it is understandable that by setting a specific resource interaction time, a prompt to check later and other information can be displayed when the risk check is not started, thereby not affecting normal resource interaction compliance checking, etc.

[0105] In another exemplary embodiment, when the initial resource data is not acquired, or the first processing thread is not established, or the second processing thread is not established, a resource interaction request is received, and the resource interaction request can be stored in a message queue. When the branch compliance check flow and backtracking flow are restarted, the resource interaction request in the message queue can be processed by risk compliance check flow and backtracking flow, etc.

[0106] In this embodiment, by judging the initial resource data, the first processing thread and the second processing thread, the resource interaction request can be processed or stored, so as to ensure the data initialization of the compliance risk inspection flow and the backtracking flow and the data state consistency of the resource interaction request.

[0107] In an exemplary embodiment, as shown in FIG. 5 , establishing association information between the change data and the corresponding identification information to obtain the backtracking data of the resource interaction request includes:

[0108] Step S501: storing the change data corresponding to the resource interaction request in a preset data file to obtain the change data file corresponding to the resource interaction request.

[0109] In an exemplary embodiment, the resource interaction request may include multiple resource interaction sub-requests, that is, multiple resource interaction requests are combined into a request batch; the data file may include a data file corresponding to each resource interaction sub-request, etc.

[0110] Step S502: compress the changed data file to obtain a target file.

[0111] In an exemplary embodiment, the resource interaction request may include multiple data files, and the multiple data files are compressed to avoid affecting the detection efficiency due to too many small files.

[0112] Step S503, establishing an association relationship between the changed data file and the corresponding identification information, and storing the target file and the association relationship in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

[0113] In an exemplary embodiment, by establishing a relationship between a changed data file and identification information, that is, obtaining backtracking data, and storing the compressed target file and the associated relationship in a database, the efficiency of data storage can be improved, and the time-consuming operation on each small file in actual operation can be avoided.

[0114] In an exemplary embodiment, corresponding directories can be set to store data files, target files, and files with associated relationships, etc. For example, an Output directory can be created to store detailed data files of the backtracking flow writing process; a Pending directory can be created to store compressed detailed data files; and a Done directory can be created to store processed files, etc. Specifically, the processing of the data file can be implemented as shown in the flowchart of FIG6, which specifically includes:

[0115] Step S821, check whether there are any new files that have not been processed; store the process detail data files of each resource interaction request for compliance risk check output by backtracking in the directory of the current business date under the Output directory. Determine whether there are new files by comparing the number of data files under the current date in Output with the number of data files under the current date in Done. If there are no new data files, exit this data processing;

[0116] Step S822, compress the process detail file of the current business date, and store the compressed file in the Pending directory; since the resource interaction request can include multiple resource interaction sub-requests, a data file can be generated for each resource interaction sub-request, or a data file can be generated for each resource interaction request. However, too many files generated daily will bring great pressure to the system, and will also affect the efficiency of subsequent processing and reading. Therefore, the files under the Output date are compressed into compressed files and directly stored in the current date directory of Pending, etc.; for example, a detailed data file can be output to HDFS for the detailed data of each resource interaction request, and it will be output to the Output directory from time to time. When processing these files asynchronously in batches, the files need to be moved. If not compressed, each specific small file needs to be operated, and the HDFS command to delete or move a file takes time. If too many files are generated, it will take a lot of time, which greatly affects the performance. Therefore, by compressing the file, the time of file processing is greatly reduced, and the efficiency of file processing is improved.

[0117] Step S823, read the compressed space under the Pending directory to process the backtracking data; start the spark task, read the generated process detail data compressed file of the current business date, process the resource interaction request backtracking data, factor backtracking data, risk data, and build the index data of the corresponding data, and persist the built backtracking data and index data to hbase through Bulkload.

[0118] Step S824, move the compressed files in the Pending directory to the Done directory; after completing data processing and persistence, move the compressed files processed in the Pending directory to the current directory in Done. If there are already files in the current directory in Done, directly overwrite and replace them.

[0119] In this embodiment, the backtracking data is stored in a file, the file is compressed, and a corresponding association relationship is established. By storing the data in a file, the integrity of a large amount of data storage can be guaranteed, the loss of stored data due to a large amount of data is avoided, and the integrity of the backtracking data is guaranteed. And by compressing the data file, the low file processing efficiency caused by processing multiple files is avoided, thereby improving the efficiency of file processing and further improving the efficiency of backtracking.

[0120] In an exemplary embodiment, as shown in FIG. 7 , establishing an association relationship between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request includes:

[0121] Step S511, using a preset risk data strategy, matching the change data and the risk data to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data.

[0122] In an exemplary embodiment, the risk data strategy may include an association relationship between risk data and change data; wherein the association relationship may include a combination relationship in which change data is combined into risk data; for example, the association relationship may include that x1 change data is the numerator of y risk data, and x2 change data is the denominator of y risk data; therefore, the risk data is x1 / x2, etc.

[0123] Step S512: establishing an association relationship between the initial traceback data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the initial traceback data includes at least one of change data and risk data.

[0124] In an exemplary embodiment, the traceability data may include change data and risk data. The traceability data may include detection results of the change data and the risk data. Specifically, the change data may detect specific data, and the risk data may include indirectly changed data. For example, if both the numerator and denominator of the risk data are changed, it is necessary to determine the corresponding risk data and make a judgment on the risk data.

[0125] In this embodiment, by using the risk data strategy, risk data is obtained, and the association relationship between risk data, change data and identification information is established to obtain the backtracking data of the interaction request. By matching the risk data, the integrity of the backtracking data can be guaranteed, and the accuracy and reliability of the backtracking data can be improved.

[0126] In an exemplary embodiment, as shown in FIG8 , the resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; the establishment of association information between the change data and the corresponding identification information includes:

[0127] Step S521, establishing an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier.

[0128] In an exemplary embodiment, the association relationship between the interaction request and the change data may include that the corresponding change data can be directly retrieved by utilizing the interaction request, wherein it can be understood that the corresponding change data can be queried only through one of the identifiers (for example, one of the resource interaction request, the resource interaction request identifier, the resource identifier, etc.); similarly, specific change data can be specifically found through multiple identifiers, etc.

[0129] In an exemplary embodiment, the association relationship between the interaction request and the change data may include that the information query for the resource interaction request can be based on a combination query of multiple dimensions such as resource interaction request, resource interaction code, resource number, time range, etc., and the result display can be a resource interaction request list, and each resource interaction request list will be attached with information about the resources involved; specifically, when the resource interaction request is an investment instruction, the information query for the investment instruction can be based on a combination query of multiple dimensions such as instruction batch number, instruction code, product code, asset code, and time range, and the result display can be an instruction list, and each instruction list will be attached with information about the assets involved, etc.

[0130] In an exemplary embodiment, the corresponding change data may be queried using the interaction request through the association relationship between the interaction request and the change data, or the corresponding interaction request may be queried through the change data.

[0131] Step S522, establishing an association relationship between the resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier.

[0132] In an exemplary embodiment, the association relationship between the resource data and the change data may include a combined query through multiple dimensions such as resource identification, resource interaction request, etc., and the query result may be displayed as a row of records for each resource data for each resource interaction request. Specifically, when the resource interaction request is an investment instruction, a combined query of multiple dimensions such as factor ID, product code, asset number, and instruction batch number may be performed. The query result may be displayed as a record for each factor for each instruction batch. The situation of the factor before and after the compliance risk check is performed on the instruction batch. And the results may be sorted according to the time when the instruction batch was issued. When business personnel conduct a retrospective analysis of a single factor value, they can intuitively obtain the desired data through this query page combined with the instruction batch they are concerned about.

[0133] In an exemplary embodiment, the corresponding change data may be queried using the resource data through the association relationship between the resource data and the change data, or the corresponding resource data may be queried through the change data.

[0134] Step S523: establishing an association relationship between the interaction request and the risk data to obtain a third sub-association relationship.

[0135] In an exemplary embodiment, the association between the interaction request and the risk data may include being able to be queried through an interaction request, etc., and the query result may be displayed as a row of records for one risk data under one resource interaction request. Specifically, when the resource interaction request is an investment instruction, the risk data may include position shares and proportions; the specific association may include querying according to the instruction batch number, product code, and asset management plan number. The query result may be displayed as one record of the asset management plan position information of one product under one instruction batch. The results may be sorted according to the issuance event of the instruction batch, so that the change process of the position data of a certain asset management plan or a certain product can be intuitively queried.

[0136] In an exemplary embodiment, the corresponding risk data may be queried using the interaction request through the association relationship between the interaction request and the risk data, or the corresponding interaction request may be queried through the risk data.

[0137] Step S524, establishing an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data with a preset risk threshold.

[0138] In an exemplary embodiment, the initial traceback data may include change data and risk data. Specifically, when the resource interaction is an investment instruction, the traceback data may include factors and holdings, shares and proportions, etc. It is understandable that for the compliance risk check flow, the focus is on the violation results of the compliance risk check for each resource interaction request. However, for the traceback flow, the completeness and richness of the data are more important. The traceback flow will supplement each rule result with its products, assets, and factors used, and the compliance risk check results of the instruction batch can be queried according to the instruction batch number. Combined screening is performed by product, asset, and factor ID, and the original and new values ​​of the factors involved in the details and the original and new values ​​of the product holding asset management plan shares obtained by association query are displayed at the same time.

[0139] In an exemplary embodiment, the detection result of the initial traceback data may include, after acquiring the change data and risk data, detecting the obtained change data and risk data by a preset data threshold, thereby obtaining the corresponding detection result. It is understandable that the data can be filtered by violation and non-violation. In actual use, when a resource interaction request violates the rule, the detailed data of the violation can be filtered, so as to adjust the resource interaction request, etc.

[0140] In an exemplary embodiment, the corresponding initial back-tracing data may be queried using the interaction request through the association relationship between the interaction request and the detection result of the initial back-tracing data, or the corresponding interaction request may be queried through the initial back-tracing data.

[0141] Step S525: determine the first sub-association relationship, the second sub-association relationship, the third sub-association relationship, and the fourth sub-association relationship as association relationships between the change data and the corresponding identification information.

[0142] In this embodiment, by establishing a first sub-association relationship between the interaction request and the change data, a second sub-association relationship between the resource data and the change data, a third sub-association relationship between the interaction request and the risk data, and a fourth sub-association relationship between the interaction request and the initial backtracking data detection result, it is possible to achieve better retrieval between the data by establishing association relationships between various data, thereby improving the efficiency and accuracy of data retrieval.

[0143] In an exemplary embodiment, as shown in FIG9 , acquiring identification information corresponding to the change data according to the resource interaction request includes:

[0144] Step S401: using the resource interaction request to obtain a data identifier; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction sub-request corresponding to the resource interaction request, and a resource interaction sub-request identifier.

[0145] In an exemplary embodiment, the data identification may include a resource interaction request code, a resource interaction sub-request, and a code of a resource interaction sub-request; it is understandable that the user usually does not know the specific code very clearly during use, so it can be filtered by resource interaction sub-requests, etc.

[0146] Step S402: Acquire the response time of the resource interaction request, and use the response time to obtain a time identifier.

[0147] In an exemplary embodiment, the time identifier may include a time range, specifically, a resource interaction request or a resource data change within a certain time period.

[0148] Step S403: determine the data identifier and time identifier as identification information corresponding to the changed data.

[0149] In this embodiment, by obtaining the data identifier and the time identifier, the integrity and accuracy of the data identifier can be guaranteed, accurate and complete identifier information is provided for data retrieval, and the efficiency and accuracy of data retrieval are improved.

[0150] In an exemplary embodiment, the processing flow of the backtracking flow may be implemented as shown in the flowchart of FIG10 , and specifically includes:

[0151] Step S801, obtaining a resource interaction request from Kafka;

[0152] Step S802, parsing the resource interaction request;

[0153] Step S803, performing compliance risk detection processing;

[0154] Step S804, collecting process detailed data;

[0155] Step S805, detailed data supplementary query;

[0156] Step S806, constructing output file records;

[0157] Step S807, output to HDFS file.

[0158] In an exemplary embodiment, the processing flow of the backtracking flow can be implemented with investment execution, specifically, it can be implemented as the flowchart shown in FIG. 11, specifically including:

[0159] Step S811, receiving and parsing instruction batches and instruction information;

[0160] Step S812, compliance risk detection;

[0161] Step S813, collecting detailed data of the compliance risk inspection process; specifically, it may include collecting at least one of instruction batches and instruction information, collecting queried and updated position shares and proportion data, and collecting queried and updated factor data;

[0162] Step S814, supplementary query of asset / factor / rule information;

[0163] Step S815, constructing an output detail record;

[0164] Step S816 does not write the HDFS file.

[0165] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0166] Based on the same inventive concept, the embodiment of the present application also provides a backtracking device for resource interaction compliance risk data for implementing the backtracking method for resource interaction compliance risk data involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the backtracking device for one or more resource interaction compliance risk data provided below can be referred to the limitations of the backtracking method for resource interaction compliance risk data above, and will not be repeated here.

[0167] In an exemplary embodiment, as shown in FIG12 , a backtracking device 100 for resource interaction compliance risk data is provided, comprising: a data acquisition module 101, a data processing module 102 and a data establishment module 103, wherein:

[0168] A data acquisition module, used to acquire initial resource data and establish a first processing thread and a second processing thread for the initial resource data;

[0169] A data processing module, configured to respond to a resource interaction request, use the first processing thread, and perform compliance risk detection on the resource interaction request according to the initial resource data to obtain a detection result of the resource interaction request;

[0170] The data processing module is further configured to obtain, using the second processing thread, change data of the initial resource data in the process of risk detection of the resource interaction request according to the resource interaction request;

[0171] The data acquisition module is further used to acquire identification information corresponding to the changed data according to the resource interaction request;

[0172] The data establishment module is used to establish association information between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

[0173] In one embodiment, in response to the resource interaction request, using the first processing thread to perform compliance risk detection on the resource interaction request according to the initial resource data includes:

[0174] a data processing submodule, configured to respond to a resource interaction request, and, when the initial resource data is acquired and the first processing thread and the second processing thread are established, perform compliance risk detection on the resource interaction request according to the initial resource data by using the first processing thread;

[0175] The data processing submodule is also used to respond to a resource interaction request and store the resource interaction request in a preset message queue when the initial resource data has not been acquired, the first processing thread has not been established, or the second processing thread has not been established.

[0176] In one embodiment, the data establishment module includes:

[0177] A file creation submodule, used for storing the change data corresponding to the resource interaction request into a preset data file, and obtaining the change data file corresponding to the resource interaction request;

[0178] A file compression submodule, used for compressing the changed data file to obtain a target file;

[0179] The data storage submodule is used to establish an association relationship between the changed data file and the corresponding identification information, and store the target file and the association relationship in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

[0180] In one embodiment, the data establishment module includes:

[0181] A risk data acquisition submodule, used to match the change data and the risk data using a preset risk data strategy to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data;

[0182] The backtracking data establishment submodule is used to establish an association relationship between the initial backtracking data and the corresponding identification information to obtain the backtracking data of the resource interaction request; wherein the initial backtracking data includes at least one of the change data and the risk data.

[0183] In one embodiment, the resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; and the data establishment module includes:

[0184] The association relationship establishment submodule is used to establish an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier;

[0185] The association relationship establishment submodule is further used to establish an association relationship between the resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier;

[0186] The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the risk data to obtain a third sub-association relationship;

[0187] The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data using a preset risk threshold;

[0188] The association relationship establishing submodule is further used to determine the first sub-association relationship, the second sub-association relationship, the third sub-association relationship and the fourth sub-association relationship as association relationships between the change data and the corresponding identification information.

[0189] In one embodiment, the data acquisition module includes:

[0190] A data acquisition submodule, configured to acquire a data identifier by using the resource interaction request; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction subrequest corresponding to the resource interaction request, and a resource interaction subrequest identifier;

[0191] The data acquisition submodule is further used to acquire the response time of the resource interaction request, and obtain a time identifier using the response time;

[0192] The data acquisition submodule is further used to determine the data identifier and time identifier as identification information corresponding to the changed data.

[0193] Each module in the above-mentioned resource interaction compliance risk data backtracking device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0194] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG13. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store resource interaction data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for backtracking resource interaction compliance risk data is implemented.

[0195] Those skilled in the art will understand that the structure shown in FIG. 13 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0196] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0197] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0198] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for tracing back resource interaction compliance risk data, characterized in that: The method comprises: Acquire initial resource data, and establish a first processing thread and a second processing thread for the initial resource data; In response to the resource interaction request, using the first processing thread, according to the initial resource data, perform a compliance risk detection on the resource interaction request to obtain a detection result of the resource interaction request; Using the second processing thread, according to the resource interaction request, obtaining the change data of the initial resource data in the process of risk detection of the resource interaction request; Acquire identification information corresponding to the changed data according to the resource interaction request; Establish association information between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

2. The method according to claim 1, characterized in that The step of responding to the resource interaction request and performing compliance risk detection on the resource interaction request according to the initial resource data by using the first processing thread includes: In response to a resource interaction request, after the initial resource data is acquired and the first processing thread and the second processing thread are established, using the first processing thread to perform compliance risk detection on the resource interaction request according to the initial resource data; In response to a resource interaction request, when the initial resource data is not completely acquired, or the first processing thread is not completely established, or the second processing thread is not completely established, the resource interaction request is stored in a preset message queue.

3. The method according to claim 1, characterized in that The step of establishing association information between the change data and the corresponding identification information to obtain traceback data of the resource interaction request includes: The change data corresponding to the resource interaction request is stored in a preset data file to obtain a change data file corresponding to the resource interaction request; Compressing the changed data file to obtain a target file; An association relationship between the changed data file and the corresponding identification information is established, and the target file and the association relationship are stored in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

4. The method according to claim 1, characterized in that: The establishing of the association relationship between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request includes: Using a preset risk data strategy, the change data and the risk data are matched to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data; An association relationship between initial traceback data and corresponding identification information is established to obtain traceback data of the resource interaction request; wherein the initial traceback data includes at least one of change data and risk data.

5. The method according to claim 4, characterized in that: The resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; The establishing of association information between the change data and the corresponding identification information includes: Establishing an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier; Establishing an association relationship between resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; Establishing an association relationship between the interaction request and the risk data to obtain a third sub-association relationship; Establishing an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data using a preset risk threshold; The first sub-association, the second sub-association, the third sub-association and the fourth sub-association are determined as associations between the change data and the corresponding identification information.

6. The method according to claim 1, characterized in that The acquiring, according to the resource interaction request, identification information corresponding to the changed data includes: Using the resource interaction request, a data identifier is obtained; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction sub-request corresponding to the resource interaction request, and a resource interaction sub-request identifier; Obtaining a response time of the resource interaction request, and using the response time to obtain a time identifier; The data identifier and the time identifier are determined as identification information corresponding to the changed data.

7. A backtracking device for resource interaction compliance risk data, characterized in that: The device comprises: A data acquisition module, used to acquire initial resource data and establish a first processing thread and a second processing thread for the initial resource data; A data processing module, configured to respond to a resource interaction request, use the first processing thread, and perform compliance risk detection on the resource interaction request according to the initial resource data to obtain a detection result of the resource interaction request; The data processing module is further configured to obtain, using the second processing thread, change data of the initial resource data in the process of risk detection of the resource interaction request according to the resource interaction request; The data acquisition module is further used to acquire identification information corresponding to the changed data according to the resource interaction request; The data establishment module is used to establish association information between the change data and the corresponding identification information to obtain the traceback data of the resource interaction request; wherein the association information is used to obtain the change data of the resource interaction request using the identification information.

8. The device according to claim 7, characterized in that The step of responding to the resource interaction request and performing compliance risk detection on the resource interaction request according to the initial resource data by using the first processing thread includes: a data processing submodule, configured to respond to a resource interaction request, and, when the initial resource data is acquired and the first processing thread and the second processing thread are established, perform compliance risk detection on the resource interaction request according to the initial resource data by using the first processing thread; The data processing submodule is also used to respond to a resource interaction request and store the resource interaction request in a preset message queue when the initial resource data has not been acquired, the first processing thread has not been established, or the second processing thread has not been established.

9. The device according to claim 7, characterized in that The data establishment module comprises: A file creation submodule, used for storing the change data corresponding to the resource interaction request into a preset data file, and obtaining the change data file corresponding to the resource interaction request; A file compression submodule, used for compressing the changed data file to obtain a target file; The data storage submodule is used to establish an association relationship between the changed data file and the corresponding identification information, and store the target file and the association relationship in a preset database; wherein the association relationship includes the traceback data of the resource interaction request.

10. The device according to claim 7, characterized in that The data establishment module comprises: A risk data acquisition submodule, used to match the change data and the risk data using a preset risk data strategy to obtain the risk data corresponding to the resource interaction request; wherein the risk data strategy includes an association relationship between the change data and the risk data; The backtracking data establishment submodule is used to establish an association relationship between the initial backtracking data and the corresponding identification information to obtain the backtracking data of the resource interaction request; wherein the initial backtracking data includes at least one of the change data and the risk data.

11. The device according to claim 10, characterized in that The resource interaction request includes a single or multiple resource interaction sub-requests; the identification information includes at least one of a resource interaction request identifier, a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; The data establishment module comprises: The association relationship establishment submodule is used to establish an association relationship between the interaction request and the change data to obtain a first sub-association relationship; wherein the interaction request includes at least one of a resource interaction request, a resource interaction request identifier, a resource identifier, and a time identifier; The association relationship establishment submodule is further used to establish an association relationship between the resource data and the change data to obtain a second sub-association relationship; wherein the resource data includes at least one of a resource identifier, a resource interaction sub-request, and a resource interaction sub-request identifier; The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the risk data to obtain a third sub-association relationship; The association relationship establishment submodule is further used to establish an association relationship between the interaction request and the detection result of the initial backtracking data to obtain a fourth sub-association relationship; wherein the detection result is obtained by matching the initial backtracking data using a preset risk threshold; The association relationship establishing submodule is further used to determine the first sub-association relationship, the second sub-association relationship, the third sub-association relationship and the fourth sub-association relationship as association relationships between the change data and the corresponding identification information.

12. The device according to claim 7, characterized in that The data acquisition module comprises: A data acquisition submodule, configured to acquire a data identifier by using the resource interaction request; wherein the data identifier includes at least one of a resource interaction request identifier, a resource interaction subrequest corresponding to the resource interaction request, and a resource interaction subrequest identifier; The data acquisition submodule is further used to acquire the response time of the resource interaction request, and obtain a time identifier using the response time; The data acquisition submodule is further used to determine the data identifier and time identifier as identification information corresponding to the changed data.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method for acquiring parameter information of equipment, equipment network management device and system, electronic device and storage medium

    CN109495303A

  • Risk assessment method and device, electronic equipment and readable storage medium

    CN112288439A

  • Resource interaction task verification method and device, equipment and storage medium

    CN116560856A

  • System and Method for an Asynchronous Processor with Multiple Threading

    US20150074353A1