WO2019019697A1 - 数值资源回退方法、装置、服务器和存储介质 - Google Patents

数值资源回退方法、装置、服务器和存储介质 Download PDF

Info

Publication number
WO2019019697A1
WO2019019697A1 PCT/CN2018/082480 CN2018082480W WO2019019697A1 WO 2019019697 A1 WO2019019697 A1 WO 2019019697A1 CN 2018082480 W CN2018082480 W CN 2018082480W WO 2019019697 A1 WO2019019697 A1 WO 2019019697A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
batch number
receipt
transfer
batch
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2018/082480
Other languages
English (en)
French (fr)
Inventor
唐红俊
耿瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019019697A1 publication Critical patent/WO2019019697A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Definitions

  • the application relates to a numerical resource fallback method, device, server and storage medium.
  • Some numerical resources are distributed through banks. Users can collect numerical resources in different places. For example, users can collect survival funds in different places. Survival gold refers to the amount, method and duration agreed by the insurance company according to the contract. The amount paid by the policy beneficiary. Since the numerical resources collected from different places are transferred by the remote organization, and the foreign institutions usually do not belong to the organization of the company linked to the numerical resources, only the receipt number of the numerical resource transfer is recorded in the database. When the value resource collection error occurs, and the received value resource needs to be rolled back, it can only be rolled back according to the receipt number. Each time a value resource is returned, it is necessary to wait for the business to be returned before the next value resource can be rolled back. The inventor realized that if it is necessary to back up a dozen numerical resources, a large amount of time is wasted, and the numerical resource back-off is inefficient.
  • a numerical resource fallback method apparatus, server, and storage medium are provided.
  • a numerical resource fallback method includes:
  • the value resource is rolled back from the first account to the second account according to the receipt number.
  • a numerical resource fallback device includes:
  • a receiving module configured to receive a value resource backoff request
  • a batch number obtaining module configured to obtain a backed batch number according to the numerical resource back request
  • the fallback module is configured to roll back the value resource from the first account to the second account according to the receipt number.
  • a server comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the one or more processors such that the one or more The processor performs the following steps:
  • the value resource is rolled back from the first account to the second account according to the receipt number.
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the value resource is rolled back from the first account to the second account according to the receipt number.
  • FIG. 1 is a block diagram of a server in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a method for numerical resource fallback in accordance with one or more embodiments.
  • FIG. 3 is a flow diagram of determining a receipt number that matches a batch number in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram of a database and a data table corresponding to a batch number in accordance with one or more embodiments.
  • FIG. 5 is a flow diagram of performing numerical resource fallback in accordance with one or more embodiments.
  • FIG. 6 is a flow diagram of changing numerical resource plan transfer table data based on a rollback record in accordance with one or more embodiments.
  • FIG. 7 is a block diagram of a numerical resource fallback device in accordance with one or more embodiments.
  • Figure 8 is a block diagram of a determination module in accordance with one or more embodiments.
  • FIG. 9 is a block diagram of a query unit in accordance with one or more embodiments.
  • FIG. 10 is a block diagram of a fallback module in accordance with one or more embodiments.
  • Figure 11 is a block diagram of a numerical resource fallback device in another embodiment.
  • FIG. 12 is an application environment diagram of a numerical resource fallback method in accordance with one or more embodiments.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • the numerical resource fallback method provided by the present application can be applied to an application environment as shown in FIG.
  • the terminal 10 and the server 12 communicate via a network.
  • the server 12 receives the numerical resource fallback request, obtains the backed batch number according to the numerical resource back request, parses the batch number, and determines a receipt number matching the batch number in the database; The receipt number rolls back the value resource from the first account to the second account.
  • the terminal 10 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablets, and portable wearable devices, and the server 12 can be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
  • FIG. 1 is a block diagram of a server in one embodiment.
  • the server includes a processor, memory, and network interface connected by a system bus.
  • the memory of the server includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium may be a non-transitory computer readable storage medium.
  • the server's non-volatile storage medium stores an operating system, a database, and computer readable instructions.
  • a data table is stored in the database, and the data table stores information such as records of numerical resource transfer of each batch.
  • the computer readable instructions are used to implement a numerical resource fallback method applicable to a server provided in the embodiments of the present application.
  • the server's processor is used to provide computing and control capabilities that support the operation of the entire server.
  • the internal memory of the server provides a cached operating environment for operating systems and computer readable instructions in a non-volatile storage medium.
  • the server's network interface is used to communicate with other computer devices, such as receiving numeric resource fallback requests.
  • the server can be implemented with a stand-alone server or a server cluster consisting of multiple servers. It will be understood by those skilled in the art that the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. Specifically, the server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • a numerical resource fallback method is provided.
  • the method is applied to the server shown in FIG. 12 or FIG. 1 as an example, and includes the following steps:
  • Step S210 receiving a numerical resource fallback request.
  • the value resource back-off operation can be performed by the terminal, and the value resource back-off refers to the state before the value resource is returned to the transfer.
  • the user can trigger the value resource back-off operation by triggering the value resource back button on the value resource back-off page of the terminal, or transfer the value resource.
  • the mechanism sends information to perform a numerical resource rollback operation, and the terminal sends a numerical resource fallback request to the server according to the received numerical resource fallback operation.
  • Step S220 Acquire a batch number of the backoff according to the value resource back request.
  • the numerical resource has a corresponding batch number when the transfer is performed, and the numerical resource belonging to the same batch number can be transferred in multiple times, and one batch number can include one or more receipt numbers, belonging to the same batch. Each receipt number of the minor number can correspond to the numerical resource that is transferred at different time points under the batch number.
  • the server receives the value resource back-off request sent by the terminal, and obtains the batch number corresponding to the value resource that needs to be rolled back from the value resource back-off request.
  • step S230 the batch number is parsed, and the receipt number matching the batch number is determined in the database.
  • the batch number can be generated according to certain setting conditions, the number of digits of the batch number is agreed in the setting condition, and the meaning of each character in the batch number, wherein the character can be Includes numbers, letters or symbols.
  • the setting condition can stipulate that the batch number is a total of 16 digits, wherein the first digit of the batch number is a letter, which is used to indicate the type corresponding to the numerical resource, such as life insurance, pension insurance, etc.;
  • the fifth digit is a number, which is used to indicate the relevant department number, such as the A department of Shenzhen City, Guangdong province, and the B department of Guangzhou City, Guangdong province; the last 11 digits of the batch number are numbers, which are used to indicate the sequence corresponding to the batch number.
  • the batch number can be other composition formats.
  • the server analyzes the batch number, divides the batch number according to the set conditions, and can first query the corresponding database according to the divided batch number, and find the corresponding data table in the database, and then from the data table.
  • the respective receipt numbers matching the batch number are determined, and the receipt number matching the batch number may be one or more, determined by the number of times the numerical resource is transferred under the batch number.
  • Step S240 the value resource is rolled back from the first account to the second account according to the receipt number.
  • the numerical resources corresponding to the respective receipt numbers may be rolled back from the first account to the second account at one time, wherein the first account refers to the value received when the numerical resource is transferred.
  • the object of the resource, the second account is an object that performs a numerical resource transfer operation, for example, the numerical resource is transferred from the insurance company account to the user's personal account, and when the rollback is performed, the numerical resource is returned from the user's personal account to the insurance company account.
  • the user's personal account is the first account and the insurance company account is the second account.
  • the user may also roll back only the numeric resource of a single receipt number in a certain batch number.
  • the server may obtain the batch number and the receipt according to the numerical resource fallback request. No. The server queries the corresponding numerical resource transfer record stored in the data table of the database according to the batch number and the receipt number, and returns the numerical resource from the first account to the second account according to the value resource transfer record.
  • the above-mentioned numerical resource fallback method receives a numerical resource fallback request, obtains a backed batch number according to the numerical resource fallback request, and determines each receipt number matching the batch number, according to each receipt number matching the batch number
  • the value resource is rolled back from the first account to the second account, and multiple numerical resources can be rolled back at the same time in batches, thereby reducing the backoff time and effectively improving the efficiency of the numerical resource fallback.
  • step S230 parses the batch number and determines a receipt number matching the batch number in the database, including the following steps:
  • step S302 the batch number is parsed, and the analysis result is obtained.
  • the server can analyze the batch number, divide the batch number according to the set conditions, obtain the department number and serial number included in the batch number, and find the receipt number matching the batch number according to the department number and the serial number.
  • the batch number is "E260100000227727”
  • the server analyzes the batch number, and after dividing according to the set conditions, "E", "2601”, and "0000227727” are respectively obtained, wherein "E” represents a numerical resource corresponding to The type is life insurance; the second to fifth digit 2601 indicates the relevant department number, representing the life insurance department of Shenzhen, Guangdong province; the last 11 digits are serial numbers.
  • Step S304 querying the database corresponding to the batch number according to the analysis result, and obtaining a data table corresponding to the batch number in the database.
  • the server may first query the corresponding database according to the divided batch number, and find the corresponding data table in the database, and then determine the respective receipt numbers matching the batch number from the data table.
  • step S304 queries the database corresponding to the batch number according to the parsing result, and obtains a data table corresponding to the batch number in the database, including the following steps:
  • Step S402 querying a database corresponding to the department number.
  • a plurality of databases may be included, and each database may correspond to one or more departments, and the database stores the transfer information of the numerical resources of the relevant departments.
  • the server can query the database corresponding to the department number included in the batch number according to the correspondence between the pre-established database and the department number.
  • Step S404 reading a serial number value interval corresponding to each data table in the database.
  • Each database may store a data table, and each data table may correspond to a different serial number value interval, and the data table stores a numerical resource transfer record with a batch number located in a corresponding serial number value interval. For example, if the serial number value corresponding to the a data table in the A database is [0, 100000], the numerical resource transfer records containing the batch number with the serial number between 0 and 100000 are stored in the a data table.
  • Step S406 the serial number is compared with the read numerical interval of each serial number, and the data table corresponding to the serial number value interval in which the serial number is located is obtained.
  • the serial number value interval corresponding to each data table in the corresponding database can be read, and the serial number included in the batch number and each serial number read are read.
  • the numerical interval is compared one by one, and the numerical range of the serial number in which the serial number is located is determined, thereby obtaining a data table corresponding to the determined numerical range of the serial number, in which all receipt numbers matching the batch number are stored in the data table.
  • Numerical resource transfer record For example, the serial number contained in the batch number "E260100000227727" is "00000227727", which falls within the serial number value range [200000, 300000], and can be obtained from the data table with the serial number value interval [200000, 300000]. All receipt numbers matched by the batch number "E260100000227727", and related numerical resource transfer records.
  • step S306 the receipt number matching the batch number is determined from the data table.
  • the batch number can be parsed, the corresponding database is found according to the department number obtained by the parsing, and the data table corresponding to the batch number in the database is determined according to the serial number, and is in the corresponding data table. Obtaining the receipt number matching the batch number can improve the query speed of the receipt number, thereby effectively improving the efficiency of numerical resource rollback.
  • step S240 returns the value resource from the first account to the second account according to the receipt number, including the following steps:
  • Step S502 obtaining a first transfer record of the receipt number matching the batch number in the numerical resource actual transfer table.
  • the data table in the database may include a numerical resource plan transfer table and a numerical resource actual transfer table, wherein the numerical resource plan transfer table stores the to-be-transferred record of the numerical resource and the corresponding transfer information, and the numerical resource actual transfer table stores the value.
  • the actual transfer of information For example, when an insurance company needs to transfer a numerical resource to a user's personal account, the value resource resource transfer table may be first generated in the numerical resource plan transfer table, and the server performs numerical resource transfer according to the to-be-transferred record, and allocates the transferred batch number.
  • the numerical resource under one batch number can be transferred in multiple times, and the unique receipt number for each numerical resource transfer can be allocated, when each time value is transferred After successful, the corresponding transfer status is updated in the actual transfer table of the numeric resource.
  • the server may obtain, in the numerical resource actual transfer table, a first transfer record of the receipt number matching the batch number, wherein the first transfer record stores actual transfer information of each receipt number under the batch number, which may include the batch number Information such as receipt number, transfer status, transfer amount, and object receiving numerical resources.
  • the first transfer record obtained from the numerical resource actual transfer table can be as shown in Table 1.
  • the assigned batch number is “E260100000227727”, and is divided into 4 times for transfer. Each time the numerical resource transfer can correspond to a unique receipt number, as shown in Table 1, the The first 3 times of the batch value resource has been transferred, and the 4th time value resource has not been transferred.
  • Step S504 determining the transfer status of each receipt number one by one according to the first transfer record.
  • the server may determine whether the transfer status of each receipt number in the first transfer record is transferred or not, and the statistical transfer status is The total resource amount corresponding to the transferred receipt number. For example, as shown in Table 1, the receipt number matching the batch number "E260100000227727" is 4, wherein the transfer status of the first 3 receipt numbers is transferred, and the transfer status of the 4th receipt number is untransferred. , the total resource amount of the receipt number whose transfer status is transferred is 3,500.
  • step S506 the statistical transfer status is the total resource quota corresponding to the transferred receipt number.
  • Step S508 extracting a numerical resource matching the total resource quota from the first account, and rolling back to the second account.
  • the server may extract the numerical resource matching the total resource quota of the statistics from the first account, and roll back to the second account, and perform unified rollback on the numerical resources of the plurality of receipt numbers in the same batch.
  • the first transfer record of the receipt number matching the batch number may be obtained from the numerical resource actual transfer table, and the numerical resources of the plurality of receipt numbers in the same batch are unified according to the first transfer record. Roll back, reduce the back-off time, and effectively improve the efficiency of numerical resource rollback.
  • the method further includes the following steps:
  • Step S602 generating a back-off record corresponding to the receipt number whose transfer status is transferred in the numerical resource actual transfer table.
  • the rollback record may be generated in the actual transfer table of the value resource, and the rollback record and the receipt for the rollback operation are generated.
  • the number has a one-to-one correspondence, and the rollback record may include information such as a batch number, a receipt number, a refund amount, a rolled back account, and a backoff time.
  • the server performs rollback according to the first transfer record of Table 1, and generates a rollback record in the actual transfer table of the numerical resources as shown in Table 2.
  • Step S604 obtaining a second transfer record of the receipt number matching the batch number in the numerical resource plan transfer table.
  • the server may obtain a second transfer record of the receipt number matching the batch number in the numerical resource plan table, wherein the second transfer record stores the transfer information of the numerical resource related to the batch number, which may include the batch number , receipt number, transfer amount, valid flag, etc., wherein the valid flag is used to indicate whether the transfer record of the receipt number is valid.
  • the valid flag is used to indicate whether the transfer record of the receipt number is valid.
  • a valid flag bit of 1 indicates valid, and a valid flag bit of 0 indicates invalid, but is not limited thereto, and other characters may be used for representation. It can be seen from Table 3 that the transfer amount of the receipt number "123456" and "345678" under the batch number "E260100000227727” is 1200, and the transfer quota in Table 1 is 1000, indicating that the transfer amount of the numerical resource is incorrect. The user can perform a numerical resource rollback operation through the terminal.
  • Step S608 invalidating the valid flag position of the receipt number corresponding to the rollback record in the second transfer record, and generating a corresponding record to be transferred, and setting the receipt number of the record to be transferred to be empty.
  • the server may invalidate the valid flag position of the corresponding receipt number in the second transfer record according to the rollback record generated in the actual transfer table of the numerical resource.
  • the receipt number in Table 3 is The valid flag positions of "123456", "234567", and "345678" are invalid.
  • the server can simultaneously generate corresponding records to be transferred.
  • the information to be transferred can include only the batch number, the amount to be transferred, and the like, and the batch number in the record to be transferred can be set to be empty, wherein the amount to be transferred can be the second.
  • the total amount of resources in the transfer record is set to be invalid.
  • the to-be-transfer quota for generating the record to be transferred corresponding to Table 3 is 4900, and the receipt number for the rollback is “123456”, “234567”, “ 345678”, and the sum of the transferable amounts of the untransferred receipt number "456789".
  • the batch number assigned in the value resource plan table may be filled in the record to be transferred, and the information such as the receipt number and the valid flag of the receipt number is updated at the same time.
  • the data in the numerical resource plan table can be returned to the numerical resource transfer according to the back-off record, the data consistency is ensured, the numerical resource transfer is facilitated, and the error caused by the numerical resource rollback is reduced. Effectively improve the efficiency of numerical resource rollback.
  • FIGS. 2-6 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIGS. 2-6 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
  • a numerical resource fallback device 700 including a receiving module 710, a batch number obtaining module 720, a determining module 730, and a fallback module 740.
  • the receiving module 710 is configured to receive a value resource backoff request.
  • the batch number obtaining module 720 is configured to obtain a backed batch number according to the value resource back request.
  • a determination module 730 is configured to parse the batch number and determine a receipt number that matches the batch number in the database.
  • the fallback module 740 is configured to roll back the value resource from the first account to the second account according to the receipt number.
  • the numerical resource back-off device receives the numerical resource fallback request, obtains the returned batch number according to the numerical resource fallback request, and determines each receipt number matching the batch number, according to each receipt number matching the batch number
  • the value resource is rolled back from the first account to the second account, and multiple numerical resources can be rolled back at the same time in batches, thereby reducing the backoff time and effectively improving the efficiency of the numerical resource fallback.
  • the determining module 730 includes a parsing unit 732, a query unit 734, and a determining unit 736.
  • the parsing unit 732 is configured to parse the batch number to obtain an analysis result.
  • the parsing unit 732 is further configured to parse the batch number to obtain the department number and serial number of the batch number.
  • the query unit 734 is configured to query the database corresponding to the batch number according to the parsing result, and obtain a data table corresponding to the batch number in the database.
  • the query unit 734 includes a database query sub-unit 902, a read sub-unit 904, and a comparison sub-unit 906.
  • the database query subunit 902 is configured to query a database corresponding to the department number.
  • the reading subunit 904 is configured to read a serial number value interval corresponding to each data table in the database.
  • the comparison sub-unit 906 is configured to compare the serial number with each of the read serial number value intervals, and obtain a data table corresponding to the serial number value interval in which the serial number is located.
  • the determining unit 736 is configured to determine, from the data table, a receipt number that matches the batch number.
  • the batch number can be parsed, the corresponding database is found according to the department number obtained by the parsing, and the data table corresponding to the batch number in the database is determined according to the serial number, and is in the corresponding data table. Obtaining the receipt number matching the batch number can improve the query speed of the receipt number, thereby effectively improving the efficiency of numerical resource rollback.
  • the data table includes a numerical resource actual transfer table and a numerical resource plan transfer table.
  • the fallback module 740 includes a record acquisition unit 742, a state determination unit 744, a statistics unit 746, and a fallback unit 748.
  • the record obtaining unit 742 is configured to obtain a first transfer record of the receipt number matching the batch number in the numerical resource actual transfer table.
  • the status determining unit 744 is configured to determine the transfer status of each receipt number one by one according to the first transfer record.
  • the statistic unit 746 is configured to calculate the total resource quota corresponding to the transferred receipt number.
  • the fallback unit 748 is configured to extract a numeric resource that matches the total resource quota from the first account, and roll back to the second account.
  • the first transfer record of the receipt number matching the batch number may be obtained from the numerical resource actual transfer table, and the numerical resources of the plurality of receipt numbers in the same batch are unified according to the first transfer record. Roll back, reduce the back-off time, and effectively improve the efficiency of numerical resource rollback.
  • the value resource back-off device 700 includes a receiving module 710, a batch number obtaining module 720, a determining module 730, and a fallback module 740, and a first generating module.
  • the record acquisition module and the second generation module are included in the value resource back-off device 700.
  • the first generation module 750 is configured to generate, in the numerical resource actual transfer table, a rollback record corresponding to the receipt number whose transfer status is transferred.
  • the record acquisition module 760 is configured to obtain a second transfer record of the receipt number matching the batch number in the numerical resource plan transfer table.
  • the second generation module 770 is configured to invalidate the valid flag position of the receipt number corresponding to the rollback record in the second transfer record, and generate a corresponding record to be transferred, and set the receipt number of the record to be transferred to be empty.
  • the data in the numerical resource plan table can be returned to the numerical resource transfer according to the back-off record, the data consistency is ensured, the numerical resource transfer is facilitated, and the error caused by the numerical resource rollback is reduced. Effectively improve the efficiency of numerical resource rollback.
  • each of the above-described numerical resource fallback devices may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by one or more processors such that one or more processors implement any of the present application
  • the steps of the numerical resource fallback method provided in the embodiment are not limited to:
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application. The steps provided for the numeric resource fallback method.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数值资源回退方法。包括:接收数值资源回退请求;根据所述数值资源回退请求获取回退的批次号;解析所述批次号,在数据库中确定与所述批次号匹配的收据号;根据所述收据号将数值资源从第一账户回退至第二账户。

