Certificate data acquisition method, computer equipment and computer storage medium

By receiving the number retrieval task and comparing the voucher data, if there is no difference, the local data is returned, and if there is a difference, the incremental data is downloaded, which solves the problem of duplicate data in voucher download, and achieves resource saving and efficiency improvement.

CN118694823APending Publication Date: 2024-09-24SHENZHEN KINGDEE ACCOUNT WORRY-FREE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703820.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, when users download credentials from the official system, a large amount of duplicate data will be downloaded, which wastes resources, affects efficiency, and increases storage pressure.

Method used

By receiving the fetching task, the voucher data obtained before and after are compared. If there is no difference, the locally saved data is returned. If there is a difference, the incremental data is downloaded, reducing the download of the full amount of data.

Benefits of technology

Save download resources, improve download efficiency, reduce data storage pressure, and improve response efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694823A
    Figure CN118694823A
Patent Text Reader

Abstract

The embodiment of the invention discloses a voucher data acquisition method, computer equipment and a computer storage medium. If it is determined that the access range is not initiated for the first time according to the task demand identifier, comparing the previous voucher data obtained based on the access range with the to-be-obtained voucher data based on the access range, and if the previous voucher data and the next voucher data are consistent, returning the locally stored voucher data obtained in the previous time to the client, and if the previous voucher data and the next voucher data are consistent, returning the to-be-obtained voucher data to the client. And the voucher data does not need to be downloaded, so that downloading resources can be saved, and the response efficiency to the client request can also be improved. If the voucher data acquired in two times are inconsistent, the incremental voucher data of the voucher data to be acquired at this time relative to the voucher data acquired in the previous time is downloaded and returned to the client, and compared with full-quantity voucher data downloading, the data downloading quantity can be reduced, the consumption of downloading resources can be saved, so that the downloading efficiency is improved, and the user experience is improved. And the data storage pressure of the data storage party can be relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and specifically to a credential data acquisition method, a computer device, and a computer storage medium. Background Art

[0002] In business activities, asset delivery between various business entities usually uses vouchers to record and prove the specific matters of asset delivery, such as using invoices, documents and other transaction vouchers to record and prove the transaction of goods or services. These vouchers are usually archived in official systems, such as invoices are archived in the tax bureau, and users can connect to the tax bureau system to obtain the invoices they need.

[0003] However, when users obtain credentials from the official system, they download the full amount of credentials each time they download credentials from the official system. This will result in a large number of duplicate credentials being downloaded between multiple downloads, wasting download resources and affecting download efficiency. At the same time, the downloading party stores a large number of duplicate credentials, which also brings greater data storage pressure to the downloading party. Summary of the invention

[0004] The embodiments of the present application provide a credential data acquisition method, a computer device, and a computer storage medium, which are used to reduce the amount of credential data downloaded, save the consumption of download resources, and thus improve download efficiency.

[0005] A first aspect of an embodiment of the present application provides a method for obtaining credential data, the method comprising:

[0006] Receive a data acquisition task, which carries the data acquisition range of the voucher and a task requirement identifier;

[0007] If it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time, comparing the voucher data acquired based on the data acquisition range last time with the voucher data to be acquired based on the data acquisition range this time;

[0008] If the credential data obtained last time is consistent with the credential data to be obtained this time, the credential data previously obtained based on the data acquisition range and stored locally is returned to the client;

[0009] If the credential data acquired last time is inconsistent with the credential data to be acquired this time, incremental credential data of the credential data to be acquired this time relative to the credential data acquired last time is downloaded, and the incremental credential data is returned to the client.

[0010] A second aspect of an embodiment of the present application provides a computer device, the computer device comprising:

[0011] A receiving unit, used for receiving a data acquisition task, wherein the data acquisition task carries a data acquisition range of a voucher and a task requirement identifier;

[0012] A comparing unit, configured to compare the voucher data previously obtained based on the data acquisition range with the voucher data to be obtained based on the data acquisition range this time, if it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time;

[0013] A first response unit, configured to return the credential data previously acquired based on the data acquisition range and stored locally to the client if the credential data previously acquired is consistent with the credential data to be acquired this time;

[0014] The second response unit is used to download incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time if the credential data obtained last time is inconsistent with the credential data to be obtained this time, and return the incremental credential data to the client.

[0015] A third aspect of an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.

[0016] A fourth aspect of an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method of the first aspect.

[0017] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the method of the first aspect.

