Method and device for signing for electronic certificate, electronic device and storage medium

By monitoring the waiting time in the electronic credential library and using dynamic threads to process timeout credentials, the problem of low electronic credential processing efficiency when the traffic volume is large or the credential type is concentrated is solved, which improves processing efficiency and reduces resource waste.

CN119741019APending Publication Date: 2025-04-01CHINA CONSTR BANK CORP SICHUAN BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411842856.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the integrated fiscal budget payment system, when the business volume is large or the voucher type is relatively concentrated, the processing efficiency of electronic vouchers is low, resulting in voucher congestion and waste of resources in the banking system.

Method used

By obtaining the waiting time information of the electronic voucher to be signed in the electronic voucher library, the waiting time is monitored in real time, and determining whether the timeout is exceeded based on the preset waiting time threshold. When there is a timeout for electronic vouchers to be signed, use dynamic threads to query and read these vouchers to speed up processing.

Benefits of technology

It improves the processing efficiency of electronic vouchers and reduces the waste of bank system resources caused by low processing efficiency and voucher congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741019A_ABST
    Figure CN119741019A_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for signing for electronic vouchers, an electronic device and a storage medium. The method obtains the first distribution information of each electronic voucher to be signed in the electronic voucher library at a preset time interval; determines whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold; when it is determined that there are electronic vouchers to be signed that exceed the preset waiting time, the electronic vouchers to be signed that exceed the preset waiting time are queried and read based on a dynamic thread. By obtaining the waiting time of each electronic voucher to be signed, the waiting time of the electronic vouchers to be signed is monitored in real time, and it is determined whether the electronic vouchers to be signed have timed out. When it is determined that there are electronic vouchers to be signed that exceed the preset waiting time, these vouchers are queried and read through a dynamic thread, which speeds up the processing speed, improves the processing efficiency, and reduces the waste of bank system resources caused by low voucher processing efficiency and voucher congestion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for signing for an electronic certificate, an electronic device, and a storage medium. Background Art

[0002] The efficient operation of the integrated fiscal budget payment system depends on the interaction of electronic vouchers between the Ministry of Finance, the People's Bank of China and the agent bank. The electronic vouchers of the three-party institutions are all circulated through the electronic voucher library. During the voucher circulation, the business system queries the voucher library. After finding the electronic voucher sent to the business system, it calls the interface of the electronic voucher library to sign for the voucher.

[0003] At present, the mode of business system receipt of vouchers is: traverse all voucher types in all zones, and then sign in chronological order. Although the above method can realize the receipt of electronic vouchers, the number of vouchers that can be signed by the voucher library at one time is limited. If the vouchers of the current voucher type in the current zone have not been signed, the business system must wait until all voucher types in all zones are polled and the current voucher type in the current zone is captured again before the subsequent vouchers can be signed. Once the business volume is large or the voucher types are relatively concentrated, the voucher processing efficiency will be low and the voucher will be congested, resulting in a large amount of resource waste in the bank system. Summary of the invention

[0004] The present invention provides a method, device, electronic device and storage medium for signing electronic vouchers, which is mainly intended to solve the problem of low voucher processing efficiency and voucher congestion due to large business volume or relatively concentrated voucher types, resulting in a large amount of bank system resources being wasted.

[0005] According to a first aspect of the present disclosure, a method for signing for an electronic certificate is provided, comprising:

[0006] Acquire first distribution information of each electronic voucher to be signed in the electronic voucher database at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed;

[0007] According to the waiting time of each electronic voucher to be signed and the preset waiting time threshold, determining whether each electronic voucher to be signed exceeds the preset waiting time;

[0008] In the case where it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, the electronic voucher to be signed that exceeds the preset waiting time is queried and read based on the dynamic thread.

[0009] Optionally, the first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; and judging whether each electronic voucher to be signed exceeds the preset waiting time according to each electronic voucher to be signed and the preset waiting time threshold value further includes:

[0010] Determine the target preset waiting time threshold according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds;

[0011] The step of judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold also includes:

[0012] According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

[0013] Optionally, querying and reading the to-be-signed electronic voucher that exceeds a preset waiting time based on a dynamic thread includes:

[0014] Determine the target zone and target voucher type of the voucher to be signed for that exceeds the preset waiting time;