Description

数值资源回退方法、装置、服务器和存储介质
相关申请的交叉引用
本申请要求于2017年07月28日提交中国专利局,申请号为2017106291610,申请名称为“数值资源回退方法、装置、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种数值资源回退方法、装置、服务器及存储介质。
背景技术
有些数值资源通过银行进行发放,用户可在异地领取数值资源,例如,用户可在异地领取生存金,生存金是指到了保险合同约定的日期后,保险公司按合同约定的金额、方式、期限向保单受益人支付的金额。由于异地领取的数值资源是通过异地机构进行转移,而异地机构通常不属于与数值资源挂钩的公司所属的机构,因此,在数据库中仅记录有数值资源转移的收据号。当数值资源领取发生错误,导致领取的数值资源需要回退时,只能一笔一笔的按照收据号回退。每回退一笔数值资源,都需要等业务回盘之后方能回退下一笔数值资源。发明人意识到,若需要回退十几笔数值资源时,需浪费大量的时间,数值资源回退效率低。
发明内容
根据本申请公开的各种实施例,提供一种数值资源回退方法、装置、服务器及存储介质。
一种数值资源回退方法,包括:
接收数值资源回退请求;
根据所述数值资源回退请求获取回退的批次号;
解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
根据所述收据号将数值资源从第一账户回退至第二账户。
一种数值资源回退装置,包括:
接收模块,用于接收数值资源回退请求;
批次号获取模块,用于根据所述数值资源回退请求获取回退的批次号;
确定模块,用于解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
回退模块,用于根据所述收据号将数值资源从第一账户回退至第二账户。
一种服务器,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
接收数值资源回退请求;
根据所述数值资源回退请求获取回退的批次号;
解析所述批次号,在数据库中确定与所述批次号匹配的收据号;
根据所述收据号将数值资源从第一账户回退至第二账户。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
接收数值资源回退请求;
根据所述数值资源回退请求获取回退的批次号;
解析所述批次号,在数据库中确定与所述批次号匹配的收据号;
根据所述收据号将数值资源从第一账户回退至第二账户。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中服务器的框图。
图2为根据一个或多个实施例中数值资源回退方法的流程示意图。
图3为根据一个或多个实施例中确定与批次号匹配的收据号的流程示意图。
图4为根据一个或多个实施例中查询与批次号对应的数据库及数据表的流程示意图。
图5为根据一个或多个一个实施例中进行数值资源回退的流程示意图。
图6为根据一个或多个一个实施例中根据回退记录变更数值资源计划转移表数据的流程示意图。
图7为根据一个或多个一个实施例中数值资源回退装置的框图。
图8为根据一个或多个一个实施例中确定模块的框图。
图9为根据一个或多个一个实施例中查询单元的框图。
图10为根据一个或多个一个实施例中回退模块的框图。
图11为另一个实施例中数值资源回退装置的框图。
图12为根据一个或多个实施例中数值资源回退方法的应用环境图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。
本申请提供的数值资源回退方法,可以应用于如图12所示的应用环境中。终端10与服务器12通过网络进行通信。服务器12接收数值资源回退请求;根据所述数值资源回退请求获取回退的批次号;解析所述批次号,在数据库中确定与所述批次号匹配的收据号;根据所述收据号将数值资源从第一账户回退至第二账户。终端10可以但不限于是各种个 人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器12可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
图1为一个实施例中服务器的框图。如图1所示,该服务器包括通过系统总线连接的处理器、存储器和网络接口。该服务器的存储器包括非易失性存储介质和内存储器。在其中一个实施例中,非易失性存储介质可以是非易失性计算机可读存储介质。该服务器的非易失性存储介质存储有操作系统、数据库和计算机可读指令。数据库中存储有数据表,数据表存储有各个批次的数值资源转移的记录等信息。该计算机可读指令用于实现本申请实施例中提供的适用于服务器的一种数值资源回退方法。该服务器的处理器用于提供计算和控制能力,支撑整个服务器的运行。该服务器的内存储器为非易失性存储介质中的操作系统和计算机可读指令提供高速缓存的运行环境。该服务器的网络接口用于据以与其它的计算机设备进行通信,比如接收数值资源回退请求等。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体地服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
如图2所示,在其中一个实施例中,提供一种数值资源回退方法,现以该方法应用于图12或图1所示的服务器为例进行举例说明,包括以下步骤:
步骤S210,接收数值资源回退请求。
当用户需要对数值资源进行回退时,可通过终端进行数值资源回退操作,数值资源回退指的是使数值资源回到转移之前的状态。当数值资源转移出现错误时,例如数值资源转移的额度出错等,用户可通过在终端的数值资源回退页面上触发数值资源回退按钮进行数值资源回退操作,或是向进行数值资源转移的机构发送信息进行数值资源回退操作,终端根据接收到的数值资源回退操作向服务器发送数值资源回退请求。
步骤S220,根据数值资源回退请求获取回退的批次号。
在本实施例中,数值资源进行转移时具有对应的批次号,属于同一批次号的数值资源可分多次进行转移,一个批次号下可包括一个或多个收据号,属于同一批次号的各个收据号可分别对应该批次号下在不同时间点进行转移的数值资源。服务器接收终端发送的数值 资源回退请求,可从数值资源回退请求中获取需要进行回退的数值资源对应的批次号。
步骤S230,解析批次号,在数据库中确定与批次号匹配的收据号。
在其中一个实施例中,批次号可按照一定的设定条件进行生成,设定条件中约定有批次号的位数,以及批次号中每位字符所代表的含义,其中,字符可包括数字、字母或符号等。例如,设定条件可约定批次号总共为16位数,其中,批次号的首位为字母,用于表示数值资源对应的种类,比如寿险、养老险等种类;批次号的第二至第五位为数字,用于表示相关的部门编号,比如广东省深圳市A部门、广东省广州市B部门等;批次号的后11位为数字,用于表示该批次号对应的序列等,但不限于此,批次号可以是其它的组成格式。服务器对批次号进行解析,按照设定条件对批次号进行分割,可根据分割后的批次号先查询到对应的数据库,并在该数据库中查找到对应的数据表,再从数据表中确定与该批次号匹配的各个收据号,与批次号匹配的收据号可能为一个或多个,由该批次号下数值资源进行转移的次数决定。
步骤S240,根据收据号将数值资源从第一账户回退至第二账户。
服务器确定与批次号匹配的所有收据号后,可将与各个收据号对应的数值资源一次性从第一账户回退至第二账户,其中,第一账户指的是数值资源转移时接收数值资源的对象,第二账户为执行数值资源转移操作的对象,例如,数值资源从保险公司账户转移至用户的个人账户,则进行回退时,数值资源从用户的个人账户回退至保险公司账户,其中,用户的个人账户为第一账户,保险公司账户为第二账户。
在其中一个实施例中,用户也可仅对某个批次号中单个收据号的数值资源进行回退,服务器接收数值资源回退请求后,可根据数值资源回退请求获取批次号及收据号,服务器根据该批次号及收据号查询到数据库的数据表中存储的对应数值资源转移记录,并根据该数值资源转移记录将数值资源从第一账户回退至第二账户。
上述数值资源回退方法,接收数值资源回退请求,根据数值资源回退请求获取回退的批次号,并确定与批次号匹配的各个收据号,根据与批次号匹配的各个收据号将数值资源从第一账户回退至第二账户,能够按批次同时回退多笔数值资源,减少回退时间,有效提高数值资源回退效率。
如图3所示,在其中一个实施例中,步骤S230解析批次号,在数据库中确定与批次 号匹配的收据号,包括以下步骤:
步骤S302,解析批次号,得到解析结果。
服务器可对批次号进行解析,按照设定条件对批次号进行分割,得到批次号中包含的部门编号及序列号,并根据部门编号及序列号查找与批次号匹配的收据号。例如,批次号为“E260100000227727”,服务器对该批次号进行解析,根据设定条件分割后可分别得到“E”、“2601”及“0000227727”,其中,“E”表示数值资源对应的种类为寿险;第二至第五位的数字2601表示相关的部门编号,代表广东省深圳市的寿险部门;后11位数字为序列号。
步骤S304,根据解析结果查询与批次号对应的数据库,并在数据库中得到与批次号对应的数据表。
服务器可根据分割后的批次号先查询到对应的数据库,并在该数据库中查找到对应的数据表,再从数据表中确定与该批次号匹配的各个收据号。
如图4所示,在其中一个实施例中,步骤S304根据解析结果查询与批次号对应的数据库,并在数据库中得到与批次号对应的数据表,包括以下步骤:
步骤S402,查询与部门编号对应的数据库。
在本实施例中,可包括有多个数据库,每个数据库可分别对应一个或多个部门,数据库中存储有相关部门的数值资源的转移信息。服务器可根据预先建立的数据库与部门编号的对应关系,查询与批次号中包含的部门编号对应的数据库。
步骤S404,读取数据库中各个数据表对应的序列号数值区间。
每个数据库中可存储有数据表,每张数据表可分别对应不同的序列号数值区间,数据表中存储有与位于对应的序列号数值区间的批次号的数值资源转移记录。例如,A数据库中的a数据表对应的序列号数值区间为[0,100000],则包含有序列号在0至100000之间的批次号的数值资源转移记录均存储在a数据表中。
步骤S406,将序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
服务器查询与批次号中包含的部门编号对应的数据库后,可读取该对应的数据库中各个数据表对应的序列号数值区间,并将批次号包含的序列号与读取的各个序列号数值区间 进行一一比对,确定该序列号所处的序列号数值区间,从而得到与确定的序列号数值区间对应的数据表,该数据表中即存储有与批次号匹配的所有收据号的数值资源转移记录。例如,批次号“E260100000227727”中包含的序列号为“00000227727”,落入序列号数值区间[200000,300000],则可从序列号数值区间为[200000,300000]的数据表中获取到与该批次号“E260100000227727”匹配的所有收据号,以及相关的数值资源转移记录。
步骤S306,从数据表中确定与批次号匹配的收据号。
在本实施例中,可对批次号进行解析,根据解析得到的部门编号查找到对应的数据库,再根据序列号确定该数据库中与批次号对应的数据表,并在对应的数据表中获取与批次号匹配的收据号,可提高收据号的查询速度,从而有效提高数值资源回退效率。
如图5所示,在其中一个实施例中,步骤S240根据收据号将数值资源从第一账户回退至第二账户,包括以下步骤:
步骤S502,在数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录。
数据库中的数据表可包括数值资源计划转移表及数值资源实际转移表,其中,数值资源计划转移表中存储有数值资源的待转移记录及相应的转移信息,数值资源实际转移表中存储有数值资源的实际转移信息。例如,当保险公司需要向用户的个人账户转移数值资源时,可先在数值资源计划转移表中生成数值资源的待转移记录,服务器根据该待转移记录进行数值资源转移,分配转移的批次号,并在数值资源实际转移表中生成对应的实际转移记录,一个批次号下的数值资源可分多次进行转移,可分配每次进行数值资源转移的唯一收据号,当每一次数值资源转移成功后,会在数值资源实际转移表中更新对应的转移状态。
服务器可在数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录,其中,第一转移记录存储有该批次号下各收据号的实际转移信息,可包括批次号、收据号、转移状态、转移额度、接收数值资源的对象等信息。从数值资源实际转移表中获取的第一转移记录可如表1所示。
表1
批次号 收据号 转移额度 接收账户 转移状态
E260100000227727 123456 1000 X 已转移
E260100000227727 234567 1500 X 已转移
E260100000227727 345678 1000 X 已转移
E260100000227727 456789 1000 X 未转移
服务器对该批次的数值资源进行转移时,分配到的批次号为“E260100000227727”,并分成4次进行转移,每次的数值资源转移可分别对应唯一的收据号,由表1可知,该批次的前3次数值资源已转移,第4次数值资源未转移。
步骤S504,根据第一转移记录逐一确定各个收据号的转移状态。
服务器在数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录后,可确定第一转移记录中各个收据号的转移状态为已转移还是未转移,并统计转移状态为已转移的收据号对应的总资源额度。例如,如表1所示,其中,与批次号为“E260100000227727”匹配的收据号为4个,其中前3个收据号的转移状态为已转移,第4个收据号的转移状态为未转移,则可统计转移状态为已转移的收据号的总资源额度为3500。
步骤S506,统计转移状态为已转移的收据号对应的总资源额度。
步骤S508,从第一账户提取与总资源额度匹配的数值资源,并回退至第二账户。
服务器可从第一账户提取与统计的总资源额度匹配的数值资源,并回退至第二账户,对同一批次下的多个收据号的数值资源进行统一回退。
在本实施例中,可从数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录,并根据第一转移记录对同一批次下的多个收据号的数值资源进行统一回退,减少回退时间,有效提高数值资源回退效率。
如图6所示,在其中一个实施例中,在步骤S508从第一账户提取与总资源额度匹配的数值资源,并回退至第二账户之后,还包括以下步骤:
步骤S602,在数值资源实际转移表中生成与转移状态为已转移的收据号对应的回退记录。
服务器提取第一账户的数值资源并回退至第二账户后,当接收到回退成功信息时,可在数值资源实际转移表中生成回退记录,该回退记录与进行回退操作的收据号具备一一对应关系,回退记录中可包括批次号、收据号、回退额度、回退的账户及回退时间等信息。服务器根据表1的第一转移记录进行回退,并在数值资源实际转移表中生成回退记录可如表2所示。
表2
批次号 收据号 回退额度 回退账户 回退时间
E260100000227727 123456 1000 Y 2017-7-1
E260100000227727 234567 1500 Y 2017-7-1
E260100000227727 345678 1000 Y 2017-7-1
步骤S604,在数值资源计划转移表中获取与批次号匹配的收据号的第二转移记录。
服务器可在数值资源计划表中获取与批次号匹配的收据号的第二转移记录,其中,第二转移记录存储有与该批次号相关的数值资源的应转移信息,可包括批次号、收据号、转移额度、有效标志位等,其中,有效标志位用于表示该收据号的转移记录是否有效,当为有效说明已转移时,无需进行转移,当为无效时,则说明需要进行转移。在数值资源计划表中获取的第二转移记录可如表3所示。
表3
批次号 收据号 应转移额度 接收账户 有效标志位
E260100000227727 123456 1200 X 1
E260100000227727 234567 1500 X 1
E260100000227727 345678 1200 X 1
E260100000227727 456789 1000 X 0
有效标志位为1表示有效,有效标志位为0表示无效,但不限于此,也可采用其它的字符进行表示。由表3中可知,批次号“E260100000227727”下的收据号为“123456”及“345678”的应转移额度为1200,而在表1中转移额度均为1000,说明数值资源的转移额度发生错误,用户可通过终端进行数值资源回退操作。
步骤S608,将第二转移记录中与回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将待转移记录的收据号置为空。
服务器可根据在数值资源实际转移表中生成的回退记录,在第二转移记录中将相应收据号的有效标志位置为无效,例如,根据表2的回退记录,将表3中收据号为“123456”、“234567”、“345678”的有效标志位置为无效。服务器可同时生成相应的待转移记录,待转移记录中可仅包括批次号、待转移额度等信息,可将待转移记录中的批次号置为空,其 中,待转移额度可为第二转移记录中有效标志位被置为无效的总资源额度,例如,生成与表3对应的待转移记录的待转移额度为4900,是进行回退的收据号为“123456”、“234567”、“345678”,以及未转移的收据号为“456789”的应转移额度之和。
当服务器重新根据待转移记录进行数值资源转移时,可在数值资源计划表将分配的批次号填入待转移记录中,并同时更新收据号、收据号的有效标志位等信息。
在本实施例中,可根据回退记录将数值资源计划表中的数据返回到数值资源转移之前,保证了数据的一致性,方便重新进行数值资源转移,减少因数值资源回退产生的错误,有效提高数值资源回退效率。
应该理解的是,虽然图2-6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
如图7所示,在其中一个实施例中,提供一种数值资源回退装置700,包括接收模块710、批次号获取模块720、确定模块730及回退模块740。
接收模块710,用于接收数值资源回退请求。
批次号获取模块720,用于根据数值资源回退请求获取回退的批次号。
确定模块730,用于解析批次号,在数据库中确定与批次号匹配的收据号。
回退模块740,用于根据收据号将数值资源从第一账户回退至第二账户。
上述数值资源回退装置,接收数值资源回退请求,根据数值资源回退请求获取回退的批次号,并确定与批次号匹配的各个收据号,根据与批次号匹配的各个收据号将数值资源从第一账户回退至第二账户,能够按批次同时回退多笔数值资源,减少回退时间,有效提高数值资源回退效率。
如图8所示,在其中一个实施例中,确定模块730包括解析单元732、查询单元734及确定单元736。
解析单元732,用于解析批次号,得到解析结果。
在其中一个实施例中,解析单元732,还用于解析批次号,得到批次号的部门编号及序列号。
查询单元734,用于根据解析结果查询与批次号对应的数据库,并在数据库中得到与批次号对应的数据表。
如图9所示,在其中一个实施例中,查询单元734包括数据库查询子单元902、读取子单元904及比对子单元906。
数据库查询子单元902,用于查询与部门编号对应的数据库。
读取子单元904,用于读取数据库中各个数据表对应的序列号数值区间。
比对子单元906,用于将序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
确定单元736,用于从数据表中确定与批次号匹配的收据号。
在本实施例中,可对批次号进行解析,根据解析得到的部门编号查找到对应的数据库,再根据序列号确定该数据库中与批次号对应的数据表,并在对应的数据表中获取与批次号匹配的收据号,可提高收据号的查询速度,从而有效提高数值资源回退效率。
在其中一个实施例中,数据表包括数值资源实际转移表及数值资源计划转移表。如图10所示,回退模块740,包括记录获取单元742、状态确定单元744、统计单元746及回退单元748。
记录获取单元742,用于在数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录。
状态确定单元744,用于根据第一转移记录逐一确定各个收据号的转移状态。
统计单元746,用于统计转移状态为已转移的收据号对应的总资源额度。
回退单元748,用于从第一账户提取与总资源额度匹配的数值资源,并回退至第二账户。
在本实施例中,可从数值资源实际转移表中获取与批次号匹配的收据号的第一转移记录,并根据第一转移记录对同一批次下的多个收据号的数值资源进行统一回退,减少回退时间,有效提高数值资源回退效率。
如图11所示,在其中一个实施例中,上述数值资源回退装置700,除了包括接收模块710、批次号获取模块720、确定模块730及回退模块740,还包括第一生成模块、记录获取模块及第二生成模块。
第一生成模块750,用于在数值资源实际转移表中生成与转移状态为已转移的收据号对应的回退记录。
记录获取模块760,用于在数值资源计划转移表中获取与批次号匹配的收据号的第二转移记录。
第二生成模块770,用于将第二转移记录中与回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将待转移记录的收据号置为空。
在本实施例中,可根据回退记录将数值资源计划表中的数据返回到数值资源转移之前,保证了数据的一致性,方便重新进行数值资源转移,减少因数值资源回退产生的错误,有效提高数值资源回退效率。
关于数值资源回退装置的具体限定可以参见上文中对于数值资源回退方法的限定,在此不再赘述。上述数值资源回退装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的数值资源回退方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的数值资源回退方法的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任 何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种数值资源回退方法,包括:
    接收数值资源回退请求;
    根据所述数值资源回退请求获取回退的批次号;
    解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
    根据所述收据号将数值资源从第一账户回退至第二账户。
  2. 根据权利要求1所述的方法,其特征在于,所述解析所述批次号,在数据库中确定与所述批次号匹配的收据号,包括:
    解析所述批次号,得到解析结果;
    根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表;及
    从所述数据表中确定与所述批次号匹配的收据号。
  3. 根据权利要求2所述的方法,其特征在于,所述解析所述批次号,得到解析结果,包括:解析所述批次号,得到所述批次号的部门编号及序列号;
    所述根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表,包括:
    查询与所述部门编号对应的数据库;
    读取所述数据库中各个数据表对应的序列号数值区间;及
    将所述序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
  4. 根据权利要求2所述的方法,其特征在于,所述数据表包括数值资源实际转移表;
    所述根据所述收据号将数值资源从第一账户回退至第二账户,包括:
    在所述数值资源实际转移表中获取与所述批次号匹配的收据号的第一转移记录;
    根据所述第一转移记录逐一确定各个收据号的转移状态;
    统计转移状态为已转移的收据号对应的总资源额度;及
    从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户。
  5. 根据权利要求4所述的方法,其特征在于,所述数据表还包括数值资源计划转移 表;在所述从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户之后,所述方法还包括:
    在所述数值资源实际转移表中生成与所述转移状态为已转移的收据号对应的回退记录;
    在所述数值资源计划转移表中获取与所述批次号匹配的收据号的第二转移记录;及
    将所述第二转移记录中与所述回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将所述待转移记录的收据号置为空。
  6. 一种数值资源回退装置,包括:
    接收模块,用于接收数值资源回退请求;
    批次号获取模块,用于根据所述数值资源回退请求获取回退的批次号;
    确定模块,用于解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
    回退模块,用于根据所述收据号将数值资源从第一账户回退至第二账户。
  7. 根据权利要求6所述的装置,其特征在于,所述确定模块,包括:
    解析单元,用于解析所述批次号,得到解析结果;
    查询单元,用于根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表;及
    确定单元,用于从所述数据表中确定与所述批次号匹配的收据号。
  8. 根据权利要求7所述的装置,其特征在于,所述解析单元,还用于解析所述批次号,得到所述批次号的部门编号及序列号;所述查询单元,包括:
    数据库查询子单元,用于查询与所述部门编号对应的数据库;
    读取子单元,用于读取所述数据库中各个数据表对应的序列号数值区间;及
    比对子单元,用于将所述序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
  9. 根据权利要求7所述的装置,其特征在于,所述数据表包括数值资源实际转移表及数值资源计划转移表;所述回退模块,包括:
    记录获取单元,用于在所述数值资源实际转移表中获取与所述批次号匹配的收据号的第一转移记录;
    状态确定单元,用于根据所述第一转移记录逐一确定各个收据号的转移状态;
    统计单元,用于统计转移状态为已转移的收据号对应的总资源额度;及
    回退单元,用于从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户。
  10. 根据权利要求9所述的装置,其特征在于,还包括:
    第一生成模块,用于在所述数值资源实际转移表中生成与所述转移状态为已转移的收据号对应的回退记录;
    记录获取模块,用于在所述数值资源计划转移表中获取与所述批次号匹配的收据号的第二转移记录;及
    第二生成模块,用于将所述第二转移记录中与所述回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将所述待转移记录的收据号置为空。
  11. 一种服务器,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收数值资源回退请求;
    根据所述数值资源回退请求获取回退的批次号;
    解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
    根据所述收据号将数值资源从第一账户回退至第二账户。
  12. 根据权利要求11所述的服务器,其特征在于,所述解析所述批次号,在数据库中确定与所述批次号匹配的收据号,包括:
    解析所述批次号,得到解析结果;
    根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表;及
    从所述数据表中确定与所述批次号匹配的收据号。
  13. 根据权利要求12所述的服务器,其特征在于,所述解析所述批次号,得到解析结果,包括:解析所述批次号,得到所述批次号的部门编号及序列号;
    所述根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所 述批次号对应的数据表,包括:
    查询与所述部门编号对应的数据库;
    读取所述数据库中各个数据表对应的序列号数值区间;及
    将所述序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
  14. 根据权利要求12所述的服务器,其特征在于,所述数据表包括数值资源实际转移表;所述根据所述收据号将数值资源从第一账户回退至第二账户,包括:
    在所述数值资源实际转移表中获取与所述批次号匹配的收据号的第一转移记录;
    根据所述第一转移记录逐一确定各个收据号的转移状态;
    统计转移状态为已转移的收据号对应的总资源额度;及
    从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户。
  15. 根据权利要求14所述的服务器,其特征在于,所述数据表还包括数值资源计划转移表;所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户之后,还执行以下步骤:
    在所述数值资源实际转移表中生成与所述转移状态为已转移的收据号对应的回退记录;
    在所述数值资源计划转移表中获取与所述批次号匹配的收据号的第二转移记录;及
    将所述第二转移记录中与所述回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将所述待转移记录的收据号置为空。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收数值资源回退请求;
    根据所述数值资源回退请求获取回退的批次号;
    解析所述批次号,在数据库中确定与所述批次号匹配的收据号;及
    根据所述收据号将数值资源从第一账户回退至第二账户。
  17. 根据权利要求16所述的存储介质,其特征在于,所述解析所述批次号,在数据库中确定与所述批次号匹配的收据号,包括:
    解析所述批次号,得到解析结果;
    根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表;及
    从所述数据表中确定与所述批次号匹配的收据号。
  18. 根据权利要求17所述的存储介质,其特征在于,所述解析所述批次号,得到解析结果,包括:解析所述批次号,得到所述批次号的部门编号及序列号;
    所述根据所述解析结果查询与所述批次号对应的数据库,并在所述数据库中得到与所述批次号对应的数据表,包括:
    查询与所述部门编号对应的数据库;
    读取所述数据库中各个数据表对应的序列号数值区间;及
    将所述序列号与读取的各个序列号数值区间进行一一比对,并获取序列号所处的序列号数值区间对应的数据表。
  19. 根据权利要求17所述的存储介质,其特征在于,所述数据表包括数值资源实际转移表;所述根据所述收据号将数值资源从第一账户回退至第二账户,包括:
    在所述数值资源实际转移表中获取与所述批次号匹配的收据号的第一转移记录;
    根据所述第一转移记录逐一确定各个收据号的转移状态;
    统计转移状态为已转移的收据号对应的总资源额度;及
    从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户。
  20. 根据权利要求19所述的存储介质,其特征在于,所述数据表还包括数值资源计划转移表;
    所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述从第一账户提取与所述总资源额度匹配的数值资源,并回退至第二账户之后,还执行以下步骤:
    在所述数值资源实际转移表中生成与所述转移状态为已转移的收据号对应的回退记录;
    在所述数值资源计划转移表中获取与所述批次号匹配的收据号的第二转移记录;及
    将所述第二转移记录中与所述回退记录对应的收据号的有效标志位置为无效,并生成相应的待转移记录,将所述待转移记录的收据号置为空。
