Bill data processing method, apparatus and device, and computer readable medium

By receiving and responding to batch bill data financing requests in the banking system, dividing them into multiple threads to process and splitting data according to the bill data parameter status, the problem of single pledge method and slow processing of massive data in banking business is solved, and a more efficient bill data processing speed is achieved.

CN119558997APending Publication Date: 2025-03-04CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411618452.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The pledge method in banking business is single, and massive data cannot be processed effectively, resulting in slow processing of bill data.

Method used

By receiving and responding to a batch of bill data financing request, after verifying the validity of the request, it is divided into multiple threads to process the data, and split it according to the status of the bill data parameters during the thread execution process, and update the bill data parameters in the custody table so that the thread can process the financing request parameters based on the associated bill data parameters.

Benefits of technology

Multi-threaded parallel processing of bill data financing requests is realized, which improves the speed of bill data processing, and improves the matching degree between financing request parameters and bill data parameters by splitting bill data parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558997A_ABST
    Figure CN119558997A_ABST
Patent Text Reader

Abstract

The invention discloses a bill data processing method, device and equipment and a computer readable medium, and relates to the technical field of big data. A specific embodiment of the method comprises the following steps: receiving and responding to a batch bill data financing request, verifying the validity of the batch data financing request, and dividing the batch data financing request into a plurality of thread processing data according to bill data of bill types in the batch bill data financing request and thread data parameters; financing request parameters of the batch bill data financing request are different from bill data parameters in the thread processing data, and bill data parameter splitting is carried out according to states of the bill data parameters; and updating the bill data parameters in the safeguard table and the associated bill data parameters of the bill data parameters in the thread processing data according to the bill data parameter splitting result of the bill data parameters, and processing the financing request parameters of the batch bill data financing request bill types based on the associated bill data parameters through the thread. According to the embodiment, the bill data processing speed can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a method, device, equipment and computer-readable medium for processing bill data. Background Art

[0002] As bank customers carry out diversified business, the amount of data is increasing, and the current system and technology cannot support the business development of customers. Pledge, as a financial tool, provides convenience for financing.

[0003] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: the pledge method in banking business is single and does not support the processing of massive data, resulting in a slow speed in processing bill data. Summary of the invention