[0015] Based on the dynamic thread, query and read the electronic voucher to be signed in the target voucher type of the target zone; wherein the preset fixed thread and the dynamic thread read the electronic voucher to be signed in parallel;

[0016] When it is determined that there is no receipt to be signed that exceeds the preset waiting time, the dynamic thread is closed.

[0017] Optionally, after obtaining the first distribution information of each electronic certificate to be signed in the electronic certificate library, the method further includes:

[0018] The second distribution information of each electronic voucher to be signed is obtained in the electronic voucher library; wherein the second distribution information includes the number of vouchers to be signed and the waiting time of each voucher type in the business system polling area.

[0019] Optionally, after obtaining the second distribution information of each of the to-be-signed electronic certificates in the electronic certificate library, the method further includes:

[0020] Determine the maximum waiting time for each electronic voucher to be signed for each voucher type in each zone;

[0021] Determine the processing priority of each voucher type in each zone according to the maximum waiting time; wherein the maximum waiting time is proportional to the processing priority;

[0022] Based on a preset fixed thread, the waiting-for-signature vouchers of different voucher types in the different zones are polled and processed according to the processing priority.

[0023] According to a second aspect of the present disclosure, there is provided a device for signing for an electronic certificate, comprising:

[0024] A first acquisition unit, configured to acquire first distribution information of each electronic voucher to be signed in the electronic voucher database at a preset time interval; wherein the first distribution information includes a waiting time of the electronic voucher to be signed;

[0025] A judging unit, configured to judge whether each of the electronic vouchers to be signed exceeds a preset waiting time according to the waiting time of each of the electronic vouchers to be signed and a preset waiting time threshold;

[0026] The processing unit is used to query and read the electronic voucher to be signed that exceeds the preset waiting time based on the dynamic thread when it is determined that there is the electronic voucher to be signed that exceeds the preset waiting time.

[0027] Optionally, the first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; and the judgment unit is further configured to:

[0028] Determine the target preset waiting time threshold according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds;

[0029] The step of judging whether each of the electronic vouchers to be signed for exceeds the preset waiting time according to the waiting time of each of the electronic vouchers to be signed for and the preset waiting time threshold also includes:

[0030] According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

[0031] Optionally, the first determining unit is further configured to:

[0032] Determine the target zone and target voucher type of the voucher to be signed for that exceeds the preset waiting time;

[0033] Based on the dynamic thread, query and read the electronic voucher to be signed in the target voucher type of the target zone; wherein the preset fixed thread and the dynamic thread read the electronic voucher to be signed in parallel;

[0034] When it is determined that there is no receipt to be signed that exceeds the preset waiting time, the dynamic thread is closed.

[0035] Optionally, the device further comprises:

[0036] The second acquisition unit is used to obtain the second distribution information of each electronic certificate to be signed in the electronic certificate library after the first acquisition unit obtains the first distribution information of each electronic certificate to be signed in the electronic certificate library; wherein the second distribution information includes the number of certificates to be signed and the waiting time of each certificate type in the business system polling area.

[0037] Optionally, the device further comprises:

[0038] A first determining unit is used to determine the maximum waiting time of each electronic voucher to be signed in each voucher type in each zone after the second obtaining unit obtains the second distribution information of each electronic voucher to be signed in the electronic voucher library;

[0039] A second determining unit is used to determine the processing priority of each voucher type in each zone according to the maximum waiting time; wherein the maximum waiting time is proportional to the processing priority;

[0040] The processing unit is used to poll and process the waiting-for-signature vouchers of different voucher types in the different zones according to the processing priority based on a preset fixed thread.

[0041] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0042] at least one processor; and

[0043] a memory communicatively connected to the at least one processor; wherein,

[0044] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0045] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0046] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0047] The electronic voucher signing method, device, electronic device and storage medium provided by the present disclosure include: obtaining the first distribution information of each electronic voucher to be signed in the electronic voucher library at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed; judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold; in the case of determining that there is an electronic voucher to be signed that exceeds the preset waiting time, querying and reading the electronic voucher to be signed that exceeds the preset waiting time based on a dynamic thread. Compared with the related art, the embodiment of the present application obtains the waiting time of each electronic voucher to be signed in the electronic voucher library, monitors the waiting time of the electronic voucher to be signed in real time, and judges whether the electronic voucher to be signed is overtime according to the preset waiting time threshold. When it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, querying and reading these vouchers through a dynamic thread, speeds up the processing speed, improves the processing efficiency, and reduces the waste of bank system resources caused by low voucher processing efficiency and voucher congestion.

