WO2021017310A1 - 电子化凭证生成方法、装置、计算机设备及存储介质 - Google Patents

电子化凭证生成方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2021017310A1
WO2021017310A1 PCT/CN2019/118228 CN2019118228W WO2021017310A1 WO 2021017310 A1 WO2021017310 A1 WO 2021017310A1 CN 2019118228 W CN2019118228 W CN 2019118228W WO 2021017310 A1 WO2021017310 A1 WO 2021017310A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
usage
resource pool
entry
pool
Prior art date
Application number
PCT/CN2019/118228
Other languages
English (en)
French (fr)
Inventor
刘小翱
孙飞翔
简雁峰
汤建
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021017310A1 publication Critical patent/WO2021017310A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials

Definitions

  • This application relates to the technical field of computer data processing, and in particular to an electronic voucher generation method, device, computer equipment and storage medium.
  • the embodiment of the application provides an electronic voucher generation method, device, computer equipment and storage medium, which can better realize the electronic voucher processing when the resource adjustment transaction and the resource usage record of the resource pool are not one-to-one matching
  • the logic is clear and reliable, preventing errors in the preparation of certificates, and processing efficiency is high.
  • this application provides an electronic voucher generation method for use in a certificate preparation system, and the method includes:
  • a resource pool usage entry is generated according to the total amount of resources of the resource pool, and the resource pool usage entry and the second resource usage entry are merged to obtain a voucher corresponding to the resource pool.
  • this application provides an electronic voucher generation method for use in a business system, and the method includes:
  • At least one resource pool is matched according to the resource adjustment instruction, and at least one resource usage record corresponding to the resource adjustment instruction is generated, and the resource usage record corresponds to the resource pool one-to-one;
  • the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction are sent to the certification system for certification.
  • the present application provides an electronic credential generation device, the device includes:
  • a usage record obtaining module configured to obtain a resource adjustment instruction and all resource usage records corresponding to the resource adjustment instruction from the business system, the resource usage record being used to indicate the resource pool corresponding to the resource usage record by the resource adjustment instruction The amount of resources used;
  • a usage entry generating module configured to generate a first resource usage entry corresponding to each resource usage record one-to-one according to the resource adjustment instruction
  • the usage entry determination module is used to obtain the instruction information of all resource adjustment instructions corresponding to the resource pool to be certified from the resource statistics system, and obtain the first resource usage entry corresponding to the resource pool according to each of the instruction information, And use the obtained first resource usage entry as the second resource usage entry;
  • the voucher generation module is configured to generate a resource pool usage entry based on the total amount of resources in the resource pool, and merge the resource pool usage entry and the second resource usage entry to obtain a voucher corresponding to the resource pool .
  • this application provides a computer device that includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when the computer is executed The program realizes the above-mentioned electronic voucher generation method.
  • the present application provides a computer-readable storage medium that stores a computer program, and if the computer program is executed by a processor, the above-mentioned electronic voucher generation method is realized.
  • Resource usage entries are generated by one or more resource usage records corresponding to resource adjustment instructions, and each resource usage entry corresponds to a different resource pool ; Then when a resource pool needs to be certified, call all resource usage entries corresponding to the resource pool and merge the resource pool usage entries of the resource pool to obtain the certificate corresponding to the resource pool; make the resource adjustment transaction and When the resource usage records of the resource pool are not matched one-to-one, the processing logic of the certification system is clear and reliable, preventing certification errors and processing efficiency.
  • FIG. 1 is a schematic flowchart of an electronic credential generation method according to an embodiment of this application
  • Figure 2 is a schematic diagram of a structure of the resource maintenance system
  • FIG. 3 is a schematic flowchart of an embodiment of an electronic voucher generation method
  • FIG. 5 is a schematic diagram of a sub-process of combining the credential corresponding to the resource pool in FIG. 1;
  • FIG. 6 is a schematic flowchart of still another embodiment of an electronic voucher generation method
  • FIG. 7 is a schematic flowchart of another embodiment of an electronic voucher generation method
  • FIG. 8 is a schematic flowchart of an electronic credential generation method according to another embodiment of this application.
  • FIG. 9 is a schematic structural diagram of an electronic credential generating device provided by an embodiment of this application.
  • FIG. 10 is a schematic structural diagram of an embodiment of an electronic credential generating device
  • FIG. 11 is a schematic structural diagram of an electronic credential generating device provided by another embodiment of this application.
  • FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of this application.
  • the embodiments of the present application provide a method, device, equipment and storage medium for generating an electronic certificate.
  • the electronic voucher generation method can be applied to a terminal or a server to realize that the processing logic of the certification system is clear and reliable when the resource adjustment transaction and the resource usage record of the resource pool are not matched one-to-one to prevent the certification Error conditions, and the processing efficiency is higher.
  • the electronic voucher generation method is used for the server, and of course it can be used for the terminal.
  • the terminal can be a notebook computer, a desktop computer, a personal digital assistant, and other electronic equipment;
  • the server can be an independent server or a server cluster.
  • the following embodiments will introduce in detail an electronic voucher generation method applied to a server.
  • FIG. 1 is a schematic flowchart of an electronic voucher generation method provided by an embodiment of the present application.
  • the electronic voucher generation method in this embodiment can be used in a certificate production system.
  • FIG. 2 shows the structure diagram of the resource maintenance system.
  • the resource maintenance system includes a certification system, a business system and a resource statistics system.
  • the resource statistics system and the certification system both provide standard interfaces to the outside through a message server, such as rabbit MQ (Message Queue), and broadcast the results; the business system can communicate with the resource statistics system and the certification system through the message server.
  • a message server such as rabbit MQ (Message Queue)
  • the business system can communicate with the resource statistics system and the certification system through the message server.
  • the resource statistics system receives the resource adjustment instruction sent by the business system through the message server, adjusts the number of resources in the resource pool according to the received resource adjustment instruction, and broadcasts the adjustment result; the adjustment result may include, for example, each resource pool Correspondence between resource usage, usage and resource adjustment instructions.
  • the certification system monitors the message queue in the message server to receive resource adjustment instructions sent by the business system, as well as the usage of resources in the resource pool, the correspondence between each usage and the resource adjustment instructions, etc.
  • one or more business systems can be connected, so as to achieve the purpose of free expansion of the business system.
  • the resource statistics system is specifically a funding system at the application layer
  • the certification system includes a certification platform at the application layer.
  • the funding system receives the resource adjustment instruction information through the message server, and broadcasts the payment result, as well as the relationship between the resource adjustment instruction and the resource pool, such as pipeline;
  • the certification system monitors the message queue of the message server, and receives the resource adjustment instruction information and resource pool. Such as the flow of information, and the relationship between resource adjustment instructions and resource pools.
  • the method for generating an electronic voucher in this embodiment includes the following steps S110 to S140.
  • Step S110 Obtain a resource adjustment instruction and all resource usage records corresponding to the resource adjustment instruction from the business system.
  • the resource usage record is used to indicate the usage amount of the resource in the resource pool corresponding to the resource usage record by the resource adjustment instruction.
  • the certification system obtains resource adjustment instructions A, resource adjustment instructions B, and resource adjustment instructions C from the business system through the message server; the certification system also acquires the resource adjustment instructions A corresponding to the business system
  • the resource usage record x1 is used to indicate the usage amount of resources in the resource pool X by the resource adjustment instruction A.
  • the resource usage record z1 is used to indicate the usage amount of resources in the resource pool Z by the resource adjustment instruction A, such as 50 units;
  • the resource usage record z2 is used to indicate the usage amount of the resources in the resource pool Z by the resource adjustment instruction B , Such as 25 units;
  • the resource usage record z3 is used to indicate the usage of resources in the resource pool Z by the resource adjustment instruction C, such as 25 units.
  • the resource is a currency amount, points, etc.
  • the resource adjustment instruction is, for example, a loan instruction, an amount use instruction, etc.
  • the business system After the business system obtains a resource adjustment instruction for operating on the amount of turnover, such as an amount operation instruction, it matches at least one resource pool according to the resource adjustment instruction, such as matching two resource pools according to the resource adjustment instruction A, That is, the pipeline is resource pool X and resource pool Z; therefore, the resource adjustment instruction operates on resources in resource pool X and resource pool Z.
  • a resource adjustment instruction for operating on the amount of turnover such as an amount operation instruction
  • the business system matches at least one resource pool for the resource adjustment instruction according to preset resource usage rules, and allocates the resource adjustment instruction to use the quantity of resources in each resource pool.
  • the resource statistics system is used to calculate the remaining available resources in each resource pool, for example, to count the remaining available amount of each pipeline, and to lock the remaining available resources in the resource pool; the remaining available resources can be used by resource adjustment instructions.
  • the business system reads information about the remaining available resources in each of the resource pools from the resource statistics system, matches the resource pools for resource adjustment instructions according to the information about the remaining available resources, and allocates the resource adjustment instructions to use each resource pool Specifically, the number of resources in a certain resource pool used by the resource adjustment instruction is less than or equal to the number of remaining available resources in the resource pool.
  • the business system generates at least one resource usage record corresponding to the resource adjustment instruction using the number of resources in each resource pool according to the allocated resource adjustment instruction, and the resource usage record corresponds to the resource pool one-to-one. For example, a resource usage record x1 and a resource usage record z1 corresponding to the resource adjustment instruction A are generated.
  • step S110 obtains a resource adjustment instruction and all resource usage records corresponding to the resource adjustment instruction from the business system, including step S111.
  • Step S111 Obtain from the business system the resource adjustment instruction reviewed by the resource statistical system, and acquire from the business system all resource usage records that are reviewed by the resource statistical system and corresponding to the resource adjustment instruction.
  • the business system after the business system obtains the resource adjustment instruction, matches at least one resource pool according to the resource adjustment instruction, and generates at least one resource usage record corresponding to the resource adjustment instruction, the business system further sends the resource to the message server The adjustment instruction and the resource usage record corresponding to each resource pool matched by the resource adjustment instruction are sent to the resource statistics system for review. If the business system obtains the feedback information that the resource statistics system has reviewed, it sends the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the certification system.
  • the business system sends the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the resource statistics system, and the resource statistics system verifies whether the actual usage of the resources in each resource pool matches the resource usage records sent by the business system; If the audit result includes that a resource usage record matches the actual usage, the resource statistics system sends feedback information that the resource usage record has been reviewed to the business system. If the business system receives feedback information from the resource statistics system indicating that all resource usage records corresponding to the resource adjustment instruction have been reviewed, it will correspond to the resource adjustment instruction and each resource pool matched by the resource adjustment instruction The resource usage records are sent to the certification system.
  • the business system after receiving the feedback information passed through the review, the business system records the matching relationship between the resource adjustment instruction and the corresponding resource pool, as well as the resource usage records corresponding to each resource pool; for example, the data is stored in the database for recording.
  • the review of resource adjustment instructions and resource usage records through the resource statistics system can ensure the accuracy of the data obtained by the certification system from the business system, ensure the unification of data between the business system, the resource statistics system and the certification system, and prevent electronic There was an error in the conversion certificate.
  • Step S120 According to the resource adjustment instruction, a first resource usage entry corresponding to each resource usage record is generated one-to-one.
  • the resource usage entry includes information about a resource adjustment instruction corresponding to the resource usage entry and information about a resource pool corresponding to the resource usage entry, as well as the amount of resources used.
  • the certification system generates a first resource usage entry a1 corresponding to the resource usage record x1 and a first resource usage entry a2 corresponding to the resource usage record z1 according to the resource adjustment instruction A;
  • the resource adjustment instruction B generates a first resource use entry b1 corresponding to the resource use record y1 and a first resource use entry b2 corresponding to the resource use record z2;
  • a first resource use record x2 is generated The resource usage entry c1, the first resource usage entry c2 corresponding to the resource usage record y2, and the first resource usage entry c3 corresponding to the resource usage record z3.
  • the first resource use entry a2 the first resource use entry b2, and the first resource use entry c3 are shown in Table 1.
  • First resource usage entry Resource adjustment instructions Usage amount Resource pool
  • Step S130 Obtain the instruction information of all resource adjustment instructions corresponding to the resource pool to be certified from the resource statistics system, obtain the first resource usage entry corresponding to the resource pool according to each of the instruction information, and combine the obtained The first resource usage entry is used as the second resource usage entry.
  • the resource pool is a resource pool to be certified.
  • the received certification instruction includes a running water identifier of a certain stream, such as a running water ID
  • the running water corresponding to the running water identifier is used as the running water to be certified.
  • the certification system obtains the instruction information of all resource adjustment instructions corresponding to the resource pool Z from the resource statistics system through the message server, that is, the resources of the resource pool Z are used
  • the information of the adjustment instruction such as the number of the resource adjustment instruction A, the resource adjustment instruction B, and the resource adjustment instruction C.
  • the first resource usage entry corresponding to the resource pool to be certified is obtained as the second resource usage entry.
  • the resource usage record z1 corresponding to the resource adjustment instruction A uses the resources in the resource pool Z to be certified
  • the first resource usage entry a2 corresponding to the resource usage record z1 is obtained;
  • the resource adjustment instruction B The resource usage record z2 uses the resources in the resource pool Z to be certified, then the first resource usage entry b2 corresponding to the resource usage record z2 is obtained;
  • the resource usage record z3 corresponding to the resource adjustment instruction C uses the resource pool to be certified
  • the resource pool to be certified refers to a resource pool whose resources have been used up.
  • step S130 obtains the instruction information of all resource adjustment instructions corresponding to the resource pool to be certified from the resource statistics system.
  • step S101 to step S102 are included.
  • Step S101 Send a query instruction corresponding to each resource pool to the resource statistics system to query whether the resources in each resource pool are used up.
  • the certification system periodically sends query instructions to the resource statistics system to query whether any resources in the resource pool are used up.
  • the certificate preparation system if a certificate preparation request for a certain resource pool is received, the certificate preparation system periodically sends query instructions to the resource statistics system to check whether any resources in the resource pool are used up.
  • the total amount of available resources is assigned when the resource pool is created; for example, when a certain pipeline is created, the total amount of available money is included.
  • the corresponding resource adjustment instruction uses the resources in the resource pool, the remaining available resources in the resource pool are gradually reduced until the remaining available resources are exhausted to zero.
  • the resource statistics system determines that the remaining available resources in a certain resource pool are zero, it sends feedback information indicating that the resources in the resource pool are used up to the certification system.
  • Step S102 If feedback information indicating that the resources in the resource pool are used up is received, mark the resource pool as a resource pool to be certified.
  • the resource pool with the exhausted state is used as the resource pool to be certified for certification; unnecessary certification process can be prevented and the system calculation can be reduced Quantity and calculation time.
  • Step S140 Generate a resource pool usage entry based on the total amount of resources in the resource pool, and merge the resource pool usage entry and the second resource usage entry to obtain a voucher corresponding to the resource pool.
  • the total amount of resources in the resource pool is equal to the sum of the number of resources in the resource pool used by all resource adjustment instructions corresponding to the resource pool.
  • resource adjustment instruction A uses the number of resources in resource pool Z to be certified as z1
  • resource adjustment instruction B uses the number of resources in resource pool Z to be certified as z2
  • resource adjustment instruction C uses resources to be certified
  • the number of resources in pool Z is z3
  • the total amount of resources in pool Z to be certified is z1+z2+z3.
  • the total number of resources in the resource pool is equal to the total number of available resources assigned when the resource pool is created.
  • the resource pool to be certified refers to a resource pool whose resources have been used up.
  • the resource pool usage entry of the resource pool Z is generated as shown in Table 2.
  • the certification system pre-stores multiple certification templates.
  • the target template can be selected according to the type of the resource pool to be certified, and then the resource pool usage entry and the corresponding second resource usage entry are merged into the target template to obtain the certificate corresponding to the resource pool to be certified.
  • the specifications of the generated vouchers can be made consistent, which is convenient for data storage and reprocessing.
  • combining the resource pool usage entry and the second resource usage entry in step S140 to obtain the credential corresponding to the resource pool includes steps S141 to S143.
  • Step S141 Generate a credential identifier corresponding to the resource pool.
  • a credential identifier corresponding to the resource pool Z is generated to identify the credential corresponding to the resource pool.
  • Step S142 Add the voucher identifier to the resource pool usage entry, and add the voucher ID to the second resource usage entry.
  • the credential identifier By adding the credential identifier to the resource pool usage entry and the second resource usage entry corresponding to the resource pool of the certification, the data corresponding to the same credential is marked.
  • Step S143 Store the credential identifier, the resource pool usage entry and the second resource usage entry in a database in association with each other.
  • the voucher corresponding to the resource pool can be quickly found based on the voucher identifier in the resource pool usage entry, and the voucher corresponding to the resource usage entry can also be located quickly based on the voucher ID in the resource usage entry.
  • the method before combining the resource pool usage entry and the second resource usage entry in step S140 to obtain the credential corresponding to the resource pool, the method further includes step S103 .
  • Step S103 Obtain the resource balance data corresponding to the resource pool to be certified from the business system, and generate a balance entry corresponding to the resource pool based on the resource balance data.
  • the resources in the resource pool will also be affected by, for example, financial income.
  • the business system For the income or loss of debt, wealth management, insurance, insurance claims, etc., the business system generates resource difference data corresponding to the resource pool, and then sends it to the certification system.
  • the certification system After obtaining the resource balance data corresponding to the resource pool from the business system, the certification system generates a balance entry corresponding to the resource pool.
  • step S140 combining the resource pool usage entry and the second resource usage entry in step S140 to obtain the credential corresponding to the resource pool includes step S1401.
  • step S1401 the resource pool usage entry, the second resource usage entry, and the difference entry are combined to obtain a voucher corresponding to the resource pool.
  • combining the resource pool usage entry, the second resource usage entry, and the difference entry in step S1401 to obtain the voucher corresponding to the resource pool includes: generating the resource The voucher identifier corresponding to the pool; adding the voucher identifier to the resource pool usage entry, adding the voucher ID to the second resource usage entry, and adding the voucher ID to the balance In the entry; the voucher identifier, the resource pool usage entry and the second resource usage entry are associated and saved in the database.
  • the certificate preparation system after obtaining the certificate corresponding to the resource pool, sends a notification of successful certificate preparation to the business system and the resource statistics system; the business system and the resource statistics system can adjust the resource adjustment instructions and resource pool corresponding to the certificate
  • the resource usage record corresponding to the resource pool is marked as a certified state.
  • step S140 combines the resource pool usage entry and the second resource usage entry, and after obtaining the credential corresponding to the resource pool, step S150 is further included.
  • Step S150 If a voucher rollback instruction corresponding to the voucher ID is received, delete the resource pool usage entry with the voucher ID and the second resource usage entry with the voucher ID.
  • the resource pool corresponding to the certificate rollback instruction received by the certification platform is used by only one resource adjustment instruction, then this one resource adjustment instruction is rolled back; if the resource pool corresponding to the voucher rollback instruction is used by multiple resource adjustment instructions If used, the multiple resource adjustment instructions are rolled back; if the resource pool corresponding to the credential rollback instruction is used by multiple resource adjustment instructions, and at least one of the multiple resource adjustment instructions also uses other resources For the resources in the pool, the credentials corresponding to the other resource pools need to be returned at the same time, so that the certification platform generates a credential return instruction corresponding to the other resource pools.
  • the electronic voucher generation method provided by the embodiment of the application generates resource usage entries by generating resource usage entries for one or more resource usage records corresponding to resource adjustment instructions, and each resource usage entry corresponds to a different resource pool; When the pool is certificated, all resource usage entries corresponding to the resource pool are called and merged with the resource pool usage entries of the resource pool to obtain the certificate corresponding to the resource pool; so that the resource usage records in the resource adjustment transaction and the resource pool are not In the case of one-to-one matching, the processing logic of the certification system is clear and reliable, preventing errors in the certification system, and processing efficiency is high.
  • the certificate-making platform and the resource statistics system provide external interfaces.
  • the business system only needs to manage transactions.
  • the resource statistics system and the certificate-making platform match transactions, and automatically generate voucher data for combination, which improves the docking of business systems.
  • Efficiency and improve the efficiency of generating a single certificate.
  • the process of certificate preparation is processed asynchronously. After receiving part of the data, it can be processed in a single step, reducing the memory and CPU occupation, thereby improving the efficiency of a single task.
  • the certification platform, the resource statistics system, and the information server can all be deployed in a distributed manner to support the horizontal or vertical expansion of the docked business system. In theory, it can dock with multiple systems, and each system can perform concurrent processing. . Distributed processing of concurrent data of multiple systems by means of messages improves the ability of applications to process requests per unit of time.
  • FIG. 8 is a schematic flowchart of an electronic voucher generation method provided by an embodiment of the present application.
  • the electronic voucher generation method in this embodiment can be used in a business system.
  • the method for generating an electronic voucher in this embodiment includes the following steps S210 to S230.
  • Step S210 If a resource adjustment instruction is obtained, at least one resource pool is matched according to the resource adjustment instruction, and at least one resource usage record corresponding to the resource adjustment instruction is generated.
  • the resource usage record has a one-to-one correspondence with the resource pool.
  • the resource usage record z1 is used to indicate the usage amount of resources in the resource pool Z by the resource adjustment instruction A, such as 50 units;
  • the resource usage record z2 is used to indicate the usage amount of the resources in the resource pool Z by the resource adjustment instruction B , Such as 25 units;
  • the resource usage record z3 is used to indicate the usage of resources in the resource pool Z by the resource adjustment instruction C, such as 25 units.
  • the resource is a currency amount, points, etc.
  • the resource adjustment instruction is, for example, a loan instruction, an amount use instruction, etc.
  • the business system After the business system obtains a resource adjustment instruction for operating on the amount of turnover, such as an amount operation instruction, it matches at least one resource pool according to the resource adjustment instruction, such as matching two resource pools according to the resource adjustment instruction A, That is, the pipeline is resource pool X and resource pool Z; therefore, the resource adjustment instruction operates on resources in resource pool X and resource pool Z.
  • a resource adjustment instruction for operating on the amount of turnover such as an amount operation instruction
  • the business system matches at least one resource pool for the resource adjustment instruction according to preset resource usage rules, and allocates the resource adjustment instruction to use the quantity of resources in each resource pool.
  • the resource statistics system is used to calculate the remaining available resources in each resource pool, for example, to count the remaining available amount of each pipeline, and to lock the remaining available resources in the resource pool; the remaining available resources can be used by resource adjustment instructions.
  • the business system reads information about the remaining available resources in each of the resource pools from the resource statistics system, matches the resource pools for resource adjustment instructions according to the information about the remaining available resources, and allocates the resource adjustment instructions to use each resource pool Specifically, the number of resources in a certain resource pool used by the resource adjustment instruction is less than or equal to the number of remaining available resources in the resource pool.
  • the business system generates at least one resource usage record corresponding to the resource adjustment instruction using the number of resources in each resource pool according to the allocated resource adjustment instruction, and the resource usage record corresponds to the resource pool one-to-one. For example, a resource usage record x1 and a resource usage record z1 corresponding to the resource adjustment instruction A are generated.
  • Step S220 Send the resource adjustment instruction and the resource usage record corresponding to each resource pool matched by the resource adjustment instruction to the resource statistics system for review.
  • the business system sends the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the resource statistics system for review through a message server. If the business system obtains the feedback information that the resource statistics system has reviewed, it sends the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the certification system.
  • the business system sends the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the resource statistics system, and the resource statistics system verifies whether the actual usage of the resources in each resource pool matches the resource usage records sent by the business system; If the audit result includes that a resource usage record matches the actual usage, the resource statistics system sends feedback information that the resource usage record has been reviewed to the business system.
  • Step S230 If the feedback information passed by the resource statistics system is obtained, the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction are sent to the certification system for certification.
  • the business system receives feedback information from the resource statistics system indicating that all resource usage records corresponding to the resource adjustment instruction have been reviewed, it will match the resource adjustment instruction with the resource adjustment instruction.
  • the resource usage records corresponding to each resource pool are sent to the certification system.
  • the business system after receiving the feedback information passed through the review, the business system records the matching relationship between the resource adjustment instruction and the corresponding resource pool, as well as the resource usage records corresponding to each resource pool; for example, the data is stored in the database for recording.
  • the review of resource adjustment instructions and resource usage records through the resource statistics system can ensure the accuracy of the data obtained by the certification system from the business system, ensure the unification of data between the business system, the resource statistics system and the certification system, and prevent electronic There was an error in the conversion certificate.
  • the electronic voucher generation method can match one or more resource pools to resource adjustment instructions, generate resource usage records corresponding to each resource pool, and report resource adjustment instructions and each resource usage entry to resource statistics
  • the system performs a review, and after the review is passed, the resource adjustment instruction and all resource usage records corresponding to the resource adjustment instruction are sent to the certification system for certification processing; so that the certification system can check one or more resources corresponding to the resource adjustment instruction Use records to generate resource usage entries, so that when resource adjustment transactions and resource usage records of resource pools are not one-to-one matching, the processing logic of the certification system is clear and reliable, preventing certification errors, and processing efficiency is high ;
  • the review of resource adjustment instructions and resource usage records through the resource statistics system can ensure the accuracy of the data obtained by the certification system from the business system, and ensure the unification of data between the business system, the resource statistics system and the certification system. Prevent errors in electronic vouchers.
  • FIG. 9 is a schematic structural diagram of an electronic credential generating device provided by an embodiment of the present application.
  • the electronic credential generating device can be configured in a terminal or a server for executing the aforementioned certificate-making system Electronic voucher generation method.
  • the electronic voucher generating device includes:
  • the usage record obtaining module 110 is configured to obtain a resource adjustment instruction and all resource usage records corresponding to the resource adjustment instruction from the business system, and the resource usage record is used to indicate the resource corresponding to the resource usage record by the resource adjustment instruction The usage of resources in the pool;
  • the usage entry generating module 120 is configured to generate, according to the resource adjustment instruction, a first resource usage entry corresponding to each resource usage record one-to-one;
  • the usage entry determination module 130 is configured to obtain the instruction information of all resource adjustment instructions corresponding to the resource pool to be certified from the resource statistics system, and obtain the first resource usage entry corresponding to the resource pool according to each of the instruction information , And use the obtained first resource usage entry as the second resource usage entry;
  • the voucher generation module 140 is configured to generate a resource pool usage entry according to the total amount of resources of the resource pool, and merge the resource pool usage entry and the second resource usage entry to obtain the corresponding resource pool certificate.
  • the usage record obtaining module 110 is specifically configured to obtain a resource adjustment instruction reviewed by the resource statistics system from a business system, and obtain from the business system a resource adjustment instruction reviewed by the resource statistics system, and the resource adjustment instruction corresponds to All resource usage records of.
  • the electronic voucher generation device further includes a resource pool determination module 10 to be certified.
  • the resource pool determination module 10 to be certified includes:
  • the resource pool query submodule 101 is configured to send query instructions corresponding to each of the resource pools to the resource statistics system to query whether the resources in each of the resource pools are used up;
  • the certification pending marking sub-module 102 if receiving feedback information indicating that the resources in the resource pool are used up, mark the resource pool as a resource pool pending certification.
  • the credential generation module 140 includes:
  • An identifier generation sub-module 141 configured to generate a credential identifier corresponding to the resource pool
  • An identification adding submodule 142 configured to add the credential identification to the resource pool usage entry, and to add the credential identification to the second resource usage entry;
  • the association saving submodule 143 is configured to associate and save the credential identifier, the resource pool usage entry and the second resource usage entry in the database.
  • the electronic credential generating device further includes:
  • the balance entry generating module 20 is configured to obtain the resource balance data corresponding to the resource pool to be certified from the business system, and generate the balance entry corresponding to the resource pool according to the resource balance data.
  • the voucher generation module 140 is specifically configured to merge the resource pool usage entry, the second resource usage entry, and the difference entry to obtain the voucher corresponding to the resource pool.
  • the electronic credential generating device further includes:
  • the voucher rollback module 30 is configured to delete the resource pool usage entry with the voucher ID and the second resource usage entry with the voucher ID if the voucher rollback instruction corresponding to the voucher ID is received.
  • FIG. 11 is a schematic structural diagram of an electronic voucher generation device provided by another embodiment of the present application.
  • the electronic voucher generation device can be configured in a terminal or a server for executing the aforementioned business system Electronic voucher generation method.
  • the electronic voucher generating device includes:
  • the usage record generation module 210 is configured to, if a resource adjustment instruction is obtained, match at least one resource pool according to the resource adjustment instruction, and generate at least one resource usage record corresponding to the resource adjustment instruction, and the resource usage record is consistent with the resource pool One-to-one correspondence
  • the review data sending module 220 is configured to send the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the resource statistics system for review;
  • the certification data sending module 230 is configured to send the resource adjustment instruction and the resource usage records corresponding to each resource pool matched by the resource adjustment instruction to the certification system if the feedback information passed by the resource statistics system is obtained. System certification.
  • the method and device of this application can be used in many general or special computing system environments or configurations.
  • the above-mentioned method and apparatus may be implemented in the form of a computer program, and the computer program may run on the computer device as shown in FIG. 12.
  • FIG. 12 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • the computer equipment can be a server or a terminal.
  • the computer device includes a processor, a memory, and a network interface connected through a system bus, where the memory may include a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium can store an operating system and a computer program.
  • the computer program includes program instructions, and when the program instructions are executed, the processor can execute any electronic voucher generation method.
  • the processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
  • the internal memory provides an environment for the running of the computer program in the non-volatile storage medium.
  • the processor can execute any method for generating electronic voucher.
  • the network interface is used for network communication, such as sending assigned tasks.
  • the structure of the computer device is only a block diagram of a part of the structure related to the solution of the application, and does not constitute a limitation on the computer device to which the solution of the application is applied.
  • the specific computer device may include More or fewer components are shown in the figure, or some components are combined, or have different component arrangements.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), and application specific integrated circuits (Application Specific Integrated Circuits). Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • the processor is used to run a computer program stored in a memory to implement the following steps:
  • a resource pool usage entry is generated according to the total amount of resources of the resource pool, and the resource pool usage entry and the second resource usage entry are merged to obtain a voucher corresponding to the resource pool.
  • the processor implements the acquisition of the resource adjustment instruction from the business system and all resource usage records corresponding to the resource adjustment instruction, it is used to implement:
  • the processor implements the acquisition of the instruction information of all resource adjustment instructions corresponding to the resource pool to be certified from the resource statistics system, it is also used to implement:
  • the processor implements the merging of the resource pool usage entry and the second resource usage entry to obtain the credential corresponding to the resource pool, it is further used to implement:
  • the combining the resource pool usage entry and the second resource usage entry to obtain the credential corresponding to the resource pool includes:
  • the processor when the processor implements the combination of the resource pool usage entry and the second resource usage entry to obtain the credential corresponding to the resource pool, it is used to implement:
  • the voucher identifier, the resource pool usage entry and the second resource usage entry are stored in a database in association.
  • the processor implements the merging of the resource pool usage entry and the second resource usage entry to obtain the credential corresponding to the resource pool, it is further used to implement:
  • a computer-readable storage medium wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement any electronic item provided in the embodiments of the present application.
  • the method of generating a customized voucher is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement any electronic item provided in the embodiments of the present application. The method of generating a customized voucher.
  • the computer-readable storage medium may be the internal storage unit of the computer device described in the foregoing embodiment, such as the hard disk or memory of the computer device.
  • the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMC), or a secure digital (Secure Digital, SD) equipped on the computer device. ) Card, Flash Card, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