[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for processing bill data, which can improve the speed of processing bill data.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing bill data is provided, comprising:

[0006] Receiving and responding to a batch bill data financing request, after verifying the validity of the batch data financing request, dividing the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request;

[0007] During the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the bill data parameters are split according to the states of the bill data parameters;

[0008] The bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data parameter splitting result of the bill data parameters, and the financing request parameters of the batch bill data financing request are processed by the thread based on the associated bill data parameters.

[0009] The receiving and responding to the batch bill data financing request, after verifying the validity of the batch data financing request, dividing the data into multiple threads for processing according to the bill data of the bill type in the batch bill data financing request and the thread data parameters, includes:

[0010] Receiving and responding to a batch bill data financing request, after verifying the validity of the batch bill data financing request, parsing the batch bill data financing request to obtain bill data of the bill type in the batch bill data financing request;

[0011] According to the data volume of the bill data of the bill type in the batch bill data financing request and a preset number of threads, thread preprocessing parameters are identified and the data is divided into multiple threads for processing according to the thread preprocessing parameters.

[0012] In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, the bill data parameter is split according to the state of the bill data parameter, including:

[0013] During the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the custody table is queried to obtain the status of the bill data parameters;

[0014] Based on the status of the bill data parameters, the sub-bill interval is located using the financing request parameters and the bill data parameters in the thread processing data, and the bill data is split according to the bill number in the bill data parameters and the sub-bill interval to obtain the data splitting result.

[0015] In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, querying the custody table to obtain the status of the bill data parameter includes:

[0016] During the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter;

[0017] The step of splitting the bill data according to the bill number and the sub-bill interval in the bill data parameter to obtain the data splitting result includes:

[0018] The bill data corresponding to the bill data parameter in the thread processing data is split according to the bill number and the sub-ticket interval in the bill data parameter to obtain the data splitting result.

[0019] In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, querying the custody table to obtain the status of the bill data parameter includes:

[0020] During the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter;

[0021] The step of splitting the bill data according to the bill number and the sub-bill interval in the bill data parameter to obtain the data splitting result includes:

[0022] According to the ticket number and the sub-ticket interval in the ticket data parameter, the ticket data corresponding to adjacent ticket data parameters of the ticket data parameter in the thread processing data are split to obtain the data splitting result.

[0023] The method of updating the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data using the bill data splitting result of the bill data parameters, and processing the financing request parameters of the bill types of the batch bill data financing request based on the associated bill data parameters through the thread, includes:

[0024] The bill data parameters in the custody table are identified by the sub-bill interval in the bill data splitting result of the bill data parameters, and a corresponding relationship between the bill data parameters and the associated bill data parameters is established in the to-be-custodied table;

[0025] The financing request parameters of the bill types of the batch bill data financing request are processed based on the corresponding relationship through a thread.

[0026] The splitting of the bill data parameters according to the states of the bill data parameters includes:

[0027] Invoke an interface according to the order number of the bill data of the batch bill data financing request to query the status of the bill data parameters;

[0028] If the status of the bill data parameter includes pending, the bill data parameter is split.

[0029] According to a second aspect of an embodiment of the present invention, there is provided a device for processing bill data, comprising:

[0030] A partitioning module, configured to receive and respond to a batch bill data financing request, and after verifying the validity of the batch data financing request, partition the data into multiple threads for processing according to the bill data and thread data parameters in the batch bill data financing request;

[0031] A splitting module, used for splitting the bill data parameters according to the states of the bill data parameters when the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different during the process of the thread executing the thread processing data;

[0032] An updating module is used to update the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data with the bill data parameter splitting results of the bill data parameters, and to process the financing request parameters of the bill types of the batch bill data financing request based on the associated bill data parameters through the thread.

[0033] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing ticket data, comprising:

[0034] one or more processors;

[0035] a storage device for storing one or more programs,

[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0037] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.

[0038] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the program is executed by a processor, the method as described above provided by an embodiment of the present invention is implemented.

[0039] One embodiment of the above invention has the following advantages or beneficial effects: after receiving and responding to a batch bill data financing request and verifying the validity of the batch data financing request, the data is divided into multiple threads according to the bill data of the bill type in the batch bill data financing request and the thread data parameters; during the thread execution of the thread processing data, if the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different, the bill data parameters are split according to the state of the bill data parameters; the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data splitting result of the bill data parameters, and the financing request parameters of the bill type of the batch bill data financing request are processed by the thread based on the associated bill data parameters. On the one hand, multiple threads can process bill data financing requests in parallel; on the other hand, splitting the bill data parameters improves the matching degree of the financing request parameters and the bill data parameters. In turn, the speed of processing bill data can be improved.

[0040] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0042] Figure 1 is a schematic diagram of the main flow of a method for processing bill data according to an embodiment of the present invention;

[0043] Figure 2 is a schematic diagram of a process for processing data by dividing into multiple threads according to an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of a process of splitting bill data parameters according to the states of bill data parameters according to an embodiment of the present invention;

[0045] Figure 4 is a schematic diagram of a process for querying the status of bill data parameters according to an embodiment of the present invention;

[0046] Figure 5 is a schematic diagram of a process of splitting bill data parameters when a financing request parameter is smaller than a bill data parameter according to an embodiment of the present invention;

[0047] Figure 6 is a schematic diagram of a process of splitting bill data parameters when a financing request parameter is greater than a bill data parameter according to an embodiment of the present invention;

[0048] Figure 7 is a schematic diagram of a process of processing data based on associated ticket data parameters through a thread according to an embodiment of the present invention;

[0049] Figure 8 is a schematic diagram of the main structure of a device for processing bill data according to an embodiment of the present invention;

[0050] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0051] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0053] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0054] In order to solve the problem of slow bill data processing, the following technical solution in the embodiment of the present invention may be adopted.

[0055] See also Figure 1 , Figure 1 This is a schematic diagram of the main process of the method for processing bill data according to an embodiment of the present invention. Multiple threads can process bill data financing requests in parallel; splitting bill data parameters improves the matching degree between financing request parameters and bill data parameters. Figure 1 As shown in 100, the following steps are specifically included:

[0056] S101, receiving and responding to a batch bill data financing request, verifying the validity of the batch data financing request, and dividing the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request.

[0057] In an embodiment of the present invention, a client sends a batch bill data financing request through a client. The client can be set on a mobile terminal, a computer terminal or a browser. The batch bill data financing request sent by the client is received. As an example, the batch bill data financing request includes the following parameters: pledger customer information, face value, pledgee information, batch bill financing time point, bill data and thread data parameters.

[0058] Then, according to the bill data of the bill type in the batch bill data financing request and the thread data parameters, the data is divided into multiple threads for processing, that is, the batch bill data financing request is processed in parallel by multiple threads to increase the speed of processing the bill data.

[0059] See also Figure 2 That is 200, Figure 2 This is a schematic diagram of a process for processing data by dividing into multiple threads according to an embodiment of the present invention. Specifically, the following steps are included:

[0060] S201, receiving and responding to a batch bill data financing request, verifying the validity of the batch bill data financing request, parsing the batch bill data financing request to obtain bill data of the bill types in the batch bill data financing request.

[0061] A batch bill data financing request sent by a client is received, and in response to the batch bill data financing request, the validity of the batch data financing request is verified. As an example, the user identifier and the data identifier are used to verify that the user identifier has the authority to process the bill data corresponding to the data identifier in the data financing request, thereby ensuring the security of the bill data. That is, if the user identifier has a corresponding relationship with the bill data in the data financing request, the validity of the batch data financing request is verified; if the user identifier has no corresponding relationship with the bill data in the data financing request, the validity of the batch data financing request is not verified. The user identifier is obtained from the data financing request.

[0062] After verifying the validity of the batch data financing request, the batch bill data financing request is parsed to obtain bill data of bill types in the batch bill data financing request. As an example, the bill data of bill types include bill data and check data. The bill types include: bills and checks.

[0063] S202, identifying thread preprocessing parameters according to the data volume of the bill data of the bill type in the batch bill data financing request and a preset number of thread processing data, and dividing the data into multiple thread processing data according to the thread preprocessing parameters.

[0064] Considering that the amount of bill data in the batch bill data financing request is large, a preset number of threads may be used to process the data. The preset number of threads is pre-set in the batch bill data financing request. As an example, the preset number of threads is 3, that is, 3 threads are used by default to process the bill data in the batch bill data financing request.

[0065] In an embodiment of the present invention, thread preprocessing parameters are identified according to the data volume of the bill data of the bill type in the batch bill data financing request and the preset number of threads. That is, bill data belonging to the same bill type is processed in the same thread. The purpose of this is to ensure data security and improve the processing efficiency of bill data of the same type.

[0066] As an example, when the data volume of the bill data of the bill type is less than or equal to the data volume threshold, it means that the data volume of the bill data of the bill type matches the preset number of threads, and the thread preprocessing parameter is equal to the preset number of threads. By using the preset number of threads as the thread preprocessing parameter, there is no need to calculate and thus shorten the speed of dividing and processing data.

[0067] As another example, when the data volume of the bill data of the bill type is greater than the data volume threshold, it means that the data volume of the bill data of the bill type does not match the preset number of threads, and the preset number of threads cannot process the bill data of the bill type in time, then the thread preprocessing parameter is determined by the thread data parameter. For example: the thread preprocessing parameter is equal to the quotient of the data volume of the bill data of the bill type and the thread data parameter. The data volume of the bill data of the bill type is: 99; the thread data parameter is: 20, and the thread preprocessing parameter is: 5. The maximum amount of data that needs to be allocated to each thread is: 20. A total of 5 threads are allocated, the first thread processes data serial numbers: 1-20; the second thread processes data serial numbers: 21-40, the third thread processes data serial numbers: 41-60; the fourth thread processes data serial numbers: 61-80; the fifth thread processes data serial numbers: 81-99. That is, the bill data of the bill type in the batch bill data financing request is allocated to multiple threads for parallel processing. The bill type of the bill data in each thread is the same.

[0068] exist Figure 2 In an embodiment of the present invention, multiple threads are used to process the bill data of the bill types in the batch bill data financing request in parallel, thereby shortening the processing time of the bill data.

[0069] S102: During the process of thread execution and thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the bill data parameters are split according to the states of the bill data parameters.