[0048] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0050] Figure 1 A flowchart of a method for signing for an electronic certificate provided by an embodiment of the present disclosure;

[0051] Figure 2 A schematic diagram of a credential reading scheduling method provided by an embodiment of the present disclosure;

[0052] Figure 3 A flowchart of a method for signing for an electronic certificate provided by an embodiment of the present disclosure;

[0053] Figure 4 A flowchart of a method for signing for an electronic certificate provided by an embodiment of the present disclosure;

[0054] Figure 5 A schematic diagram of the structure of an electronic certificate signing device provided in an embodiment of the present disclosure;

[0055] Figure 6 A schematic diagram of the structure of an electronic certificate signing device provided in an embodiment of the present disclosure;

[0056] Figure 7A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0057] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure 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 may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0058] The following describes the electronic certificate signing method, device, electronic device and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.

[0059] Figure 1 A flowchart of a method for signing for an electronic certificate provided in an embodiment of the present disclosure.

[0060] like Figure 1 As shown, the method comprises the following steps:

[0061] Step 101, obtaining first distribution information of each electronic voucher to be signed in the electronic voucher database at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed.

[0062] In some embodiments, the municipal branch of the agent bank shares the electronic payment security support system with the provincial agent bank. The payment business of the municipal finance represented by the municipal branch of the agent bank is implemented and configured through the electronic payment security support system deployed by the provincial government. Therefore, the service scope of the electronic voucher library and business payment system deployed by the provincial agent bank is the finance and budget units at all levels in the province. Therefore, in one electronic voucher library, there are electronic vouchers to be signed for in different zones, and the zones are the basic administrative units of payment business divided by the financial business system.

[0063] During the circulation of vouchers, the electronic voucher library will not actively push electronic vouchers to various business systems. Instead, the business system will query the voucher library. After finding that there are electronic vouchers sent to the organization, the interface of the electronic voucher library will be called to sign for the vouchers. The current signing mode for electronic vouchers is: traversing all voucher types in all regions, and then signing in chronological order. There is an upper limit on the number of vouchers that can be signed by the voucher library at one time, and it is impossible to sign for all vouchers of the same type in the same region at one time.

[0064] Therefore, in the electronic voucher database, the electronic voucher may need to wait for a long time before it can be signed for; the waiting time for the electronic voucher to be signed is obtained, and the status of the electronic vouchers to be signed in each area is understood.

[0065] Step 102: judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold.

[0066] The waiting time is compared with a preset waiting time threshold. In a possible implementation, the preset waiting time threshold may be set after comprehensive consideration of factors such as business rules, user experience, and operational efficiency, such as 10 minutes or 30 minutes, which is not limited in the present embodiment of the application.

[0067] If the waiting time of a certain electronic voucher to be signed exceeds a preset threshold, it is marked as “timeout.” In some embodiments, after the electronic voucher to be signed marked as timeout is signed, the status of the voucher is updated, thereby reducing the monitoring burden.

[0068] Step 103: when it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, query and read the electronic voucher to be signed that exceeds the preset waiting time based on the dynamic thread.