电子化凭证生成方法、装置、计算机设备及存储介质,包括:获取资源调整指令以及资源使用记录;根据资源调整指令生成第一资源使用分录;获取待制证的资源池对应的所有资源调整指令的指令信息,根据各指令信息获取第二资源使用分录;生成资源池使用分录,将资源池使用分录和第二资源使用分录进行合并,得到资源池对应的凭证。

Description

电子化凭证生成方法、装置、计算机设备及存储介质
本申请要求于2019年7月30日提交中国专利局、申请号为201910696743.X、发明名称为“电子化凭证生成方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机数据处理技术领域,尤其涉及一种电子化凭证生成方法、装置、计算机设备及存储介质。
背景技术
目前,很多企业的业务量较大,各项资源使用记录均需要产生资源统计凭证。随着信息化办公技术的发展,电子化凭证越来越普遍。制证,即制作电子化凭证。目前在制证过程中资源调整事务表单与资源使用记录通常都是一一对应的关系;但是实际应用中时常会存在资源调整事务和资源使用记录不是一对一匹配的情况;导致现有的制证系统处理逻辑复杂,容易出错且处理效率较低。
发明内容
本申请实施例提供一种电子化凭证生成方法、装置、计算机设备及存储介质,能够较佳地实现在资源调整事务和资源池的资源使用记录不是一对一匹配的情况下,电子化凭证处理的逻辑清晰可靠,防止制证出错的情况,且处理效率较高。
第一方面,本申请提供了一种电子化凭证生成方法,用于制证系统,所述方法包括:
从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证。
第二方面,本申请提供了一种电子化凭证生成方法,用于业务系统,所述方法包括:
若获取资源调整指令,根据所述资源调整指令匹配至少一个资源池,生成所述资源调整指令对应的至少一个资源使用记录,所述资源使用记录与所述资源池一一对应;
将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源 使用记录发送至资源统计系统进行复核;
若获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统进行制证。
第三方面,本申请提供了一种电子化凭证生成装置,所述装置包括:
使用记录获取模块,用于从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
使用分录生成模块,用于根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
使用分录确定模块,用于从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
凭证生成模块,用于根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证。
第四方面,本申请提供了一种计算机设备,所述计算机设备包括存储器和处理器;所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时实现上述的电子化凭证生成方法。
第五方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,若所述计算机程序被处理器执行,实现上述的电子化凭证生成方法。
本申请公开了一种电子化凭证生成方法、装置、设备及存储介质,通过对资源调整指令对应的一个或多个资源使用记录生成资源使用分录,各资源使用分录对应于不同的资源池;然后在需要对某资源池进行制证时,调取该资源池对应的所有资源使用分录与该资源池的资源池使用分录合并得到该资源池对应的凭证;使得在资源调整事务和资源池的资源使用记录不是一对一匹配的情况下,制证系统的处理逻辑清晰可靠,防止制证出错的情况,且处理效率较高。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例的电子化凭证生成方法的流程示意图;
图2为资源维护系统的一种结构示意图;
图3是电子化凭证生成方法一实施方式的流程示意图;
图4是电子化凭证生成方法另一实施方式的流程示意图;
图5是图1中合并得到资源池对应的凭证的子流程示意图;
图6是电子化凭证生成方法再一实施方式的流程示意图;
图7是电子化凭证生成方法又一实施方式的流程示意图;
图8为本申请另一实施例的电子化凭证生成方法的流程示意图;
图9为本申请一实施例提供的一种电子化凭证生成装置的结构示意图;
图10为电子化凭证生成装置一实施方式的结构示意图;
图11为本申请另一实施例提供的一种电子化凭证生成装置的结构示意图;
图12为本申请一实施例提供的一种计算机设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,虽然在装置示意图中进行了功能模块的划分,但是在某些情况下,可以以不同于装置示意图中的模块划分。
本申请的实施例提供了一种电子化凭证生成方法、装置、设备及存储介质。其中,该电子化凭证生成方法可以应用于终端或服务器中,以实现在资源调整事务和资源池的资源使用记录不是一对一匹配的情况下,制证系统的处理逻辑清晰可靠,防止制证出错的情况,且处理效率较高。
例如,电子化凭证生成方法用于服务器,当然可以用于终端。其中,终端可以是笔记本电脑、台式电脑、个人数字助理等电子设备;服务器可以为独立的服务器,也可以为服务器集群。但为了便于理解,以下实施例将以应用于服务器的电子化凭证生成方法进行详细介绍。
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
请参阅图1,图1是本申请的实施例提供的一种电子化凭证生成方法的流程示意图,本实施例中的电子化凭证生成方法可以用于制证系统。
如图2所示为资源维护系统的结构示意图。资源维护系统包括制证系统、业务系统和资源统计系统。其中,资源统计系统和制证系统都通过消息服务器,如rabbit MQ(Message Queue)对外提供标准接口,并广播结果;业务系统可以通过消息服务器和资源统计系统、制证系统通信连接。
示例性的,资源统计系统通过消息服务器接收业务系统发送的资源调整指令,并根据接收到的资源调整指令对资源池中资源的数量进行调整,以及广播调整结果;调整结果例如可以包括各资源池中资源的使用量、各使用量和资源调整指令之间的对应关系。
示例性的,制证系统监听消息服务器中的消息队列,以接收业务系统发送的资源调整指令,以及接收资源池中资源的使用量、各使用量和资源调整指令之间的对应关系等。
示例性的,基于资源统计系统和制证系统通过消息服务器对外提供的标准接口,可以连接一个或多个业务系统,从而达到业务系统可自由扩展的目的。
示例性的,资源统计系统具体为应用层的资金系统,制证系统包括应用层的制证平台。资金系统通过消息服务器接收资源调整指令的信息,并广播支付 结果,以及资源调整指令跟资源池,如流水的关系;制证系统监听消息服务器的消息队列,接收资源调整指令的信息、资源池,如流水的信息,以及资源调整指令和资源池之间的关系。
如图1所示,本实施例中的电子化凭证生成方法包括以下步骤S110至步骤S140。
步骤S110、从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录。
具体的,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量。
示例性的,如图2所示,制证系统通过消息服务器从业务系统获取资源调整指令A、资源调整指令B,以及资源调整指令C;制证系统还从业务系统获取与资源调整指令A对应的资源使用记录x1和资源使用记录z1、与资源调整指令B对应的资源使用记录y1和资源使用记录z2、与资源调整指令C对应的资源使用记录x2、资源使用记录y2和资源使用记录z3。其中,资源使用记录x1用于表示资源调整指令A对资源池X中资源的使用量。
示例性的,资源使用记录z1用于表示资源调整指令A对资源池Z中资源的使用量,如50个单位;资源使用记录z2用于表示资源调整指令B对资源池Z中资源的使用量,如25个单位;资源使用记录z3用于表示资源调整指令C对资源池Z中资源的使用量,如25个单位。
示例性的,资源为货币金额、积分等,资源调整指令例如为借款指令,金额使用指令等。
例如,业务系统在获取用于表示对流水的金额进行操作的资源调整指令,如金额操作指令之后,根据所述资源调整指令匹配至少一个资源池,如根据资源调整指令A匹配两个资源池,即流水,分别为资源池X和资源池Z;因此该资源调整指令对资源池X和资源池Z中的资源进行操作。
示例性的,业务系统根据预设的资源使用规则,为资源调整指令匹配至少一个资源池,以及分配所述资源调整指令使用各资源池中资源的数量。
例如,资源统计系统用于计算各资源池中的剩余可用资源,例如统计各流水的剩余可用金额,并锁定所述资源池中的剩余可用资源;剩余可用资源能够被资源调整指令使用。
示例性的,业务系统从资源统计系统读取各所述资源池中的剩余可用资源的信息,根据剩余可用资源的信息为资源调整指令匹配资源池,以及分配所述资源调整指令使用各资源池中资源的数量;具体的,所述资源调整指令使用某资源池中资源的数量小于或等于该资源池中的剩余可用资源的数量。
业务系统根据分配的所述资源调整指令使用各资源池中资源的数量生成所述资源调整指令对应的至少一个资源使用记录,所述资源使用记录与所述资源池一一对应。例如,生成与资源调整指令A对应的资源使用记录x1和资源使用记录z1。
在一些实施方式中,如图3所示,步骤S110从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,包括步骤S111。
步骤S111、从业务系统获取通过资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的 所有资源使用记录。
示例性的,在业务系统获取资源调整指令,并根据所述资源调整指令匹配至少一个资源池,生成所述资源调整指令对应的至少一个资源使用记录之后,业务系统还通过消息服务器将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统进行复核。如果业务系统获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统。
例如,业务系统将资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统,由资源统计系统审核各资源池中资源的实际使用情况是否和业务系统发送的资源使用记录相匹配;若审核结果包括某资源使用记录与实际使用情况相匹配,则资源统计系统向业务系统发送该资源使用记录复核通过的反馈信息。如果业务系统从资源统计系统接收到用于表示所述资源调整指令对应的所有资源使用记录均复核通过的反馈信息,则将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统。
示例性的,业务系统接收到复核通过的反馈信息后,记录资源调整指令和相应资源池的匹配关系,以及各资源池对应的资源使用记录;例如将这些数据存储至数据库进行记录。
通过资源统计系统对资源调整指令和资源使用记录进行复核,可以保证制证系统从业务系统所获取数据的准确性,保证业务系统、资源统计系统和制证系统之间数据的相统一,防止电子化凭证出错。
步骤S120、根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录。
在一些实施方式中,资源使用分录包括与所述资源使用分录对应的资源调整指令的信息和与所述资源使用分录对应的资源池的信息,还包括资源的实用量。
示例性的,如图2所示,制证系统根据资源调整指令A生成与资源使用记录x1对应的第一资源使用分录a1和与资源使用记录z1对应的第一资源使用分录a2;根据资源调整指令B生成与资源使用记录y1对应的第一资源使用分录b1和与资源使用记录z2对应的第一资源使用分录b2;根据资源调整指令C生成与资源使用记录x2对应的第一资源使用分录c1、与资源使用记录y2对应的第一资源使用分录c2和与资源使用记录z3对应的第一资源使用分录c3。
示例性的,第一资源使用分录a2、第一资源使用分录b2、第一资源使用分录c3如表1所示。
表1第一资源使用分录
第一资源使用分录 资源调整指令 使用量 资源池
第一资源使用分录a2 A 50 Z
第一资源使用分录b2 B 25 Z
第一资源使用分录c3 C 25 Z
步骤S130、从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录。
在一些实施方式中,若接收到对某资源池进行制证的制证请令,则该资源 池为待制证的资源池。例如,若接收到的制证指令包括某流水的流水标识,如流水ID,则将该流水标识对应的流水作为待制证的流水。
示例性的,若资源池Z为待制证的资源池,则制证系统通过消息服务器从资源统计系统获取资源池Z对应的所有资源调整指令的指令信息,即使用资源池Z中资源的资源调整指令的信息,如资源调整指令A、资源调整指令B、资源调整指令C的编号等。
之后根据资源调整指令获取与待制证的资源池对应的第一资源使用分录作为第二资源使用分录。
示例性的,与资源调整指令A对应的资源使用记录z1使用了待制证资源池Z中的资源,则获取资源使用记录z1对应的第一资源使用分录a2;与资源调整指令B对应的资源使用记录z2使用了待制证资源池Z中的资源,则获取资源使用记录z2对应的第一资源使用分录b2;与资源调整指令C对应的资源使用记录z3使用了待制证资源池Z中的资源,则获取资源使用记录z3对应的第一资源使用分录c3;将第一资源使用分录a2、第一资源使用分录b2和第一资源使用分录c3标记为第二资源使用分录。
在另一些实施方式中,待制证的资源池表示资源使用完毕的资源池。
示例性的,如图4所示,在步骤S130从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息之前,包括步骤S101至步骤S102。
步骤S101、向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资源池中的资源是否使用完毕。
在一些实施方式中,制证系统定时向资源统计系统发送查询指令,以查询是否有资源池中的资源是否使用完毕。
在一些实施方式中,若接收到对某资源池进行制证的制证请令,则制证系统定时向资源统计系统发送查询指令,以查询是否有资源池中的资源是否使用完毕。
示例性的,在资源池创建时赋值了可用资源的总数量;例如在某个流水在创建时,包括可用金额的总数量。随着相应的资源调整指令使用该资源池中的资源,该资源池中的剩余可用资源逐渐消减,直至剩余可用资源被用尽为零。
具体的,如果资源统计系统判定某资源池中的剩余可用资源为零,则向制证系统发送用于表示所述资源池中的资源使用完毕的反馈信息。
步骤S102、若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
通过向资源统计系统查询资源池中的资源是否为用尽状态,将资源为用尽状态的资源池作为待制证的资源池进行制证;可以防止不必要的制证进程,降低系统的计算量和计算时间。
步骤S140、根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证。
在一些实施方式中,资源池的资源总量等于所述资源池对应的所有资源调整指令使用的所述资源池中资源数量的总和。例如,资源调整指令A使用了待制证资源池Z中资源的数量为z1,资源调整指令B使用了待制证资源池Z中资源的数量为z2,资源调整指令C使用了待制证资源池Z中资源的数量为z3,则待制证资源池Z的资源总量为z1+z2+z3。
在另一些实施例中,资源池的资源总量等于资源池创建时赋值的可用资源的总数量。具体的,在本实施例中,待制证的资源池表示资源使用完毕的资源池。
示例性的,资源池Z的资源总量为100,则生成资源池Z的资源池使用分录如表2所示。
表2资源池使用分录
Z 100
将所述资源池使用分录和与所述资源池对应的第二资源使用分录进行合并,得到所述资源池对应的凭证。示例性的,资源池Z对应的凭证如表3所示:
表3资源池Z对应的凭证
Figure PCTCN2019118228-appb-000001
示例性的,制证系统预先存储多种制证模板。可以先根据待制证的资源池的类型选取目标模板,然后将资源池使用分录和相应的第二资源使用分录合并至目标模板,得到待制证的资源池对应的凭证。可以使得生成的凭证规格一致,便于数据的存储和再加工。
在一些实施方式中,如图5所示,步骤S140中的将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括步骤S141至步骤S143。
步骤S141、生成所述资源池对应的凭证标识。
示例性的,生成资源池Z对应的凭证标识,以标识该资源池对应的凭证。
步骤S142、将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中。
通过将凭证标识添加到制证的资源池对应的资源池使用分录和第二资源使用分录,以将同一凭证对应的数据进行标记。
步骤S143、将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
由此,可以根据资源池使用分录中的凭证标识快速查找到该资源池对应的凭证,根据资源使用分录中的凭证标识也可以较快定位该资源使用分录对应的凭证。
在一些实施方式中,如图6所示,步骤S140中的将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之前,还包括步骤S103。
步骤S103、从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录。
示例性的,在债权,理财,保险,保险理赔等场景下,资源池中的资源也会受到例如理财收益等影响。对于债权,理财,保险,保险理赔等产生的收益或亏损,由业务系统生成和资源池对应的资源差额数据,然后发送给制证系统。
制证系统从业务系统获取所述资源池对应的资源差额数据后,生成该资源池对应的差额分录。
在本实施方式中,如图6所示,步骤S140中的将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括步骤S1401。
步骤S1401、将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
示例性的,步骤S1401中的将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证,包括:生成所述资源池对应的凭证标识;将所述凭证标识添加到所述资源池使用分录中,将所述凭证标识添加到所述第二资源使用分录中,以及将所述凭证标识添加到所述差额分录中;将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
通过对资源池中资源的差额部分生成差额分录,并将差额分录合并至资源池对应的凭证,实现可以对差额场景进行电子化凭证的生成;且可以进一步提高数据匹配的准确性。
在一些实施方式中,得到所述资源池对应的凭证之后,制证系统向业务系统和资源统计系统发送制证成功的通知;业务系统、资源统计系统可以将凭证对应的资源调整指令、资源池和资源池对应的资源使用记录标记为已制证状态。
在一些实施方式中,如图7所示,步骤S140将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之后,还包括步骤S150。
步骤S150、若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
示例性的,若制证平台所接收凭证回退指令对应的资源池只被一个资源调整指令使用,则回退这一个资源调整指令;若凭证回退指令对应的资源池被多个资源调整指令使用,则回退所述多个资源调整指令;若凭证回退指令对应的资源池被多个资源调整指令使用,且所述多个资源调整指令中有至少一个资源调整指令还使用了其他资源池中的资源,则需要将所述其他资源池对应的凭证同时回退,从而制证平台生成所述其他资源池对应的凭证回退指令。
在对某资源池对应的凭证进行回退时,删除数据库中带有该凭证的凭证标识的资源池使用分录和带有该凭证标识的第二资源使用分录;还可以广播凭证回退的结果通知,以便业务系统、资源统计系统根据所述凭证回退的结果通知将该凭证对应的资源调整指令、资源池和资源池对应的资源使用记录标记为已回退状态。
本申请实施例提供的电子化凭证生成方法,通过对资源调整指令对应的一个或多个资源使用记录生成资源使用分录,各资源使用分录对应于不同的资源池;然后在需要对某资源池进行制证时,调取该资源池对应的所有资源使用分录与该资源池的资源池使用分录合并得到该资源池对应的凭证;使得在资源调整事务和资源池的资源使用记录不是一对一匹配的情况下,制证系统的处理逻辑清晰可靠,防止制证出错的情况,且处理效率较高。
进一步的,由制证平台和资源统计系统对外提供接口,业务系统只需进行交易的管理,由资源统计系统和制证平台对交易进行匹配,并自动生成凭证数据进行组合,提升业务系统的对接效率,并提升单个凭证的生成效率。而且对制证的过程进行了异步的处理,在接收到部分数据后就可以就进行单步的处理,减少对内存和CPU的占用,从而提升单次任务效率。
进一步的,制证平台和资源统计系统,以及信息服务器都可以采用分布式的部署,支持对接的业务系统的横向或者纵向扩展,理论上可对接多个系统,且每个系统都可进行并发处理。通过消息的方式对多系统的并发数据进行分布式处理,从而提升应用单位时间处理请求的能力。
请参阅图8,图8是本申请的实施例提供的一种电子化凭证生成方法的流程示意图。本实施例中的电子化凭证生成方法可以用于业务系统。
如图8所示,本实施例中的电子化凭证生成方法包括以下步骤S210至步骤S230。
步骤S210、若获取资源调整指令,根据所述资源调整指令匹配至少一个资源池,生成所述资源调整指令对应的至少一个资源使用记录。
具体的,所述资源使用记录与所述资源池一一对应。
示例性的,资源使用记录z1用于表示资源调整指令A对资源池Z中资源的使用量,如50个单位;资源使用记录z2用于表示资源调整指令B对资源池Z中资源的使用量,如25个单位;资源使用记录z3用于表示资源调整指令C对资源池Z中资源的使用量,如25个单位。
示例性的,资源为货币金额、积分等,资源调整指令例如为借款指令,金额使用指令等。
例如,业务系统在获取用于表示对流水的金额进行操作的资源调整指令,如金额操作指令之后,根据所述资源调整指令匹配至少一个资源池,如根据资源调整指令A匹配两个资源池,即流水,分别为资源池X和资源池Z;因此该资源调整指令对资源池X和资源池Z中的资源进行操作。
示例性的,业务系统根据预设的资源使用规则,为资源调整指令匹配至少一个资源池,以及分配所述资源调整指令使用各资源池中资源的数量。
例如,资源统计系统用于计算各资源池中的剩余可用资源,例如统计各流水的剩余可用金额,并锁定所述资源池中的剩余可用资源;剩余可用资源能够被资源调整指令使用。
示例性的,业务系统从资源统计系统读取各所述资源池中的剩余可用资源的信息,根据剩余可用资源的信息为资源调整指令匹配资源池,以及分配所述资源调整指令使用各资源池中资源的数量;具体的,所述资源调整指令使用某资源池中资源的数量小于或等于该资源池中的剩余可用资源的数量。
业务系统根据分配的所述资源调整指令使用各资源池中资源的数量生成所述资源调整指令对应的至少一个资源使用记录,所述资源使用记录与所述资源池一一对应。例如,生成与资源调整指令A对应的资源使用记录x1和资源使用记录z1。
步骤S220、将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统进行复核。
示例性的,业务系统通过消息服务器将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统进行复核。如果业务系统获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统。
例如,业务系统将资源调整指令匹配的各资源池对应的资源使用记录发送 至资源统计系统,由资源统计系统审核各资源池中资源的实际使用情况是否和业务系统发送的资源使用记录相匹配;若审核结果包括某资源使用记录与实际使用情况相匹配,则资源统计系统向业务系统发送该资源使用记录复核通过的反馈信息。
步骤S230、若获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统进行制证。
示例性的,如果业务系统从资源统计系统接收到用于表示所述资源调整指令对应的所有资源使用记录均复核通过的反馈信息,则将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统。
示例性的,业务系统接收到复核通过的反馈信息后,记录资源调整指令和相应资源池的匹配关系,以及各资源池对应的资源使用记录;例如将这些数据存储至数据库进行记录。
通过资源统计系统对资源调整指令和资源使用记录进行复核,可以保证制证系统从业务系统所获取数据的准确性,保证业务系统、资源统计系统和制证系统之间数据的相统一,防止电子化凭证出错。
本发申请实施例提供的电子化凭证生成方法,可以对资源调整指令匹配一个或多个资源池,生成各资源池对应的资源使用记录,且将资源调整指令和各资源使用分录上报资源统计系统进行复核,在复核通过后将资源调整指令以及所述资源调整指令对应的所有资源使用记录发送给制证系统进行制证处理;使得制证系统可以对资源调整指令对应的一个或多个资源使用记录生成资源使用分录,使得在资源调整事务和资源池的资源使用记录不是一对一匹配的情况下,制证系统的处理逻辑清晰可靠,防止制证出错的情况,且处理效率较高;而且通过资源统计系统对资源调整指令和资源使用记录进行复核,可以保证制证系统从业务系统所获取数据的准确性,保证业务系统、资源统计系统和制证系统之间数据的相统一,防止电子化凭证出错。
请参阅图9,图9是本申请一实施例提供的一种电子化凭证生成装置的结构示意图,该电子化凭证生成装置可以配置于终端或服务器中,用于执行前述用于制证系统的电子化凭证生成方法。
如图9所示,该电子化凭证生成装置,包括:
使用记录获取模块110,用于从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
使用分录生成模块120,用于根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
使用分录确定模块130,用于从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
凭证生成模块140,用于根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证。
在一些实施方式中,使用记录获取模块110具体用于从业务系统获取通过 资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的所有资源使用记录。
在一些实施方式中,如图10所示,电子化凭证生成装置还包括待制证资源池确定模块10。示例性的,待制证资源池确定模块10包括:
资源池查询子模块101,用于向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资源池中的资源是否使用完毕;
待制证标记子模块102,若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
在一些实施方式中,如图10所示,凭证生成模块140包括:
标识生成子模块141,用于生成所述资源池对应的凭证标识;
标识添加子模块142,用于将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中;
关联保存子模块143,用于将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
在一些实施方式中,如图10所示,电子化凭证生成装置还包括:
差额分录生成模块20,用于从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录。
在本实施方式中,凭证生成模块140具体用于将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
在一些实施方式中,如图10所示,电子化凭证生成装置还包括:
凭证回退模块30,用于若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
请参阅图11,图11是本申请另一实施例提供的一种电子化凭证生成装置的结构示意图,该电子化凭证生成装置可以配置于终端或服务器中,用于执行前述用于业务系统的电子化凭证生成方法。
如图11所示,该电子化凭证生成装置,包括:
使用记录生成模块210,用于若获取资源调整指令,根据所述资源调整指令匹配至少一个资源池,生成所述资源调整指令对应的至少一个资源使用记录,所述资源使用记录与所述资源池一一对应;
复核数据发送模块220,用于将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统进行复核;
制证数据发送模块230,用于若获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统进行制证。
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和各模块、单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本申请的方法、装置可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、机顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。
示例性的,上述的方法、装置可以实现为一种计算机程序的形式,该计算机程序可以在如图12所示的计算机设备上运行。
请参阅图12,图12是本申请实施例提供的一种计算机设备的结构示意图。该计算机设备可以是服务器或终端。
参阅图12,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口,其中,存储器可以包括非易失性存储介质和内存储器。
非易失性存储介质可存储操作系统和计算机程序。该计算机程序包括程序指令,该程序指令被执行时,可使得处理器执行任意一种电子化凭证生成方法。
处理器用于提供计算和控制能力,支撑整个计算机设备的运行。
内存储器为非易失性存储介质中的计算机程序的运行提供环境,该计算机程序被处理器执行时,可使得处理器执行任意一种电子化凭证生成方法。
该网络接口用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,该计算机设备的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
应当理解的是,处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
其中,在一个实施例中,所述处理器用于运行存储在存储器中的计算机程序,以实现如下步骤:
从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证。
示例性的,所述处理器实现所述从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录时,用于实现:
从业务系统获取通过资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的所有资源使用记录。
示例性的,所述处理器实现所述从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息之前,还用于实现:
向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资 源池中的资源是否使用完毕;
若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
示例性的,所述处理器实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之前,还用于实现:
从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录;
所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括:
将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
示例性的,所述处理器实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证时,用于实现:
生成所述资源池对应的凭证标识;
将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中;
将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
示例性的,所述处理器实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之后,还用于实现:
若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法,如:
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现本申请实施例提供的任一项电子化凭证生成方法。
其中,所述计算机可读存储介质可以是前述实施例所述的计算机设备的内部存储单元,例如所述计算机设备的硬盘或内存。所述计算机可读存储介质也可以是所述计算机设备的外部存储设备,例如所述计算机设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种电子化凭证生成方法,其中,所述方法包括:
    从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
    根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
    从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
    根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证;
    其中,所述资源统计系统用于通过消息服务器接收所述业务系统发送的资源调整指令,并根据接收到的资源调整指令对资源池中资源的数量进行调整,以及广播调整结果;所述调整结果包括各资源池中资源的使用量、各使用量和资源调整指令之间的对应关系。
  2. 如权利要求1所述的电子化凭证生成方法,其中,所述从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,包括:
    从业务系统获取通过资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的所有资源使用记录。
  3. 如权利要求2所述的电子化凭证生成方法,其中,所述从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息之前,包括:
    向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资源池中的资源是否使用完毕;
    若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
  4. 如权利要求1所述的电子化凭证生成方法,其中,所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之前,还包括:
    从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录;
    所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括:
    将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
  5. 如权利要求1-4中任一项所述的电子化凭证生成方法,其中,所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括:
    生成所述资源池对应的凭证标识;
    将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中;
    将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库 中。
  6. 如权利要求5所述的电子化凭证生成方法,其中,所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之后,还包括:
    若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
  7. 一种电子化凭证生成方法,其中,包括:
    若获取资源调整指令,根据所述资源调整指令匹配至少一个资源池,生成所述资源调整指令对应的至少一个资源使用记录,所述资源使用记录与所述资源池一一对应;
    将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至资源统计系统进行复核;
    若获取到所述资源统计系统复核通过的反馈信息,将所述资源调整指令,以及所述资源调整指令匹配的各资源池对应的资源使用记录发送至制证系统进行制证。
  8. 一种电子化凭证生成装置,其中,所述装置包括:
    使用记录获取模块,用于从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
    使用分录生成模块,用于根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
    使用分录确定模块,用于从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
    凭证生成模块,用于根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证;
    其中,所述资源统计系统用于通过消息服务器接收所述业务系统发送的资源调整指令,并根据接收到的资源调整指令对资源池中资源的数量进行调整,以及广播调整结果;所述调整结果包括各资源池中资源的使用量、各使用量和资源调整指令之间的对应关系。
  9. 一种计算机设备,其中,所述计算机设备包括存储器和处理器;
    所述存储器用于存储计算机程序;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时实现如下步骤:
    从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
    根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
    从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到 的第一资源使用分录作为第二资源使用分录;
    根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证;
    其中,所述资源统计系统用于通过消息服务器接收所述业务系统发送的资源调整指令,并根据接收到的资源调整指令对资源池中资源的数量进行调整,以及广播调整结果;所述调整结果包括各资源池中资源的使用量、各使用量和资源调整指令之间的对应关系。
  10. 如权利要求9所述的计算机设备,其中,所述处理器在实现所述从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录时,用于实现如下步骤:
    从业务系统获取通过资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的所有资源使用记录。
  11. 如权利要求10所述的计算机设备,其中,所述处理器在实现所述从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息之前,还用于实现如下步骤:
    向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资源池中的资源是否使用完毕;
    若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
  12. 如权利要求9所述的计算机设备,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之前,还用于实现如下步骤:
    从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录;
    所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括:
    将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
  13. 如权利要求9-12中任一项所述的计算机设备,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证时,用于实现如下步骤:
    生成所述资源池对应的凭证标识;
    将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中;
    将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
  14. 如权利要求13所述的计算机设备,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之后,还用于实现如下步骤:
    若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其中:若所述计算机程序被处理器执行,实现如下步骤:
    从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录,所述资源使用记录用于表示所述资源调整指令对所述资源使用记录对应的资源池中资源的使用量;
    根据所述资源调整指令生成与各所述资源使用记录一一对应的第一资源使用分录;
    从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息,根据各所述指令信息获取与所述资源池对应的第一资源使用分录,并将获取到的第一资源使用分录作为第二资源使用分录;
    根据所述资源池的资源总量生成资源池使用分录,将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证;
    其中,所述资源统计系统用于通过消息服务器接收所述业务系统发送的资源调整指令,并根据接收到的资源调整指令对资源池中资源的数量进行调整,以及广播调整结果;所述调整结果包括各资源池中资源的使用量、各使用量和资源调整指令之间的对应关系。
  16. 如权利要求15所述的存储介质,其中,所述处理器在实现所述从业务系统获取资源调整指令以及所述资源调整指令对应的所有资源使用记录时,用于实现如下步骤:
    从业务系统获取通过资源统计系统复核的资源调整指令,以及从所述业务系统获取通过所述资源统计系统复核的,所述资源调整指令对应的所有资源使用记录。
  17. 如权利要求16所述的存储介质,其中,所述处理器在实现所述从资源统计系统获取待制证的资源池对应的所有资源调整指令的指令信息之前,还用于实现如下步骤:
    向所述资源统计系统发送各所述资源池对应的查询指令,以查询各所述资源池中的资源是否使用完毕;
    若接收到用于表示所述资源池中的资源使用完毕的反馈信息,将所述资源池标记为待制证的资源池。
  18. 如权利要求15所述的存储介质,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之前,还用于实现如下步骤:
    从业务系统获取待制证的资源池对应的资源差额数据,根据所述资源差额数据生成所述资源池对应的差额分录;
    所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证,包括:
    将所述资源池使用分录、所述第二资源使用分录,以及所述差额分录进行合并,得到所述资源池对应的凭证。
  19. 如权利要求15-18中任一项所述的存储介质,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证时,用于实现如下步骤:
    生成所述资源池对应的凭证标识;
    将所述凭证标识添加到所述资源池使用分录中,以及将所述凭证标识添加到所述第二资源使用分录中;
    将所述凭证标识、资源池使用分录和第二资源使用分录关联保存在数据库中。
  20. 如权利要求19所述的存储介质,其中,所述处理器在实现所述将所述资源池使用分录和所述第二资源使用分录进行合并,得到所述资源池对应的凭证之后,还用于实现如下步骤:
    若接收到所述凭证标识对应的凭证回退指令,删除带有所述凭证标识的资源池使用分录和带有所述凭证标识的第二资源使用分录。