[0018] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0019] If it is determined according to the task requirement that the data acquisition range is not initiated for the first time, the credential data acquired based on the data acquisition range last time is compared with the credential data to be acquired based on the data acquisition range this time. If the credential data acquired twice are consistent, the credential data acquired last time locally is returned to the client, and there is no need to download the credential data again, which can save download resources and improve the efficiency of responding to client requests. If the credential data acquired twice are inconsistent, the incremental credential data of the credential data to be acquired this time relative to the credential data acquired last time is downloaded and returned to the client. Compared with the download of the full credential data, it can also reduce the amount of data downloaded, save the consumption of download resources, thereby improving download efficiency, and reducing the data storage pressure of the data storage party. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a schematic diagram of the network framework in the embodiment of the present application;

[0021] Figure 2 A flowchart of a method for obtaining credential data in an embodiment of the present application;

[0022] Figure 3 This is another flowchart of the method for obtaining credential data in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the service relationship between various functional devices in the embodiment of the present application;

[0024] Figure 5 This is a schematic diagram of the structure of a computer device in an embodiment of the present application;

[0025] Figure 6 This is another structural diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application provide a credential data acquisition method, a computer device, and a computer storage medium, which are used to reduce the amount of credential data downloaded, save the consumption of download resources, and thus improve download efficiency.

[0027] See also Figure 1 In the embodiment of the present application, the network framework includes:

[0028] The service server 100 and the terminal cluster; the terminal cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n and other terminal devices.

[0029] The business server 100 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. The terminal device (including terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n) may be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (MID), wearable device (such as smart watch, smart bracelet, etc.), smart computer, smart car and other smart terminals.

[0030] Among them, the business server 100 can establish a communication connection with each terminal device in the terminal cluster, and a communication connection can also be established between each terminal device in the terminal cluster. In other words, the business server 100 can establish a communication connection with each terminal device in the terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n. For example, a communication connection can be established between the terminal device 200a and the business server 100. A communication connection can be established between the terminal device 200a and the terminal device 200b, and a communication connection can also be established between the terminal device 200a and the terminal device 200c. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, etc., which can be determined according to the actual application scenario, and this application is not limited here.

[0031] It should be understood that Figure 1 Each terminal device in the terminal cluster shown can be installed with an application client. When the application client runs in each terminal device, it can interact with the business server 100 respectively, so that the business server 100 can receive business data from each terminal device (such as financial management data uploaded by the user through the terminal device). Among them, the application client can be an application client with the function of displaying text, images, audio and video, such as a financial management application, an enterprise affairs management application, a browser application, a social application, an instant messaging application, a live broadcast application, a game application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, etc., which can be determined according to the actual application scenario requirements and is not limited here. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as a financial management client, an enterprise affairs management client, etc.), which can be determined according to the actual application scenario and is not limited here.

[0032] The following will be combined Figure 1 The network framework of the present application describes the method for obtaining credential data in the embodiment of the present application:

[0033] See also Figure 2 In the embodiment of the present application, one embodiment of the method for obtaining credential data includes:

[0034] 201. Receive a data acquisition task, wherein the data acquisition task carries a data acquisition range of a voucher and a task requirement identifier;

[0035] The method of this embodiment can be applied to a computer device, which can be Figure 1The business server 100 or each terminal device in the network framework shown. The computer device can receive the data acquisition task sent by the client, and the data acquisition task carries the data acquisition range of the voucher and the task requirement identifier. The task requirement identifier is used to identify each data acquisition task. The content of the identifier can be randomly generated, or generated according to a preset algorithm, or can be directly represented by the identifier of an object related to the data acquisition task, such as the identifier of the task initiator who initiates the data acquisition task, or the identifier of the credential demander corresponding to the data acquisition task, and so on.

[0036] Among them, the task initiator or the credential demander can be an organization or an individual, such as an enterprise, institution, government agency or other social organization entity. The identifier of the credential demander can be a unique identifier of the organization or individual, such as the enterprise's unified social credit code, taxpayer identification number and other fields that can uniquely identify the enterprise, or an individual's ID number and other fields that can uniquely identify the individual's identity.

[0037] The data acquisition range indicates the scope of the voucher acquisition, for example, the data acquisition range can indicate the acquisition of vouchers in a certain month or year, or multiple vouchers between a certain serial number and another serial number, or the acquisition of vouchers of a certain organization or individual, etc. The voucher can be an invoice or document, or other evidence used to record business matters, such as evidence of specific matters of asset delivery.