[0070] For each thread, it is necessary to process the divided thread processing data. Specifically, during the thread execution of thread processing data, the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different, indicating that the bill data parameters cannot meet the financing request parameters. As an example, the bill data parameters include the bill face value. The financing request parameters include the financing request amount. The financing request parameter of the batch bill data financing request is: 50, and the bill data parameter in the thread processing data is 100. The financing request parameter of the batch bill data financing request and the bill data parameter in the thread processing data are different, indicating that the bill data parameter cannot meet the financing request parameter. Then the bill data parameter can be split.

[0071] See also Figure 3 That is 300, Figure 3 The flowchart of splitting bill data parameters according to the status of bill data parameters according to an embodiment of the present invention is shown in FIG. The flowchart specifically includes the following steps:

[0072] S301. During the process of thread execution and thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the custody table is queried to obtain the status of the bill data parameters.

[0073] During the thread execution thread processing data process, the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, indicating that the financing request parameters do not match the bill data parameters. Since the batch bill data financing request needs to be processed when the financing request parameters match the bill data parameters, the bill data parameters need to be adjusted. The premise for adjusting the bill data parameters is that the status of the bill data parameters meets the adjustment requirements.

[0074] See also Figure 4 That is 400, Figure 4 The flowchart of querying the status of bill data parameters according to an embodiment of the present invention includes the following steps:

[0075] S401. Call an interface to query the status of bill data parameters based on the order number of the bill data in the batch bill data financing request.

[0076] In an embodiment of the present invention, the bill management center stores the status of the bill data parameters. The interface of the bill management center can be called to query the status of the bill data parameters according to the order number of the bill data in the batch bill data financing request.

[0077] In the embodiment of the present invention, the states of the bill data parameters include: pool custody state; pending state; processed state. The pool custody state is the state of the bill data parameters when receiving a batch bill data financing request; the pending state is the state in which the bill data parameters are not processed during the thread execution thread processing data; the processed state is the state in which the bill data parameters are processed after the thread execution thread processing data.

[0078] S402: If the status of the bill data parameter includes "to be processed", the bill data parameter is split.

[0079] If the status of the ticket data parameter includes "to be processed", it means that the ticket parameter can be split. If the status of the ticket data parameter includes "pool entry report" or "processed", it means that the thread processing data needs to be reset.

[0080] exist Figure 4 In the embodiment, the bill data parameters are split by controlling the status of the bill data parameters to improve the effectiveness of processing the bill data.

[0081] S302: Based on the status of the bill data parameters, the sub-bill interval is located using the financing request parameters and the bill data parameters in the thread processing data, and the bill data parameters are split according to the bill number and the sub-bill interval in the bill data parameters to obtain a data splitting result.

[0082] If the state of the bill data parameter meets the adjustment requirements, the sub-ticket interval is located by the financing request parameter and the bill data parameter in the thread processing data. The sub-ticket interval is a subset of the bill data parameter. By splitting the bill data parameter, the matching of the financing request parameter and the bill data parameter is achieved. Specifically, the bill data parameter is split according to the bill number and the sub-ticket interval in the bill data parameter to obtain the data splitting result.

[0083] See also Figure 5 That is 500, Figure 5 This is a flow chart of splitting bill data parameters when the financing request parameter is smaller than the bill data parameter according to an embodiment of the present invention. Specifically, it includes the following steps:

[0084] S501. During the process of executing the thread to process the thread data, if the financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter.

[0085] During the thread execution thread processing data process, in order to know whether the financing request parameters of the batch bill data financing request match the bill data parameters in the thread processing data, it is necessary to compare the financing request parameters of the batch bill data financing request with the bill data parameters in the thread processing data.

[0086] The financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, indicating that the bill data corresponding to the bill data parameter in the thread processing data can meet the financing request parameter of the batch bill data financing request. The status of the bill data parameter is obtained by querying the custody table to determine whether data splitting can be performed.

[0087] S502. Split the bill data corresponding to the bill data parameters in the thread processing data according to the bill number and sub-bill interval in the bill data parameters to obtain a data splitting result.

[0088] If it is determined that the bill data parameters can be split based on the status of the bill data parameters, the bill data corresponding to the bill data parameters in the thread processing data are split according to the ticket number and sub-ticket interval in the bill data parameters.