PCT/CN2019/118228 2019-07-30 2019-11-13 电子化凭证生成方法、装置、计算机设备及存储介质 WO2021017310A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910696743.XA CN110532807B (zh) 2019-07-30 2019-07-30 电子化凭证生成方法、装置、计算机设备及存储介质
CN201910696743.X 2019-07-30

Publications (1)

Publication Number Publication Date
WO2021017310A1 true WO2021017310A1 (zh) 2021-02-04

Family

ID=68660501

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118228 WO2021017310A1 (zh) 2019-07-30 2019-11-13 电子化凭证生成方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN110532807B (zh)
WO (1) WO2021017310A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395086B (zh) * 2020-11-06 2022-03-08 北京五八信息技术有限公司 一种资源分配方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284331A (zh) * 2018-08-16 2019-01-29 中国平安人寿保险股份有限公司 基于业务数据资源的制证信息获取方法、终端设备及介质
CN109544313A (zh) * 2018-11-30 2019-03-29 武汉铭天信息科技有限责任公司 一种凭证电子化管理系统
CN109785093A (zh) * 2018-12-11 2019-05-21 平安科技(深圳)有限公司 基于估值系统的制证方法、装置、计算机设备及存储介质
CN109815470A (zh) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 制证数据生成方法、装置、计算机设备和存储介质
CN110009471A (zh) * 2019-04-03 2019-07-12 平安信托有限责任公司 财务凭证生成方法、装置、计算机设备和存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2417901C (en) * 2000-08-04 2013-01-22 First Data Corporation Entity authentication in electronic communications by providing verification status of device
US10423954B2 (en) * 2015-01-26 2019-09-24 International Business Machines Corporation Resource account application management
US10713660B2 (en) * 2015-09-15 2020-07-14 Visa International Service Association Authorization of credential on file transactions
CN108681964B (zh) * 2018-04-19 2020-08-28 腾讯科技(深圳)有限公司 一种交易结算系统及交易结算控制方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284331A (zh) * 2018-08-16 2019-01-29 中国平安人寿保险股份有限公司 基于业务数据资源的制证信息获取方法、终端设备及介质
CN109544313A (zh) * 2018-11-30 2019-03-29 武汉铭天信息科技有限责任公司 一种凭证电子化管理系统
CN109785093A (zh) * 2018-12-11 2019-05-21 平安科技(深圳)有限公司 基于估值系统的制证方法、装置、计算机设备及存储介质
CN109815470A (zh) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 制证数据生成方法、装置、计算机设备和存储介质
CN110009471A (zh) * 2019-04-03 2019-07-12 平安信托有限责任公司 财务凭证生成方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN110532807A (zh) 2019-12-03
CN110532807B (zh) 2024-03-08