[0038] 202. If it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time, comparing the voucher data acquired based on the data acquisition range last time with the voucher data to be acquired based on the data acquisition range this time;

[0039] Determine whether the data acquisition task is initiated for the first time based on the task requirement identifier. For example, it can be determined based on the identifier of the credential requester of the data acquisition task. For example, a computer device can determine whether the credential requester is obtaining credentials based on the data acquisition range for the first time based on the identifier of the credential requester. If it is not the first time to obtain credentials based on the data acquisition range, it is determined that the data acquisition task is not initiated for the first time. Then, the credential data obtained by the credential requester based on the data acquisition range last time and the credential data to be obtained based on the data acquisition range this time can be compared to determine whether there is a difference between the credential data obtained twice.

[0040] 203. If the credential data obtained last time is consistent with the credential data to be obtained this time, the credential data obtained last time based on the data acquisition range and stored locally is returned to the client;

[0041] 204. If the credential data obtained last time is inconsistent with the credential data to be obtained this time, downloading incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time, and returning the incremental credential data to the client;

[0042] If the credential data previously obtained by the credential requester is consistent with the credential data to be obtained this time, the computer device will return the locally stored credential data previously obtained by the credential requester based on the data acquisition range to the client. There is no need to download the credential data again, which can save download resources and improve the response efficiency to client requests.

[0043] If the voucher data previously obtained by the voucher demander is consistent with the voucher data to be obtained this time, the computer device downloads the incremental voucher data of the voucher data to be obtained this time relative to the voucher data obtained last time, and returns the incremental voucher data to the client. For example, if the voucher data to be obtained by a certain enterprise this time includes 2,000 special VAT invoices, and the voucher data obtained last time included 1,000 special VAT invoices, it can be determined that the incremental voucher data is the additional 1,000 special VAT invoices, and the 1,000 special VAT invoices can be downloaded and returned to the client.

[0044] Among them, the credential data may include the credential entity, and may also include summary data obtained by summarizing multiple credential entities, such as summarizing the credential information of multiple credential entities, or include both the credential entity and its corresponding summary data, which is not limited here.

[0045] In this embodiment, if it is determined according to the task requirement identifier that the data acquisition range is not initiated for the first time, the credential data acquired based on the data acquisition range last time is compared with the credential data to be acquired based on the data acquisition range this time. If the credential data acquired twice are consistent, the credential data acquired last time locally is returned to the client, and there is no need to download the credential data again, which can save download resources and improve the efficiency of responding to client requests. If the credential data acquired twice are inconsistent, the incremental credential data of the credential data to be acquired this time relative to the credential data acquired last time is downloaded and returned to the client. Compared with the download of the full credential data, it can also reduce the amount of data downloaded, save the consumption of download resources, thereby improving download efficiency, and reducing the data storage pressure of the data storage party.

[0046] The following will be Figure 2 Based on the embodiment shown, the embodiment of the present application is further described in detail. Figure 3 Another embodiment of the method for obtaining credential data in the embodiment of the present application includes:

[0047] 301. Receive a data acquisition task, wherein the data acquisition task carries a data acquisition range of a voucher and a task requirement identifier;

[0048] In this embodiment, in an optional implementation, since the platforms on which various voucher data may be archived are different, for example, for invoices, there are multiple data acquisition platforms, including the electronic tax bureau platform, the tax digital platform and other platforms, while blockchain invoices may only be archived on the electronic tax bureau platform, and electronic invoices may only be archived on the tax digital platform. At this time, it is necessary to distinguish the data acquisition platform of the invoice to be acquired by the data acquisition task, such as distinguishing whether it is archived on the electronic tax bureau platform or the tax digital platform. Therefore, the data acquisition task can be set to have a corresponding task type, and the computer device can determine the task type of the data acquisition task, and determine the data acquisition platform according to the task type. For example, if the task type indicates the voucher type of the electronic tax bureau platform, it can be determined that the voucher data needs to be acquired from the electronic tax bureau platform.

[0049] Therefore, by determining the task type and then determining the data acquisition platform corresponding to the task type, it can be ensured that the credential data is accurately acquired from the corresponding data acquisition platform, thereby improving the success rate of credential data acquisition and the efficiency of credential acquisition.

[0050] 302. If it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time, comparing the voucher data acquired based on the data acquisition range last time with the voucher data to be acquired based on the data acquisition range this time;