[0089] The ticket number in the ticket data parameter is the identifier of the ticket data parameter. As an example, the financing request parameter of the batch ticket data financing request is: 10; the ticket data parameter in the thread processing data is 20. The starting ticket number in the ticket data parameter is 21. The sub-ticket interval is located by the container request parameter and the ticket data parameter in the thread processing data. As an example, when the financing request parameter is less than the ticket data parameter, the sub-ticket interval is equal to the financing request parameter. For example: the financing request parameter is: 10, then the sub-ticket interval is: 10.

[0090] Then, the starting ticket number in the ticket data parameter is used as the starting point of the sub-ticket interval, and the end point of the sub-ticket interval corresponds to a parameter value that is less than the maximum value of the ticket data parameter. As an example, if the starting ticket number in the ticket data parameter is 21 and the sub-ticket interval is 10, the ticket numbers in the data splitting result are 21 to 30.

[0091] exist Figure 5 In the embodiment of the invention, the financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, indicating that the bill data corresponding to the bill data parameter can meet the financing request parameter, and the bill data corresponding to the bill data parameter can be split.

[0092] See also Figure 6 That is 600, Figure 6 This is a flow chart of splitting bill data parameters when the financing request parameter is greater than the bill data parameter according to an embodiment of the present invention. Specifically, the following steps are included:

[0093] S601. During the process of executing the thread to process the thread data, if the financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter.

[0094] During the thread execution thread processing data process, in order to know whether the financing request parameters of the batch bill data financing request match the bill data parameters in the thread processing data, it is necessary to compare the financing request parameters of the batch bill data financing request with the bill data parameters in the thread processing data.

[0095] The financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data, indicating that the bill data corresponding to the bill data parameter in the thread processing data cannot meet the financing request parameter of the batch bill data financing request. The status of the bill data parameter is obtained by querying the custody table to determine whether data splitting can be performed.

[0096] S602. According to the ticket number and sub-ticket interval in the ticket data parameter, the ticket data corresponding to the adjacent ticket data parameters of the ticket data parameter in the splitting thread processing data are obtained to obtain the data splitting result.

[0097] If it is determined that the bill data parameters can be split based on the status of the bill data parameters, the bill data corresponding to the adjacent bill data parameters of the bill data parameters in the split thread processing data are split according to the ticket number and sub-ticket interval in the bill data parameters.

[0098] When the financing request parameter is greater than the bill data parameter, the sub-bill interval is equal to the financing request parameter. However, since the financing request parameter is greater than the bill data parameter, that is, the current bill data parameter is difficult to meet the financing request parameter, the current bill data parameter and the adjacent bill data parameter need to meet the financing request parameter together.

[0099] As an example, the financing request parameter of the batch bill data financing request is: 30; the bill data parameter in the thread processing data is 20. The starting bill number in the current bill data parameter is 21. The starting bill number of the adjacent bill data parameter to the current bill data parameter is: 41. The sub-bill interval is equal to the financing request parameter, then the sub-bill interval is: 30. Then the bill numbers in the data split result are: 21 to 50.

[0100] exist Figure 6 In the embodiment of the invention, the financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data. This indicates that the bill data corresponding to the bill data parameter is difficult to meet the financing request parameter, and the bill data corresponding to the current bill data parameter and the bill data parameter adjacent to the current bill data parameter need to meet the financing request parameter together to implement data splitting.

[0101] In the above embodiment, the financing request parameters of the batch bill data financing request do not match the bill data parameters in the thread processing data. The bill data parameters adjacent to the bill data parameters are adjusted to meet the financing request parameters, thereby achieving a match with the financing request parameters without changing the financing request parameters.

[0102] S103, updating the bill data parameters in the custody table and the associated bill data parameters in the thread processing data with the bill data parameter splitting result of the bill data parameters, and processing the financing request parameters of the bill types of the batch bill data financing request based on the associated bill data parameters through the thread.

[0103] In the embodiment of the present invention, the custody table is used to store the status of the bill data parameters. After the data is split, it means that the status of the bill data parameters needs to be updated. That is, it is updated from the pending status to the processed status. This improves the utilization rate of the bill data parameters and avoids repeated operations.