[0069] See also Figure 2 , Figure 2 A schematic diagram of a credential reading scheduling method provided by an embodiment of the present disclosure. Figure 2 As shown, after identifying the time-out electronic receipt to be signed (i.e. Figure 2 After there are congested vouchers in the system, one or more dynamic threads are started to process these vouchers. Specifically, the dynamic threads can be created according to the system load or the number of timed-out electronic vouchers to be signed to ensure effective use of system resources.

[0070] One or more timeout credential processing tasks are assigned to each dynamic thread. The number of threads and the number of credentials processed by each thread can be dynamically adjusted according to the concurrency and processing capabilities of the system, which is not limited in this embodiment of the present application.

[0071] In this way, the timed electronic vouchers to be signed can be effectively processed while maintaining the responsiveness and stability of the system. The use of dynamic threads enables resource allocation to be adjusted according to actual needs, thereby optimizing performance and efficiency.

[0072] The electronic voucher signing method provided by the present disclosure mainly includes: obtaining the first distribution information of each electronic voucher to be signed in the electronic voucher library at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed; judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold; in the case of determining that there is an electronic voucher to be signed that exceeds the preset waiting time, querying and reading the electronic voucher to be signed that exceeds the preset waiting time based on a dynamic thread. Compared with the related art, the embodiment of the present application obtains the waiting time of each electronic voucher to be signed in the electronic voucher library, monitors the waiting time of the electronic voucher to be signed in real time, and judges whether the electronic voucher to be signed is overtime according to the preset waiting time threshold. When it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, querying and reading these vouchers through a dynamic thread, speeds up the processing speed, improves the processing efficiency, and reduces the waste of bank system resources caused by low voucher processing efficiency and voucher congestion.

[0073] In some embodiments, the first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; judging whether each electronic voucher to be signed exceeds the preset waiting time according to each electronic voucher to be signed and the preset waiting time threshold further includes:

[0074] The target preset waiting time threshold is determined according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds.

[0075] When processing electronic vouchers to be signed, different regions and voucher types may have different business processing requirements and urgency. Therefore, different preset waiting time thresholds are set for different regions and different voucher types.

[0076] First, obtain all the zones and voucher types (payment, clearing, reconciliation, report, etc.) that the electronic voucher library receives electronic vouchers; configure a specific waiting time threshold for each zone and voucher type combination. After setting the preset waiting time threshold, establish a mapping relationship to map each zone and voucher type combination to its corresponding preset waiting time threshold.

[0077] Here is a simplified example flow:

[0078] Step 1: Obtain voucher information The business system obtains relevant information of the electronic voucher to be signed in the electronic voucher database, including the region to which it belongs and the voucher type.

[0079] Step 2: Query the mapping relationship. The business system queries the mapping relationship table based on the division and type of the electronic voucher to find the corresponding preset waiting time threshold.

[0080] Step 3: The business system applies the queried preset waiting time threshold to the monitoring process of the electronic voucher.

[0081] In some embodiments, a default preset waiting time threshold is configured in advance. When there is no direct mapping relationship in the configuration table, the business system can determine whether it has timed out based on the default preset waiting time threshold.

[0082] In this way, the system can flexibly respond to the needs of different business scenarios, ensuring that each electronic certificate can be processed within the appropriate time, while also providing customized services for different business processes.

[0083] The step of judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold also includes:

[0084] According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

[0085] According to the sending timestamp of the electronic voucher, calculate the waiting time from the sending time to the current time. According to the zone to which the electronic voucher belongs and the voucher type, find the corresponding target preset waiting time threshold from the preset threshold mapping table and compare the two. If the calculated waiting time exceeds the target preset waiting time threshold, the system will mark the electronic voucher as "congested" and add it to the congestion processing queue; if the waiting time does not exceed the threshold, the system will continue to monitor the electronic voucher until it is signed or the waiting time reaches the threshold. This process is continuous, and the system will repeat this series of operations regularly to ensure that the status of all electronic vouchers to be signed can be updated and processed in a timely manner.

[0086] The entire monitoring process does not need to be interrupted and can reflect the receipt status of each electronic certificate in real time. It can also respond to possible peaks or lows in receipt by dynamically adjusting resources, such as creating or destroying threads, thereby maintaining efficient system operation and a good user experience.

[0087] See also Figure 3 , Figure 3 A flowchart of a method for signing for an electronic certificate provided by an embodiment of the present disclosure, wherein querying and reading the electronic certificate to be signed that exceeds a preset waiting time based on a dynamic thread includes:

[0088] Step 201, determining the target area and target voucher type of the voucher to be signed for that exceeds the preset waiting time.

[0089] Step 202, based on the dynamic thread, query and read the electronic voucher to be signed in the target voucher type of the target zone; wherein the preset fixed thread and the dynamic thread read the electronic voucher to be signed in parallel.

[0090] After determining the timed receipt vouchers, the target voucher type of the target zone is marked as congested according to the target zone and the target voucher type. The creation of dynamic threads is real-time and runs independently of the static threads, which are responsible for routine voucher processing. The task of the dynamic thread is to query and read the congested electronic voucher types first to ensure that the congested voucher types can be processed faster. It should be noted that the static thread continues to poll and process other non-timed receipt vouchers in accordance with the established workflow to maintain the continuity and stability of the entire receipt process.

[0091] This parallel processing mechanism enables the system to quickly adjust resources when faced with a sudden large number of timed-out vouchers without affecting the execution of other normal processes. The addition of dynamic threads not only improves the processing speed of timed-out vouchers, but also optimizes the overall performance of the system because it can flexibly increase or decrease processing capacity according to actual needs. In this way, the system ensures that all electronic vouchers to be signed, whether they are timed out or not, can be processed promptly and effectively, thereby improving user experience and business efficiency.

[0092] Step 203: When it is determined that there is no receipt to be signed that exceeds the preset waiting time, close the dynamic thread.

[0093] In the judgment process, if it is determined that there is no receipt that exceeds the preset waiting time, that is, the waiting time of all receipts is within an acceptable range, the dynamic thread is closed to avoid unnecessary calculation and resource consumption.

[0094] Shutting down dynamic threads ensures that the system remains efficient and streamlined without the risk of timeouts, while also reserving resource space for possible future load peaks.

[0095] In this way, the system can not only effectively monitor and manage the signing process of the electronic vouchers to be signed, but also dynamically adjust resource usage according to actual conditions to optimize overall performance and response speed.

[0096] In some embodiments, after obtaining the first distribution information of each electronic certificate to be signed in the electronic certificate library, the method further includes:

[0097] The second distribution information of each of the electronic certificates to be signed is obtained in the electronic certificate library.

[0098] In the electronic voucher signing system, in order to monitor and optimize the processing flow of the electronic vouchers to be signed in real time, a data acquisition operation is automatically performed at a preset time interval. This process starts when the system clock reaches the set time point and starts a built-in task, which is responsible for extracting the latest data of the electronic vouchers to be signed from the electronic voucher library. The current status of the electronic vouchers to be signed is obtained regularly, including key information such as their quantity, type, source, waiting time, and priority, which together constitute the second distribution information. The preset time interval is an empirical value, which can be set according to actual needs, and the embodiments of the present application do not limit this.

[0099] The data acquisition process is not limited to a single point in time, but is repeated periodically according to preset time intervals, ensuring that the system can continuously track the latest developments of the electronic vouchers to be signed. In this way, the system can promptly identify bottlenecks in the processing flow, adjust resource allocation, and even trigger early warning mechanisms to deal with possible processing delays or overloads.

[0100] See also Figure 4 , Figure 4 A flowchart of a method for signing for an electronic certificate provided by an embodiment of the present disclosure includes:

[0101] Step 301, determining the maximum waiting time of each electronic voucher to be signed for each voucher type in each zone.

[0102] In some embodiments, a data structure is created to store the maximum waiting time for each credential type in each zone, such as a dictionary whose key is the combination of zone and credential type and whose value is the maximum waiting time under the combination.

[0103] For each voucher type in each zone in the electronic voucher library, when the business system traverses and queries all voucher types in all zones in the electronic voucher library, the time when the electronic voucher arrives at the voucher library can be obtained. By comparing it with the current time, the maximum waiting time for each voucher type in each zone can be obtained.

[0104] Step 302, determining the processing priority of each voucher type in each zone according to the maximum waiting time; wherein the maximum waiting time is proportional to the processing priority.

[0105] The business system calculates the maximum waiting time of each voucher type in each zone through step 301 and defines a rule to clarify the relationship between the maximum waiting time and the processing priority. This rule is linear, that is, the longer the maximum waiting time, the higher the processing priority.

[0106] Taking voucher matching as the unit, sort the voucher types in each area of ​​the electronic voucher library. The longer the maximum waiting time, the higher its priority. Since the business system can only sign for 20 vouchers at a time, this sorting method makes the voucher types with long waiting times have the highest processing priority. Ensure that those voucher types with the longest waiting time are processed first, thereby improving the efficiency of the overall business process and customer satisfaction.

[0107] In some embodiments, the average waiting time of each voucher type in each zone may also be calculated, and the processing priority of each voucher type may be determined based on the average waiting time.

[0108] In some embodiments, when calculating the maximum waiting time and processing priority ranking for each voucher type, the same voucher types in different zones are calculated and ranked separately.

[0109] Step 303: Process the to-be-signed vouchers of different voucher types in the different zones in round-robin fashion based on a preset fixed thread and in accordance with the processing priority.

[0110] Please continue reading Figure 2 ,like Figure 2 As shown, a multi-threaded approach is used to sign for the receipt voucher to be signed. When signing again, the receipt voucher to be signed is processed in turn according to the determined processing priority.

[0111] In a possible implementation, thread allocation may be static or dynamic, depending on the design and requirements of the system, and is not limited in this regard in the embodiments of the present application.

[0112] When signing for electronic vouchers to be signed according to static threads, different voucher types in different zones can be allocated to each static thread in advance, and priority sorting can be performed within a single thread, and processed in the order of priority. Alternatively, no separate allocation can be made for the static thread. When a static thread has signed for the previous voucher type, the next voucher type is automatically signed for according to the order of priority permission. Specifically, the signing method can be determined according to actual needs, and the embodiments of the present application do not limit this.

[0113] The following is a detailed description of this process:

[0114] The business system first initializes a fixed number of thread pools, and assigns the receipt vouchers to the corresponding priority queues according to the processing priority. Each thread will poll its assigned queue and always select the voucher with the highest priority for processing. For example, if thread A is responsible for processing the "East China Invoice" queue, it will first process the invoice with the longest waiting time. After processing a voucher, thread A will continue to process the next voucher with the highest priority, and so on, until there are no more vouchers to be processed. This process ensures that high-priority vouchers are processed in a timely manner, while also ensuring the effective use of system resources.

[0115] It should be noted that this description is only an exemplary description and is not a specific limitation on the specific signing method.

[0116] Corresponding to the above-mentioned electronic certificate signing method, the present invention also provides an electronic certificate signing device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.

[0117] Figure 5 A schematic diagram of a structure of an electronic certificate signing device provided by an embodiment of the present disclosure, such as Figure 5 As shown, including:

[0118] A first acquisition unit 41 is used to acquire first distribution information of each electronic voucher to be signed in the electronic voucher database at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed;

[0119] The judging unit 42 is used to judge whether each of the electronic vouchers to be signed exceeds the preset waiting time according to the waiting time of each of the electronic vouchers to be signed and the preset waiting time threshold;

[0120] The processing unit 43 is used to query and read the electronic voucher to be signed that exceeds the preset waiting time based on the dynamic thread when it is determined that there is the electronic voucher to be signed that exceeds the preset waiting time.

[0121] The electronic voucher signing device provided by the present disclosure obtains the first distribution information of each electronic voucher to be signed in the electronic voucher library at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed; according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold, it is judged whether each electronic voucher to be signed exceeds the preset waiting time; when it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, the electronic voucher to be signed that exceeds the preset waiting time is queried and read based on a dynamic thread. Compared with the related art, the embodiment of the present application obtains the waiting time of each electronic voucher to be signed in the electronic voucher library, monitors the waiting time of the electronic voucher to be signed in real time, and judges whether the electronic voucher to be signed is overdue according to the preset waiting time threshold. When it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, the vouchers are queried and read through a dynamic thread, thereby speeding up the processing speed, improving the processing efficiency, and reducing the waste of bank system resources caused by low voucher processing efficiency and voucher congestion.

[0122] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; the judgment unit 42 is also used for:

[0123] Determine the target preset waiting time threshold according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds;

[0124] The step of judging whether each electronic voucher to be signed exceeds the preset waiting time according to the waiting time of each electronic voucher to be signed and the preset waiting time threshold also includes:

[0125] According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

[0126] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first determining unit 43 is further used for:

[0127] Determine the target zone and target voucher type of the voucher to be signed for that exceeds the preset waiting time;

[0128] Based on the dynamic thread, query and read the electronic voucher to be signed in the target voucher type of the target zone; wherein the preset fixed thread and the dynamic thread read the electronic voucher to be signed in parallel;

[0129] When it is determined that there is no receipt to be signed that exceeds the preset waiting time, the dynamic thread is closed.

[0130] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:

[0131] The second acquisition unit 44 is used to obtain the second distribution information of each electronic certificate to be signed in the electronic certificate library after the first acquisition unit 41 obtains the first distribution information of each electronic certificate to be signed in the electronic certificate library; wherein the second distribution information includes the number of certificates to be signed and the waiting time of each certificate type in the business system polling area.

[0132] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:

[0133] A first determining unit 45 is used to determine the maximum waiting time of each electronic voucher to be signed in each voucher type in each zone after the second obtaining unit 44 obtains the second distribution information of each electronic voucher to be signed in the electronic voucher library;

[0134] A second determining unit 46 is used to determine the processing priority of each voucher type in each zone according to the maximum waiting time; wherein the maximum waiting time is proportional to the processing priority;

[0135] The processing unit 47 is used for polling and processing the to-be-signed vouchers of different voucher types in the different zones according to the processing priority based on a preset fixed thread.

[0136] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.

[0137] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0138] Figure 7A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0139] like Figure 7 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 502 or a computer program loaded from a storage unit 508 to a RAM (Random Access Memory) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O (Input / Output) interface 505 is also connected to the bus 504.