[0051] One way to determine whether the data acquisition task is initiated for the first time based on the task requirement identifier may be to determine it based on the identifier of the credential demander of the data acquisition task. For example, if it is determined based on the identifier of the credential demander that this is not the first time that the credential demander has acquired credentials based on the data acquisition range, indicating that the credential demander has previously acquired credentials based on the data acquisition range, then when the credential demander last acquired credentials based on the data acquisition range, the historical data acquisition parameters may be recorded based on the credential data indicated by the data acquisition range. The historical data acquisition parameters are used to indicate the details of the credential data that the credential demander last acquired based on the data acquisition range. The details may be any information of the credential data, such as the credential identifier, the credential type, etc.

[0052] This historical data acquisition parameter can be used as a basis for judging whether the credential data to be acquired subsequently has changed compared to the credential data acquired last time. Therefore, when comparing whether there is a difference between the credential data acquired by the credential demander last time based on the data acquisition range and the credential data to be acquired this time based on the data acquisition range, the historical data acquisition parameter can be compared with the details of the credential data to be acquired this time based on the data acquisition range. If there is no difference, it is determined that the credential data acquired last time is consistent with the credential data to be acquired this time; if there is a difference, it is determined that the credential data acquired last time is inconsistent with the credential data to be acquired this time.

[0053] Therefore, by comparing the details of the credential data obtained twice, since the amount of data in the details of the credential data is small and it can clearly represent the overview information of the credential data, compared with comparing multiple credential entities one by one, the efficiency of comparing the credential data obtained twice can be greatly improved, thereby improving the processing efficiency of client requests.

[0054] Among them, the historical data acquisition parameters can record the details of the voucher data in a variety of forms, such as in the form of a list, or in a structured data format. In an optional manner, the historical data acquisition parameters record the details of the voucher data in the form of a key-value pair, in which the key-value pair data formed is the identifier of the previous data acquisition task based on the data acquisition range as the key, and the various voucher types and their quantities obtained based on the data acquisition range in the previous time as the value. When comparing the difference between the voucher data obtained twice before and after, the various voucher types and their quantities in the details of the voucher data can be compared. Therefore, the identifier of the previous data acquisition task based on the data acquisition range can be determined, and the various voucher types and their quantities obtained based on the data acquisition range in the previous time can be determined according to the identifier of the previous data acquisition task based on the data acquisition range. After that, the number of each voucher type of the voucher data to be obtained based on the data acquisition range this time can be compared with the various voucher types and their quantities obtained based on the data acquisition range in the previous time, so as to determine whether there is a difference in the number of each voucher type between the two voucher acquisitions.

[0055] For example, the task requirement identifier of the previous data acquisition task can be associated with the identifier of the credential demander. When comparing the differences between the credential data acquired twice, the comparison can be made based on the various credential types and their quantities in the details of the credential data. Therefore, the identifier of the credential demander's previous data acquisition task is determined based on the identifier of the credential demander, and the various credential types and their quantities acquired by the credential demander based on the data acquisition range the last time are determined based on the identifier of the credential demander's previous data acquisition task. Afterwards, the quantity of each credential type of the credential data to be acquired based on the data acquisition range this time can be compared with the various credential types and their quantities acquired based on the data acquisition range the last time, so as to determine whether there is a difference in the quantity of each credential type between the two credential acquisitions.

[0056] For example, on March 10, Company A obtained various types of invoices from its three subsidiaries (i.e., the data acquisition scope), including 100 special value-added tax invoices, 100 ordinary invoices, 80 special motor vehicle invoices, 80 machine-printed invoices, 50 fixed-amount invoices, etc. The ID of this data acquisition task is 1001. At this time, the obtained invoices can be recorded in the form of key-value pairs to form historical data acquisition parameters, with the data acquisition task ID as the key and each invoice type and its corresponding quantity as the value. Afterwards, assuming that on March 12, an invoice collection task for the above three subsidiaries was received from Company A, the ID of the previous invoice collection task can be determined according to the identification of Company A, and the invoice types and quantities corresponding to the ID of the collection task can be determined. In addition, assuming that the types and quantities of invoices to be collected this time are 120 special value-added tax invoices, 120 ordinary invoices, 90 special motor vehicle invoices, 90 machine-printed invoices, 70 fixed-amount invoices, etc., the types and quantities of invoices to be collected this time can be compared with the types and quantities of invoices collected last time, and it can be determined that the newly added invoices include 20 special value-added tax invoices, 20 ordinary invoices, 10 special motor vehicle invoices, 10 machine-printed invoices, 20 fixed-amount invoices, etc.