[0104] The associated bill data parameters of the bill data parameters in the thread processing data are the basis for processing the bill data. As an example, the associated bill data parameters include pledge parameters. The financing request parameters of the bill types of the batch bill data financing request are processed by the thread based on the associated bill data parameters. The pledge operation is implemented with the bill data parameters matching the financing request parameters.

[0105] See also Figure 7 That is 700, Figure 7 This is a flow chart of processing data based on associated ticket data parameters through threads according to an embodiment of the present invention. Specifically, it includes the following steps:

[0106] S701. The bill data parameters in the custody table are identified by the sub-bill interval in the bill data splitting result of the bill data parameters, and a corresponding relationship between the bill data parameters and the associated bill data parameters is established in the custody table.

[0107] In the embodiment of the present invention, data splitting involves different bill data parameters, and the bill data parameters in the custody table can be identified according to the sub-bill interval in the bill data splitting result of the bill data parameter. As an example, if the sub-bill interval involves bill data parameter 1, the state of bill data parameter 1 in the custody table is updated. If the sub-bill interval involves bill data parameter 2 and bill data parameter 3, the state of bill data parameter 2 and the state of bill data parameter 3 in the custody table are updated.

[0108] Then, a correspondence between the bill data parameters and the associated bill data parameters is established in the table to be kept. The above correspondence represents the relationship between the bill data parameters and the pledge operation.

[0109] S702: Processing financing request parameters of bill types of batch bill data financing requests based on corresponding relationships through threads.

[0110] The thread processes the financing request parameters of the bill types in the batch bill data financing request according to the above correspondence, and then implements the financing operation of bills of the same bill type.

[0111] exist Figure 7 In the embodiment of the present invention, a custody table is used to record the bill data parameters and the correspondence between the bill data parameters and the associated bill data parameters to implement financing operations for the bills.

[0112] In one embodiment of the present invention, if an abnormality occurs during the implementation of the embodiment of the present invention, the state of the ticket data parameter is rolled back to the starting state, and then the technical solution in the embodiment of the present invention is executed. If a business error occurs, the state of the ticket data parameter is rolled back to the starting state while the business error information is fed back, and then the technical solution in the embodiment of the present invention is executed.

[0113] In the above-mentioned embodiment of the present invention, after receiving and responding to a batch bill data financing request and verifying the validity of the batch data financing request, the batch bill data financing request is divided into multiple threads for processing data according to the bill data of the bill type and the thread data parameters; during the process of the thread executing the thread processing data, if the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different, the bill data parameters are split according to the state of the bill data parameters; the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data splitting result of the bill data parameters, and the financing request parameters of the bill type of the batch bill data financing request are processed by the thread based on the associated bill data parameters. On the one hand, multiple threads can process bill data financing requests in parallel; on the other hand, splitting bill data improves the matching degree of financing request parameters and bill data parameters. In turn, the speed of processing bill data can be improved.

[0114] The embodiment of the present invention, from the perspective of the system, meets the customer's requirements for the speed of processing massive data, system stability, and data reliability and security, and can also meet the requirements for the pledge and unpacking of batch data.

[0115] See also Figure 8 , Figure 8 is a schematic diagram of the main structure of the device for processing bill data according to an embodiment of the present invention. The device for processing bill data can implement a method for processing bill data, such as Figure 8 As shown in 800, the device for processing bill data specifically includes:

[0116] A division module 801 is used to receive and respond to a batch bill data financing request, and after verifying the validity of the batch data financing request, divide the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request;

[0117] A splitting module 802 is used for splitting the bill data parameters according to the states of the bill data parameters if the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different during the process of the thread executing the thread processing data;

[0118] The updating module 803 is used to update the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data with the bill data parameter splitting result of the bill data parameters, and process the financing request parameters of the bill type of the batch bill data financing request based on the associated bill data parameters through the thread.

[0119] In one embodiment of the present invention, the partitioning module 801 is specifically configured to receive and respond to a batch bill data financing request, verify the validity of the batch bill data financing request, and then parse the batch bill data financing request to obtain bill data of bill types in the batch bill data financing request;