PCT/CN2018/082480 2017-07-28 2018-04-10 数值资源回退方法、装置、服务器和存储介质 Ceased WO2019019697A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710629161.0A CN108256839B (zh) 2017-07-28 2017-07-28 数值资源回退方法、装置、服务器及存储介质
CN201710629161.0 2017-07-28

Publications (1)

Publication Number Publication Date
WO2019019697A1 true WO2019019697A1 (zh) 2019-01-31

Family

ID=62722197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082480 Ceased WO2019019697A1 (zh) 2017-07-28 2018-04-10 数值资源回退方法、装置、服务器和存储介质

Country Status (2)

Country Link
CN (1) CN108256839B (zh)
WO (1) WO2019019697A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192036B (zh) * 2019-08-01 2023-06-20 腾讯科技(深圳)有限公司 账号资源更新方法、装置、计算机设备以及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578029A (zh) * 2012-07-31 2014-02-12 Ncr公司 货币跟踪
CN104036595A (zh) * 2013-03-08 2014-09-10 乐金信世股份有限公司 用于手续费收退款的金融自动化设备、方法和系统
US20150019277A1 (en) * 2012-10-02 2015-01-15 DRW Legal Lumping Enterprises, Inc. Method and system for automating lumping services management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578029A (zh) * 2012-07-31 2014-02-12 Ncr公司 货币跟踪
US20150019277A1 (en) * 2012-10-02 2015-01-15 DRW Legal Lumping Enterprises, Inc. Method and system for automating lumping services management
CN104036595A (zh) * 2013-03-08 2014-09-10 乐金信世股份有限公司 用于手续费收退款的金融自动化设备、方法和系统