[0057] Therefore, by setting the historical data acquisition parameters to record the number of each type of credentials obtained historically in the form of key-value pairs, it is convenient to quickly determine the number of new credentials of each type during subsequent credential acquisition, and then quickly obtain the newly added credentials of each credential type, thereby improving the efficiency of credential acquisition and the efficiency of responding to client requests.

[0058] 303. If the credential data obtained last time is consistent with the credential data to be obtained this time, the credential data obtained last time based on the data acquisition range and stored locally is returned to the client;

[0059] 304. If the credential data obtained last time is inconsistent with the credential data to be obtained this time, downloading incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time, and returning the incremental credential data to the client;

[0060] If the credential data obtained last time is consistent with the credential data to be obtained this time, for example, the credential types and quantities obtained last time are consistent with the credential types and quantities to be obtained this time, then it is determined that there are no new credentials, and there is no need to download credentials from the data acquisition platform. The credential data obtained by the credential demander last time based on the data acquisition range can be directly obtained from the local database and returned to the client. Compared with downloading credentials from the data acquisition platform, obtaining them directly from the local database is obviously more convenient and faster, with higher data acquisition efficiency, and can respond to client requests faster.

[0061] If the voucher data obtained last time is inconsistent with the voucher data to be obtained this time, for example, in the above example, a certain number of invoices of each type have been added, for the incremental invoices of each invoice type, the data acquisition platform determined based on the task type of the data acquisition task in the above steps can be used to download the incremental invoices of each invoice type to be obtained this time from the data acquisition platform, and return the incremental invoices to the client. For example, if the data acquisition platform for invoices is determined to be the electronic tax bureau platform based on the task type of the data acquisition task, the incremental invoices of each invoice type to be obtained this time can be downloaded from the electronic tax bureau platform, and the incremental invoices can be returned to the client. In this way, it can be ensured that the invoices to be obtained can be downloaded from the correct data acquisition platform, avoiding the situation where the invoices cannot be obtained, thereby improving the success rate of invoice data acquisition.

[0062] Of course, you can also download the full amount of credential data and filter out the incremental credential data from it. When the credential was obtained based on the data acquisition range last time, the computer device can obtain the data format content of the credential obtained based on the data acquisition range last time, and parse the data format content to obtain the credential identifier of each credential obtained based on the data acquisition range last time. When obtaining the credential this time, you can download the full amount of credential data based on the data acquisition range this time, and determine the incremental credential data based on the credential identifier of each credential in the full amount of credential data and the credential identifier of each credential obtained based on the data acquisition range last time.

[0063] For example, invoice data can be downloaded from the tax bureau system. The invoice data contains multiple invoice entities and the data format content corresponding to these multiple invoice entities. The data format can record various information of the invoice downloaded last time in the form of an Excel list, such as invoice code, invoice number, invoice date, bill type, invoice amount, invoice tax rate, invoice price and tax total and other invoice core data, among which the invoice code, invoice number and other information can be used as the invoice identifier of each invoice. When the invoice is obtained based on the same data range for the second time, the full amount of invoice data determined based on the data range can be downloaded, that is, all invoice data, and the incremental invoice data can be determined based on the invoice identifier of each invoice in the full amount of invoice data and the invoice identifier of each invoice obtained based on the same data range last time. For example, if some invoice codes of the invoice to be obtained this time do not exist in all invoice codes of the invoice obtained last time, it can be determined that the invoices with these invoice codes are incremental invoices, and then these incremental invoices can be filtered out and sent to the client separately.

[0064] Therefore, by downloading the full credential data and then filtering out the incremental credential data from the full credential data, and only sending the incremental credential data to the client separately, compared to sending the full credential data directly to the client, the amount of transmitted data can be reduced and the data transmission efficiency can be improved. At the same time, the client no longer needs to filter the received credential data, which makes it easier for the client to obtain incremental credential data.

[0065] 305. If it is determined according to the task requirement identifier that the data acquisition task is initiated for the first time, downloading the credential data indicated by the data acquisition range, and returning the credential data to the client;