[0120] According to the data volume of the bill data of the bill type in the batch bill data financing request and a preset number of threads, thread preprocessing parameters are identified and the data is divided into multiple threads for processing according to the thread preprocessing parameters.

[0121] In one embodiment of the present invention, the splitting module 802 is specifically configured to query the custody table to obtain the status of the bill data parameters if the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different during the thread executing the thread processing data;

[0122] Based on the status of the bill data parameters, the sub-bill interval is located using the financing request parameters and the bill data parameters in the thread processing data, and the bill data is split according to the bill number in the bill data parameters and the sub-bill interval to obtain the data splitting result.

[0123] In one embodiment of the present invention, the splitting module 802 is specifically used to

[0124] During the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter;

[0125] The bill data corresponding to the bill data parameter in the thread processing data is split according to the bill number and the sub-ticket interval in the bill data parameter to obtain the data splitting result.

[0126] In one embodiment of the present invention, the splitting module 802 is specifically configured to query the custody table to obtain the status of the bill data parameter when the financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data during the thread executing the thread processing data;

[0127] According to the ticket number and the sub-ticket interval in the ticket data parameter, the ticket data corresponding to adjacent ticket data parameters of the ticket data parameter in the thread processing data are split to obtain the data splitting result.

[0128] In one embodiment of the present invention, the updating module 803 is specifically used to identify the bill data parameters in the custody table with the sub-bill interval in the bill data splitting result of the bill data parameter, and establish a corresponding relationship between the bill data parameter and the associated bill data parameter in the to-be-custodied table;

[0129] The financing request parameters of the bill types of the batch bill data financing request are processed based on the corresponding relationship through a thread.

[0130] In one embodiment of the present invention, the splitting module 802 is specifically used to query the status of the bill data parameters according to the bill number calling interface of the batch bill data financing request;

[0131] If the status of the bill data parameter includes pending, the bill data parameter is split.

[0132] Fig. 9 An exemplary system architecture 900 is shown to which the method for processing ticket data or the apparatus for processing ticket data according to the embodiment of the present invention can be applied.

[0133] like Fig. 9 As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0134] Users can use terminal devices 901, 902, 903 to interact with server 905 through network 904 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0135] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0136] The server 905 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 901, 902, and 903. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0137] It should be noted that the method for processing bill data provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the device for processing bill data is generally set in the server 905 .

[0138] It should be understood that Fig. 9The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0139] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for processing bill data provided by the embodiment of the present invention is implemented.

[0140] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0141] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0142] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0143] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.

[0144] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0145] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor including a partitioning module, a splitting module, and an updating module. The names of these modules do not, in some cases, limit the modules themselves. For example, the partitioning module may also be described as "used to receive and respond to a batch bill data financing request, verify the validity of the batch data financing request, and then divide the data into multiple threads according to the bill data and thread data parameters of the bill type in the batch bill data financing request."

[0147] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0148] Receiving and responding to a batch bill data financing request, after verifying the validity of the batch data financing request, dividing the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request;

[0149] During the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the bill data parameters are split according to the states of the bill data parameters;

[0150] The bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data parameter splitting result of the bill data parameters, and the financing request parameters of the bill type of the batch bill data financing request are processed by the thread based on the associated bill data parameters.

[0151] According to the technical solution of the embodiment of the present invention, after receiving and responding to a batch bill data financing request and verifying the validity of the batch data financing request, the data is divided into multiple threads according to the bill data of the bill type in the batch bill data financing request and the thread data parameters; during the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different, the bill data parameters are split according to the state of the bill data parameters; the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data splitting results of the bill data parameters, and the financing request parameters of the bill type of the batch bill data financing request are processed by the thread based on the associated bill data parameters. On the one hand, multiple threads can process bill data financing requests in parallel; on the other hand, splitting the bill data parameters improves the matching degree of the financing request parameters and the bill data parameters. In turn, the speed of processing bill data can be improved.

[0152] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0153] It should be noted that in the technical solution of the present invention, the collection, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. Once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.