Also Published As

Publication number Publication date
CN108256839B (zh) 2020-11-24
CN108256839A (zh) 2018-07-06

Similar Documents

Publication Publication Date Title
CN111177302B (zh) 业务单据处理方法、装置、计算机设备和存储介质
CN108734453B (zh) 区块链数据处理方法、装置、计算机设备和存储介质
CN111274252B (zh) 一种区块链的数据上链方法、装置、存储介质和服务器
CN110727727B (zh) 一种数据库的统计方法及装置
CN113468226A (zh) 一种业务处理方法、装置、电子设备和存储介质
CN106874320A (zh) 分布式流式数据处理的方法和装置
CN104104717A (zh) 投放渠道数据统计方法及装置
CN112506486A (zh) 搜索系统建立方法、装置、电子设备及可读存储介质
WO2020140662A1 (zh) 数据表填补方法、装置、计算机设备和存储介质
WO2022179377A1 (zh) 一种raid 5校验值的更新方法、装置和介质
WO2019100853A1 (zh) 分页查询方法及装置和电子设备
CN110795475A (zh) 报表生成方法、装置、计算机设备和存储介质
CN116783588A (zh) 用于大元数据管理的列技术
CN111414427B (zh) 一种适用于准实时服务的数据处理方法及装置
CN115525652A (zh) 用户访问数据处理方法及装置
WO2019033741A1 (zh) 投资产品的资源处理方法、装置、存储介质和计算机设备
CN111259053A (zh) 一种账单查询的方法及装置
CN110555021A (zh) 数据存储方法、查询方法及相关装置
CN107451301B (zh) 实时投递账单邮件的处理方法、装置、设备和存储介质
CN104424325A (zh) 数据查询方法和装置
CN116303657B (zh) 群体画像生成方法、装置、计算机设备和存储介质
CN111046240B (zh) 网关流量统计方法、装置、计算机设备和存储介质
CN115098738B (zh) 业务数据的提取方法、装置、存储介质及电子设备
CN115185573A (zh) 应用配置信息的配置方法、装置、计算机设备和存储介质
WO2019019697A1 (zh) 数值资源回退方法、装置、服务器和存储介质

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: 18838886

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: 18838886

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC , EPO FORM 1205A DATED 05.08.2020.

122 Ep: pct application non-entry in european phase

Ref document number: 18838886

Country of ref document: EP

Kind code of ref document: A1