[0066] In this embodiment, if it is determined that the data acquisition task is initiated for the first time according to the task requirement identifier, the voucher data indicated by the data acquisition range is downloaded and the voucher data is returned to the client. Optionally, similar to the above, the historical data acquisition parameters can be further recorded according to the downloaded voucher data, or the data format content used to record the voucher information of multiple voucher entities in the downloaded voucher data can be further parsed to obtain information such as the voucher identifier. For example, for invoices, the data format content can be parsed to obtain information about the invoice, such as the invoice code, invoice number, etc.

[0067] Therefore, by determining whether it is the first data acquisition task, directly downloading the credential data when the first data acquisition task is determined, the efficiency of obtaining the credential data can be improved, thereby improving the efficiency of responding to the client's credential acquisition request.

[0068] In this embodiment, the computer device may integrate multiple functions such as docking with the client, processing client requests, docking with the data acquisition platform, and downloading the credential data requested by the client from the data acquisition platform; of course, the above multiple functions may also be deployed on different processing devices. Figure 4 As shown, the computer device acts as a task processing center, which is connected to a client, receives a data acquisition task from the client for a certain data acquisition range, and determines whether the data acquisition task is the first data acquisition task for the data acquisition range. If it is the first data acquisition task, or it is not the first data acquisition task but this data acquisition task has incremental voucher data compared with the previous data acquisition task, the data acquisition task will be sent to the task scheduling center, and the task scheduling center will schedule the data acquisition tasks, for example, according to the processing priority of the data acquisition tasks, the data acquisition tasks with higher processing priority will be processed first, or the data acquisition tasks will be scheduled according to the first-in-first-out principle, the data acquisition tasks sent first will be processed first, and the data acquisition tasks sent later will be processed later, or the data acquisition tasks will be scheduled and processed according to other scheduling rules.

[0069] After determining the current data acquisition task to be processed, the task scheduling center sends the data acquisition task to the downloading service device. If it is not the first data acquisition task but this data acquisition task has incremental voucher data compared to the previous data acquisition task, the downloading service device downloads the incremental voucher data from the data acquisition platform and returns it to the task scheduling center. For the first data acquisition task, the downloading service device downloads the voucher data indicated by the data acquisition range from the data acquisition platform and returns it to the task scheduling center. The task scheduling center then forwards the voucher data downloaded by the downloading service device to the task processing center, and the task processing center can receive the voucher data forwarded by the task scheduling center.

[0070] Among them, the download business equipment can be an RPA robot (robotic process automation). Using the RPA robot to connect to the data acquisition platform to download credential data can achieve higher processing efficiency and save data download time. At the same time, it is convenient to monitor, track and control the execution of the download business process, and improve the accuracy and reliability of the download business.

[0071] Therefore, by deploying different functions on multiple different processing devices, when a certain function fails or crashes, it will not affect the normal execution of other functions, ensuring the reliability and stability of the system operation, and maintaining and managing a single function, which greatly facilitates the maintenance and management of the system and improves the practicality of the system.

[0072] The above describes the method for obtaining credential data in the embodiment of the present application. The following describes the computer device in the embodiment of the present application. Figure 5 In the embodiment of the present application, one embodiment of the computer device includes:

[0073] A receiving unit, used for receiving a data acquisition task, wherein the data acquisition task carries a data acquisition range of a voucher and a task requirement identifier;

[0074] A comparing unit, configured to compare the voucher data previously obtained based on the data acquisition range with the voucher data to be obtained based on the data acquisition range this time, if it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time;

[0075] A first response unit, configured to return the credential data previously acquired based on the data acquisition range and stored locally to the client if the credential data previously acquired is consistent with the credential data to be acquired this time;

[0076] The second response unit is used to download incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time if the credential data obtained last time is inconsistent with the credential data to be obtained this time, and return the incremental credential data to the client.

[0077] In a preferred implementation of this embodiment, the computer device further includes:

[0078] a recording unit, used to record historical data acquisition parameters according to the voucher data indicated by the data acquisition range when the voucher was acquired based on the data acquisition range last time, wherein the historical data acquisition parameters are used to indicate the details of the voucher data acquired based on the data acquisition range last time;

[0079] The comparison unit is specifically used for:

[0080] Compare whether there are any differences between the historical data acquisition parameters and the details of the voucher data to be acquired based on the data acquisition range this time;

[0081] If there is no difference, it is determined that the voucher data obtained last time is consistent with the voucher data to be obtained this time;

[0082] If there is a difference, it is determined that the credential data obtained last time is inconsistent with the credential data to be obtained this time.