[0154] When applicable, including in certain relevant applications, protect user privacy by de-identifying data, such as by removing specific identifiers (e.g., date of birth, etc.) when applicable, controlling the amount or specificity of data stored (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and / or other de-identification methods.

Claims

1. A method for processing bill data, characterized in that: include: Receiving and responding to a batch bill data financing request, after verifying the validity of the batch data financing request, dividing the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request; During the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the bill data parameters are split according to the states of the bill data parameters; The bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data are updated with the bill data parameter splitting result of the bill data parameters, and the financing request parameters of the bill type of the batch bill data financing request are processed by the thread based on the associated bill data parameters.

2. The method for processing bill data according to claim 1, characterized in that: The receiving and responding to the batch bill data financing request, after verifying the validity of the batch data financing request, dividing the data into multiple threads for processing according to the bill data of the bill type in the batch bill data financing request and the thread data parameters, includes: Receiving and responding to a batch bill data financing request, after verifying the validity of the batch bill data financing request, parsing the batch bill data financing request to obtain bill data of the bill type in the batch bill data financing request; According to the data volume of the bill data of the bill type in the batch bill data financing request and a preset number of threads, thread preprocessing parameters are identified and the data is divided into multiple threads for processing according to the thread preprocessing parameters.

3. The method for processing bill data according to claim 1, characterized in that: In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, the bill data parameter is split according to the state of the bill data parameter, including: During the process of executing the thread processing data, if the financing request parameters of the batch bill data financing request are different from the bill data parameters in the thread processing data, the custody table is queried to obtain the status of the bill data parameters; Based on the status of the bill data parameters, the sub-bill interval is located using the financing request parameters and the bill data parameters in the thread processing data, and the bill data is split according to the bill number in the bill data parameters and the sub-bill interval to obtain the data splitting result.

4. The method for processing bill data according to claim 3, characterized in that: In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, querying the custody table to obtain the status of the bill data parameter includes: During the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is less than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter; The step of splitting the bill data according to the bill number and the sub-bill interval in the bill data parameter to obtain the data splitting result includes: The bill data corresponding to the bill data parameter in the thread processing data is split according to the bill number and the sub-ticket interval in the bill data parameter to obtain the data splitting result.

5. The method for processing bill data according to claim 3, characterized in that: In the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is different from the bill data parameter in the thread processing data, querying the custody table to obtain the status of the bill data parameter includes: During the process of executing the thread processing data, if the financing request parameter of the batch bill data financing request is greater than the bill data parameter in the thread processing data, the custody table is queried to obtain the status of the bill data parameter; The step of splitting the bill data according to the bill number and the sub-bill interval in the bill data parameter to obtain the data splitting result includes: According to the ticket number and the sub-ticket interval in the ticket data parameter, the ticket data corresponding to adjacent ticket data parameters of the ticket data parameter in the thread processing data are split to obtain the data splitting result.

6. The method for processing bill data according to claim 1, characterized in that: The method of updating the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data using the bill data splitting result of the bill data parameters, and processing the financing request parameters of the bill types of the batch bill data financing request based on the associated bill data parameters through the thread, includes: The bill data parameters in the custody table are identified by the sub-bill interval in the bill data splitting result of the bill data parameters, and a corresponding relationship between the bill data parameters and the associated bill data parameters is established in the to-be-custodied table; The financing request parameters of the bill types of the batch bill data financing request are processed based on the corresponding relationship through a thread.

7. The method for processing bill data according to any one of claims 1 to 6, characterized in that: The splitting of the bill data parameters according to the states of the bill data parameters includes: Invoke an interface according to the order number of the bill data of the batch bill data financing request to query the status of the bill data parameters; If the status of the bill data parameter includes pending, the bill data parameter is split.

8. A device for processing bill data, characterized in that: include: A partitioning module, for receiving and responding to a batch bill data financing request, and after verifying the validity of the batch data financing request, partitioning the data into multiple threads for processing according to the bill data of the bill type and thread data parameters in the batch bill data financing request; A splitting module, used for splitting the bill data parameters according to the states of the bill data parameters when the financing request parameters of the batch bill data financing request and the bill data parameters in the thread processing data are different during the process of the thread executing the thread processing data; An updating module is used to update the bill data parameters in the custody table and the associated bill data parameters of the bill data parameters in the thread processing data with the bill data parameter splitting results of the bill data parameters, and to process the financing request parameters of the bill types of the batch bill data financing request based on the associated bill data parameters through the thread.

9. An electronic device for processing bill data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

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