[0140] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0141] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the signing method of the electronic certificate. For example, in some embodiments, the signing method of the electronic certificate may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the aforementioned electronic certificate signing method in any other appropriate manner (for example, by means of firmware).

[0142] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a special purpose or general purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0143] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0144] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0147] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0148] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0149] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

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

Claims

1. A method for signing for an electronic voucher, characterized in that: include: Acquire first distribution information of each electronic voucher to be signed in the electronic voucher database at a preset time interval; wherein the first distribution information includes the waiting time of the voucher to be signed; According to the waiting time of each electronic voucher to be signed and the preset waiting time threshold, determining whether each electronic voucher to be signed exceeds the preset waiting time; In the case where it is determined that there is an electronic voucher to be signed that exceeds the preset waiting time, the electronic voucher to be signed that exceeds the preset waiting time is queried and read based on the dynamic thread.

2. The method according to claim 1, characterized in that: The first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; the determining whether each electronic voucher to be signed exceeds the preset waiting time according to each electronic voucher to be signed and the preset waiting time threshold also includes: Determine the target preset waiting time threshold according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds; The step of judging whether each of the electronic vouchers to be signed for exceeds the preset waiting time according to the waiting time of each of the electronic vouchers to be signed for and the preset waiting time threshold also includes: According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