[0083] In a preferred implementation of this embodiment, the historical data acquisition parameters include key-value pair data, wherein the key-value pair data uses the identifier of the previous data acquisition task based on the data acquisition range as the key, and uses the types and quantities of each voucher acquired based on the data acquisition range in the previous time as the value;

[0084] The comparison unit is specifically used for:

[0085] Determine an identifier of a previous data acquisition task based on the data acquisition range;

[0086] According to the identifier of the previous data acquisition task based on the data acquisition range, determine the types and quantities of each voucher acquired based on the data acquisition range in the previous time;

[0087] The quantity of each voucher type of the voucher data to be obtained based on the data acquisition range this time is compared with the various voucher types and their quantities obtained based on the data acquisition range last time to determine whether there is a difference in the quantity of each voucher type between the two voucher acquisitions.

[0088] In a preferred implementation of this embodiment, the computer device further includes:

[0089] A parsing unit, used for obtaining the data format content of the voucher obtained based on the data acquisition range last time, and parsing the data format content to obtain the voucher identifier of each voucher obtained based on the data acquisition range last time;

[0090] The second response unit is specifically used for:

[0091] The full amount of voucher data based on the data acquisition range is downloaded this time, and the incremental voucher data is determined according to the voucher identifier of each voucher in the full amount of voucher data and the voucher identifier of each voucher obtained based on the data acquisition range last time.

[0092] In a preferred implementation of this embodiment, the computer device further includes:

[0093] A determination unit, used to determine the task type of the data acquisition task, and determine the data acquisition platform according to the task type;

[0094] The second response unit is specifically used for:

[0095] The incremental voucher data of the voucher data to be obtained this time relative to the voucher data obtained last time is downloaded from the data acquisition platform.

[0096] In a preferred implementation of this embodiment, the computer device further includes:

[0097] The third response unit is used to download the credential data indicated by the data acquisition range and return the credential data to the client if it is determined according to the task requirement identifier that the data acquisition task is initiated for the first time.

[0098] In a preferred implementation manner of this embodiment, the second response unit is specifically used for:

[0099] Send the data acquisition task to the task scheduling center so that the task scheduling center schedules the data acquisition task and sends the data acquisition task to the downloading service device, and the downloading service device downloads the incremental voucher data from the data acquisition platform and returns it to the task scheduling center;

[0100] Receive the incremental credential data forwarded by the task scheduling center.

[0101] In this embodiment, the operations performed by each unit in the computer device are the same as those described above. Figures 2 to 3 The description in the illustrated embodiment is similar and will not be repeated here.

[0102] In this embodiment, if it is determined according to the task requirement identifier that the data acquisition range is not initiated for the first time, the credential data acquired based on the data acquisition range last time is compared with the credential data to be acquired based on the data acquisition range this time. If the credential data acquired twice are consistent, the credential data acquired last time locally is returned to the client, and there is no need to download the credential data again, which can save download resources and improve the efficiency of responding to client requests. If the credential data acquired twice are inconsistent, the incremental credential data of the credential data to be acquired this time relative to the credential data acquired last time is downloaded and returned to the client. Compared with the download of the full credential data, it can also reduce the amount of data downloaded, save the consumption of download resources, thereby improving download efficiency, and reducing the data storage pressure of the data storage party.

[0103] The computer device in the embodiment of the present application is described below. Figure 6 In the embodiment of the present application, one embodiment of the computer device includes:

[0104] The computer device 600 may include one or more central processing units (CPU) 601 and a memory 605 , wherein the memory 605 stores one or more application programs or data.

[0105] The memory 605 may be a volatile storage or a persistent storage. The program stored in the memory 605 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 601 may be configured to communicate with the memory 605 and execute a series of instruction operations in the memory 605 on the computer device 600.

[0106] The computer device 600 may also include one or more power supplies 602, one or more wired or wireless network interfaces 603, one or more input and output interfaces 604, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0107] The CPU 601 can execute the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment will not be described in detail here.

[0108] The present application also provides a computer storage medium, wherein one embodiment includes: the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.

[0109] The present application also provides a computer program product, wherein one embodiment includes: when the computer program product is run on a computer device, the computer device executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.