Similar Documents

Publication Publication Date Title
US10678598B2 (en) Enforcing compute equity models in distributed blockchain
US11057225B2 (en) Enforcing compute equity models in distributed blockchain
US10609032B2 (en) Enforcing compute equity models in distributed blockchain
US20120131582A1 (en) System and Method for Real-Time Batch Account Processing
CN109344154B (zh) 数据处理方法、装置、电子设备及存储介质
CN110020846B (zh) 一种转账业务处理方法及系统
WO2019071959A1 (zh) 增加渠道方法、应用服务器及计算机可读存储介质
CN111125106B (zh) 一种跑批任务执行方法、装置、服务器和存储介质
WO2018166145A1 (zh) 还款数据分批报盘方法和装置
CN111782652B (zh) 数据调用方法、装置、计算机设备和存储介质
DE102022129468A1 (de) Implementierung von objektversionierung und -konsistenz bei skalierung
WO2021017310A1 (zh) 电子化凭证生成方法、装置、计算机设备及存储介质
CN111190910B (zh) 额度资源的处理方法、装置、电子设备及可读存储介质
CN112905677A (zh) 数据处理方法及装置、业务处理系统和计算机设备
CN115460265A (zh) 接口调用方法、装置、设备及介质
CN110764933B (zh) 一种消息处理方法、装置、系统及计算设备
CN114328731A (zh) 信息处理方法、装置、电子设备和存储介质
CN114004701A (zh) 生成交易结果的方法及装置、电子设备和存储介质
WO2021068585A1 (zh) 资源处理方法、装置、电子设备及介质
CN111061576B (zh) 一种实体对象的创建方法及系统
CN116503005A (zh) 流程动态修改方法、装置、系统及存储介质
CN114036180A (zh) 报表生成方法、装置、设备及存储介质
CN111866171A (zh) 报文处理方法、装置、电子设备和介质
CN111626882B (zh) 数据检测方法、装置、计算机可读介质及电子设备
US11882185B1 (en) Maintaining quality communication for integrated channels in transaction systems

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19939519

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19939519

Country of ref document: EP

Kind code of ref document: A1