3. The method according to claim 2, characterized in that The querying and reading of the electronic voucher to be signed for that exceeds the preset waiting time based on the dynamic thread includes: Determine the target zone and target voucher type of the voucher to be signed for that exceeds the preset waiting time; Based on the dynamic thread, query and read the electronic voucher to be signed in the target voucher type of the target zone; wherein the preset fixed thread and the dynamic thread read the electronic voucher to be signed in parallel; When it is determined that there is no receipt to be signed that exceeds the preset waiting time, the dynamic thread is closed.

4. The method according to claim 1, characterized in that: After obtaining the first distribution information of each electronic certificate to be signed in the electronic certificate library, the method further includes: The second distribution information of each electronic voucher to be signed is obtained in the electronic voucher library; wherein the second distribution information includes the number of vouchers to be signed and the waiting time of each voucher type in the business system polling area.

5. The method according to claim 4, characterized in that After obtaining the second distribution information of each of the to-be-signed electronic certificates in the electronic certificate library, the method further includes: Determine the maximum waiting time for each electronic voucher to be signed for each voucher type in each zone; Determine the processing priority of each voucher type in each zone according to the maximum waiting time; wherein the maximum waiting time is proportional to the processing priority; Based on a preset fixed thread, the waiting-for-signature vouchers of different voucher types in the different zones are polled and processed according to the processing priority.