[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0111] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for obtaining voucher data, characterized in that: The method comprises: Receive a data acquisition task, which carries the data acquisition range of the voucher and a task requirement identifier; If it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time, comparing the voucher data acquired based on the data acquisition range last time with the voucher data to be acquired based on the data acquisition range this time; If the credential data obtained last time is consistent with the credential data to be obtained this time, the credential data previously obtained based on the data acquisition range and stored locally is returned to the client; If the credential data acquired last time is inconsistent with the credential data to be acquired this time, incremental credential data of the credential data to be acquired this time relative to the credential data acquired last time is downloaded, and the incremental credential data is returned to the client.

2. The method according to claim 1, characterized in that When the voucher is obtained based on the data acquisition range last time, the method further includes: Recording historical data acquisition parameters according to the voucher data indicated by the data acquisition range, wherein the historical data acquisition parameters are used to indicate the details of the voucher data previously acquired based on the data acquisition range; The comparing the voucher data previously acquired based on the data acquisition range with the voucher data to be acquired based on the data acquisition range this time includes: Compare whether there are any differences between the historical data acquisition parameters and the details of the voucher data to be acquired based on the data acquisition range this time; If there is no difference, it is determined that the voucher data obtained last time is consistent with the voucher data to be obtained this time; If there is a difference, it is determined that the credential data obtained last time is inconsistent with the credential data to be obtained this time.

3. The method according to claim 2, characterized in that The historical data acquisition parameters include key-value pair data, wherein the key-value pair data uses the identifier of the previous data acquisition task based on the data acquisition range as a key, and uses the types and quantities of each voucher acquired based on the data acquisition range in the previous time as a value; The comparing whether there are differences between the historical data acquisition parameters and the details of the voucher data to be acquired based on the data acquisition range this time includes: Determine an identifier of a previous data acquisition task based on the data acquisition range; According to the identifier of the previous data acquisition task based on the data acquisition range, determine the types and quantities of each voucher acquired based on the data acquisition range in the previous time; The quantity of each voucher type of the voucher data to be obtained based on the data acquisition range this time is compared with the various voucher types and their quantities obtained based on the data acquisition range last time to determine whether there is a difference in the quantity of each voucher type between the two voucher acquisitions.

4. The method according to claim 1, characterized in that When the voucher is obtained based on the data acquisition range last time, the method further includes: Acquire the data format content of the voucher acquired last time based on the data acquisition range, and parse the data format content to obtain the voucher identifier of each voucher acquired last time based on the data acquisition range; The downloading of the incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time includes: The full amount of voucher data based on the data acquisition range is downloaded this time, and the incremental voucher data is determined according to the voucher identifier of each voucher in the full amount of voucher data and the voucher identifier of each voucher obtained based on the data acquisition range last time.

5. The method according to claim 1, characterized in that: After receiving the data acquisition task sent by the client, the method further includes: Determine the task type of the data acquisition task, and determine the data acquisition platform according to the task type; The downloading of the incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time includes: The incremental voucher data of the voucher data to be obtained this time relative to the voucher data obtained last time is downloaded from the data acquisition platform.

6. The method according to claim 1, characterized in that The method further comprises: If it is determined according to the task requirement identifier that the data acquisition task is initiated for the first time, the credential data indicated by the data acquisition range is downloaded and the credential data is returned to the client.

7. The method according to any one of claims 1 to 6, characterized in that: The downloading of the incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time includes: Send the data acquisition task to the task scheduling center so that the task scheduling center schedules the data acquisition task and sends the data acquisition task to the downloading service device, and the downloading service device downloads the incremental voucher data from the data acquisition platform and returns it to the task scheduling center; Receive the incremental credential data forwarded by the task scheduling center.

8. A computer device, characterized in that: The computer device comprises: A receiving unit, used for receiving a data acquisition task, wherein the data acquisition task carries a data acquisition range of a voucher and a task requirement identifier; A comparing unit, configured to compare the voucher data previously obtained based on the data acquisition range with the voucher data to be obtained based on the data acquisition range this time, if it is determined according to the task requirement identifier that the data acquisition task is not initiated for the first time; A first response unit, configured to return the credential data previously acquired based on the data acquisition range and stored locally to the client if the credential data previously acquired is consistent with the credential data to be acquired this time; The second response unit is used to download incremental credential data of the credential data to be obtained this time relative to the credential data obtained last time if the credential data obtained last time is inconsistent with the credential data to be obtained this time, and return the incremental credential data to the client.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that When the computer program product is executed on a computer device, the computer device is caused to perform the method according to any one of claims 1 to 7.