6. A device for signing and receiving an electronic voucher, characterized in that: include: A first acquisition unit is used to acquire first distribution information of each electronic voucher to be signed in the electronic voucher library; wherein the first distribution information includes a waiting time; A judging unit, configured to judge whether each of the electronic vouchers to be signed exceeds a preset waiting time according to the waiting time of each of the electronic vouchers to be signed and a preset waiting time threshold; The processing unit is used to query and read the electronic voucher to be signed that exceeds the preset waiting time based on the dynamic thread when it is determined that there is the electronic voucher to be signed that exceeds the preset waiting time.

7. The device according to claim 6, characterized in that The first distribution information includes the region to which the electronic voucher to be signed belongs and the voucher type; the judgment unit is also used for: Determine the target preset waiting time threshold according to the zone to which the electronic voucher to be signed belongs and the voucher type; wherein different voucher types in different zones correspond to different preset waiting time thresholds; The step of judging whether each of the electronic vouchers to be signed for exceeds the preset waiting time according to the waiting time of each of the electronic vouchers to be signed for and the preset waiting time threshold also includes: According to the waiting time of each electronic voucher to be signed and the target preset waiting time threshold corresponding to each electronic voucher to be signed, it is determined whether each electronic voucher to be signed exceeds the preset waiting time.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.