CN113379537A - Service processing method, device and equipment - Google Patents

Service processing method, device and equipment Download PDF

Info

Publication number
CN113379537A
CN113379537A CN202110758497.3A CN202110758497A CN113379537A CN 113379537 A CN113379537 A CN 113379537A CN 202110758497 A CN202110758497 A CN 202110758497A CN 113379537 A CN113379537 A CN 113379537A
Authority
CN
China
Prior art keywords
service
processing request
request
objects
processing
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.)
Pending
Application number
CN202110758497.3A
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110758497.3A priority Critical patent/CN113379537A/en
Publication of CN113379537A publication Critical patent/CN113379537A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Abstract

The embodiment of the application provides a service processing method, a device and equipment, wherein the method comprises the following steps: acquiring at least one service processing request, wherein each service processing request comprises at least one object processing request, and the object processing request is used for requesting to occupy an object in an object pool or return the object to the object pool; performing service preprocessing on the at least one object processing request; determining a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request, wherein the object type is an occupation type or a return type; and if the processing result of the service preprocessing is successful, determining the processing result of the service processing request according to the first quantity and the object type. And the timeliness of service processing is improved.

Description

Service processing method, device and equipment
Technical Field
The present application relates to the field of financial technologies, and in particular, to a method, an apparatus, and a device for processing a service.
Background
The service system can process the service. For example, a financial institution's business system may handle loan transactions, payment transactions, and the like.
Currently, when a service system receives a service request, the service system determines whether to process the service request according to a result of managing and controlling a quota corresponding to the service request sent by a resource management and control system. For example, when a financial institution's business system processes a loan transaction, the business system processes the loan transaction when the business system determines that the remaining cash in the loan amount pool is sufficient to handle the loan transaction. However, after the service system receives a plurality of service requests, the service requests in the service system all need to wait for the resource management and control system to return the result of credit management and control before performing the next operation, and when the load of the resource management and control system is heavy, the waiting time of the plurality of service requests is long, and the timeliness of service processing is poor.
Disclosure of Invention
The embodiment of the application provides a service processing method, a service processing device and service processing equipment, which are used for solving the technical problem of poor timeliness of service processing in the prior art.
In a first aspect, the present application provides a service processing method, including:
obtaining at least one service processing request, wherein each service processing request comprises at least one object processing request, and the object processing request is used for requesting to occupy an object in an object pool or return the object to the object pool;
performing service preprocessing on the at least one object processing request;
determining a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request, wherein the object type is an occupation type or a return type;
and if the processing result of the service preprocessing is successful, determining the processing result of the service processing request according to the first quantity and the object type.
In a possible implementation manner, determining a processing result of the service processing request according to the first number and the object type includes:
if the object type is the return type, determining that the processing result of the service processing request is successful, and adding the first number of objects in the object pool;
and if the object type is an occupied type, determining a processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool.
In a possible implementation manner, determining a processing result of the service processing request according to the first number and the number of the remaining objects in the object pool includes:
if the first number is less than or equal to the number of the remaining objects, occupying the first number of objects in the object pool, and determining that the processing result of the service processing request is successful;
and if the first number is larger than the number of the residual objects, determining that the processing result of the service processing request is processing failure.
In a possible implementation manner, determining, according to the at least one object processing request, a first number of objects to be processed and an object type of the object to be processed, which correspond to the service processing request, includes:
determining the number of objects and the types of the objects corresponding to each object processing request;
and determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the number of the objects and the object type corresponding to each object processing request.
In a possible implementation manner, determining, according to the number of objects and the object type corresponding to each object processing request, the first number of objects to be processed and the object type of the object to be processed, which correspond to the service processing request, includes:
determining a second quantity and a third quantity according to the quantity and the type of the objects corresponding to each object processing request, wherein the second quantity is the sum of the quantity of the objects of the occupied type, and the third quantity is the sum of the quantity of the objects of the return type;
and determining the first number of the objects to be processed corresponding to the service processing request and the object type of the objects to be processed according to the second number and the third number.
In a possible implementation manner, determining, according to the second number and the third number, a first number of objects to be processed and an object type of the object to be processed, which correspond to the service processing request, includes:
determining the first number as an absolute value of a difference between the second number and the third number;
if the second quantity is larger than the third quantity, determining that the object type of the object to be processed is an occupied type;
and if the second quantity is smaller than the third quantity, determining that the object type of the object to be processed is a return type.
In one possible embodiment, the method further comprises:
acquiring a service updating request, wherein the service updating request is used for canceling or changing a last service processing request;
when the last service processing request is processed, determining at least one object processing request in the service updating request;
determining a fourth number of objects to be processed and an object type of the objects to be processed, which correspond to the service updating request, according to the at least one object processing request;
and processing the service updating request according to the fourth quantity and the object type.
In one possible embodiment, determining at least one object handling request in the service update request includes:
when the service updating request is used for canceling the last service processing request, the object processing request in the service updating request is opposite to the object processing request in the last service processing request;
when the service update request is used for changing the last service processing request, the service update request comprises an object processing request opposite to the object processing request in the last service processing request and an object processing request for changing the service.
In a possible implementation manner, after determining a processing result of the service processing request, the method further includes:
sending a processing result of the service processing request to a client; alternatively, the first and second electrodes may be,
and displaying the processing result of the service processing request.
In one possible implementation, the method is applied to an object system, wherein the object system comprises a business system and a management and control system;
performing service preprocessing on the at least one object processing request, including:
performing service preprocessing on the at least one object processing request through the service system;
determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the at least one object processing request, including:
determining, by the management and control system, a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request;
determining a processing result of the service processing request according to the first quantity and the object type, wherein the processing result comprises:
and determining a processing result of the service processing request according to the first quantity and the object type through the management and control system.
In a possible implementation manner, the service system sequentially obtains a first service processing request and a second service processing request, and after the service system completes the preprocessing of all object processing requests in the first service processing request, the service system preprocesses all object processing requests in the second service processing request.
In one possible embodiment, the method further comprises:
at a preset moment, determining the number of the fifth objects left in the object pool and the resource occupation details of all services in a preset time period through the management and control system;
and sending the fifth object number and the resource occupation details of all services in a preset time period to the service system through the management and control system.
In one possible embodiment, the object processing request is a loan request or a repayment request, and the object pool is a fund pool, wherein,
the loan request is used for requesting to deduct the credit amount in the fund pool;
the repayment request is for requesting a credited amount to be returned in the fund pool.
In a second aspect, an embodiment of the present application provides a service processing apparatus, where the apparatus includes a first obtaining module, a processing module, a first determining module, and a second determining module, where:
the first obtaining module is configured to obtain at least one service processing request, where each service processing request includes at least one object processing request, and the object processing request is used to request to occupy an object in an object pool or return the object to the object pool;
the processing module is used for carrying out service preprocessing on the at least one object processing request;
the first determining module is configured to determine, according to the at least one object processing request, a first number of objects to be processed and an object type of the objects to be processed, where the first number of objects to be processed and the object type are corresponding to the service processing request, and the object type is an occupation type or a return type;
and the second determining module is used for determining the processing result of the service processing request according to the first quantity and the object type if the processing result of the service preprocessing is successful.
In a possible implementation manner, the second determining module is specifically configured to:
if the object type is the return type, determining that the processing result of the service processing request is successful, and adding the first number of objects in the object pool;
and if the object type is an occupied type, determining a processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool.
In a possible implementation manner, the second determining module is specifically configured to:
if the first number is less than or equal to the number of the remaining objects, occupying the first number of objects in the object pool, and determining that the processing result of the service processing request is successful;
and if the first number is larger than the number of the residual objects, determining that the processing result of the service processing request is processing failure.
In a possible implementation manner, the first determining module is specifically configured to:
determining the number of objects and the types of the objects corresponding to each object processing request;
and determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the number of the objects and the object type corresponding to each object processing request.
In a possible implementation manner, the first determining module is specifically configured to:
determining a second quantity and a third quantity according to the quantity and the type of the objects corresponding to each object processing request, wherein the second quantity is the sum of the quantity of the objects of the occupied type, and the third quantity is the sum of the quantity of the objects of the return type;
and determining the first number of the objects to be processed corresponding to the service processing request and the object type of the objects to be processed according to the second number and the third number.
In a possible implementation manner, the first determining module is specifically configured to:
determining the first number as an absolute value of a difference between the second number and the third number;
if the second quantity is larger than the third quantity, determining that the object type of the object to be processed is an occupied type;
and if the second quantity is smaller than the third quantity, determining that the object type of the object to be processed is a return type.
In another possible implementation, the apparatus further includes a second obtaining module, configured to:
acquiring a service updating request, wherein the service updating request is used for canceling or changing a last service processing request;
determining at least one object processing request in the service updating request;
determining a fourth number of objects to be processed and an object type of the objects to be processed, which correspond to the service updating request, according to the at least one object processing request;
and processing the service updating request according to the fourth quantity and the object type.
In a possible implementation manner, the second obtaining module is specifically configured to:
determining at least one object handling request in the service update request, including:
when the service updating request is used for canceling the last service processing request, the object processing request in the service updating request is opposite to the object processing request in the last service processing request;
when the service update request is used for changing the last service processing request, the service update request comprises an object processing request opposite to the object processing request in the last service processing request and an object processing request for changing the service.
In another possible implementation, the apparatus further includes a sending module, where the sending module is configured to:
sending a processing result of the service processing request to a client; alternatively, the first and second electrodes may be,
and displaying the processing result of the service processing request.
In one possible implementation, the method is applied to an object system, wherein the object system comprises a business system and a management and control system;
performing service preprocessing on the at least one object processing request, including:
performing service preprocessing on the at least one object processing request through the service system;
determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the at least one object processing request, including:
determining, by the management and control system, a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request;
determining a processing result of the service processing request according to the first quantity and the object type, wherein the processing result comprises:
and determining a processing result of the service processing request according to the first quantity and the object type through the management and control system.
In another possible implementation manner, the sending module is further configured to:
at a preset moment, determining the number of the fifth objects left in the object pool and the resource occupation details of all services in a preset time period through the management and control system;
and sending the fifth object number and the resource occupation details of all services in a preset time period to the service system through the management and control system.
In one possible embodiment, the object processing request is a loan request or a repayment request, and the object pool is a fund pool, wherein,
the loan request is used for requesting to deduct the credit amount in the fund pool;
the repayment request is for requesting a credited amount to be returned in the fund pool.
In a third aspect, an embodiment of the present application provides a service processing device, including: a processor, a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to cause the processor to perform the business process method of any one of the first aspects.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the service processing method according to any one of the first aspect.
In a fifth aspect, the present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the business processing method according to any of the preceding claims.
The embodiment of the application provides a service processing method, a service processing device and service processing equipment, wherein the service processing request is obtained and comprises at least one object processing request, the object processing request is used for requesting to occupy an object in an object pool or return the object to the object pool, the at least one object processing request is subjected to service preprocessing, a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, are determined according to the at least one object processing request, the object type is an occupation type or a return type, and if the processing result of the service preprocessing is preprocessing success, the processing result of the service processing request is determined according to the first number and the object type. In the above method, when at least one service processing request is obtained, the service system may perform service preprocessing on all object processing requests in each service processing request, and determine a first number and an object type of objects to be processed corresponding to the service processing request, so that when the service system receives multiple service processing requests, or when multiple service systems need to obtain a quota control result of the service processing request in the management and control system at the same time, the service system may preferentially process the service processing requests, so as to improve the efficiency of service processing, and after the service preprocessing succeeds, determine a processing result of the service processing request according to the first number and the object type, because the service preprocessing precedes the processing result of the service processing request, when the processing result of the service processing request is obtained, the service has been successfully processed in the service system, therefore, the timeliness of service processing can be improved.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a service processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of contents included in a service processing request according to an embodiment of the present application;
FIG. 4 is a schematic diagram of determining a first quantity and an object type according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of a service update processing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for synchronizing the number of objects according to an embodiment of the present disclosure;
fig. 7A is a schematic view of an interaction process between a business system and a management and control system according to an embodiment of the present application;
fig. 7B is an interaction diagram of another business system and management and control system provided in the embodiment of the present application;
fig. 8 is a schematic process diagram of a service processing method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another service processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of a service processing device provided in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the related art, when the service system receives a service request, it determines whether to process the service request according to an amount management and control result corresponding to the service request, but when the service system receives a plurality of service requests, the service system needs to determine an amount management and control result of each service request before processing the service, and the amount management and control is batch processing, for example, when receiving a plurality of requests for amount management and control, the service system can process the amount management and control uniformly, and then obtain a plurality of amount management and control results. Therefore, the waiting time of a plurality of services is longer, and the timeliness of service processing is poorer.
In order to solve the technical problem of poor timeliness of service processing in the related art, embodiments of the present application provide a method for service processing, where at least one service processing request is obtained, each service processing request includes at least one object processing request, the at least one object processing request is subjected to service preprocessing, a padding result and an object type of the at least one object processing request are determined, and when the service preprocessing is finished, a processing result of the service processing request is determined according to the padding result and the object type of the at least one object processing request. Thus, by performing the difference processing on all the object processing requests in the service processing requests, a difference result and an object type (occupation or return) are obtained, when the object type is the occupation type, the difference result is occupied in the service entry stage, when the object type is the return type, the difference result is returned in the service review stage, so as to improve the accuracy and efficiency of the service processing, and when the service system receives a plurality of service processing requests, or a plurality of service systems simultaneously need to obtain the quota control result of the service processing request in the control system, the service system can preferentially preprocess the service processing request, and after the service preprocessing succeeds, the processing result of the service processing request is determined according to the first quantity and the object type, because the service preprocessing is before the processing result of the service processing request is determined, when the processing result of the service processing request is obtained, the service is successfully processed in the service system, so that the timeliness of service processing can be improved.
Next, an application scenario of the embodiment of the present application is described with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. Please refer to fig. 1, which includes: client and terminal equipment. The client sends a service processing request to the terminal equipment, wherein the service processing request comprises at least one object processing request. The terminal equipment performs service preprocessing on the at least one object processing request, and obtains a first number and an object type of the objects to be processed according to the at least one object processing request. For example, the terminal device determines the first number and the object type of the objects to be processed according to all the object processing requests in the service processing requests. And when the service preprocessing is successful, the terminal equipment determines the processing result of the service processing request according to the first quantity and the object type. Therefore, when the terminal equipment receives a plurality of service processing requests, the terminal equipment can pre-process the object processing request in the service processing request in advance, and further determine the result of the service processing request when the service pre-processing is successful, so that when the processing result of the service processing request is obtained, the service is successfully processed in the service system, the waiting time of the service processing requests is saved, and the timeliness of the service processing can be improved.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may exist alone or in combination with each other, and description of the same or similar contents is not repeated in different embodiments.
Fig. 2 is a schematic flow chart of a service processing method according to an embodiment of the present application. Referring to fig. 2, the method may include:
s201, at least one service processing request is obtained.
The execution main body of the embodiment of the application may be a terminal device, and may also be a service processing apparatus arranged in the terminal device. Wherein the service processing means may be implemented by a combination of software and/or hardware. Optionally, the terminal device is any device having a data processing function. For example, the terminal device may be a mobile phone, a computer, or the like.
The service processing request comprises at least one object processing request. For example, the service processing request may include 1 object processing request, or may include a plurality of object processing requests. The object handling request is for requesting that an object be taken up in an object pool or returned to the object pool. Optionally, the object pool is used for storing objects. Alternatively, the object may be funds, goods, virtual items, and the like.
Optionally, the object processing request is a loan request or a repayment request, and the object pool is a fund pool. Wherein the loan request is for requesting a loan in the fund pool and the repayment request is for repayment in the fund pool. For example, the object pool may be a fund pool of a bank, in which loans or repayment may be made according to the object processing request. Optionally, the object pool is a fund pool for applying for the quota by the risk subject. For example, if the business is a real estate loan business, the risk subject is a client applying for loan, and the object pool is a fund pool for applying for the amount of the client.
Optionally, occupying the object in the object pool is to reduce the number of objects in the object pool. For example, the number of objects occupied by the service processing request in the object pool is equal to the number of objects reduced in the object pool after the service processing is completed. For example, the object is fund, and the amount occupied by the business processing request in the fund pool is equal to the amount reduced in the fund pool after the business processing is completed. Optionally, when the object processing request is used to occupy the object in the object pool, the object processing request includes the number of occupied objects. For example, if the amount of funds in the fund pool is 100 ten thousand dollars, if 20 ten thousand dollars are occupied in the fund pool, the remaining amount in the fund pool is 80 ten thousand dollars.
Returning objects to the pool of objects increases the number of objects in the pool of objects. For example, the number of objects returned to the object pool by the business processing request is equal to the number of objects added to the object pool after the business processing is completed. For example, when the object is fund, the amount of fund returned to the fund pool by the business processing request is equal to the amount of fund added in the fund pool after the business processing is completed. Optionally, when the object processing request is used to return the objects to the object pool, the number of the returned objects is included in the object processing request. For example, if the amount of funds in the fund pool is 100 ten thousand dollars, the amount of funds in the fund pool is 120 ten thousand dollars after 20 ten thousand dollars are returned to the fund pool.
Optionally, the service processing request may include an object processing request for occupying an object in the object pool. For example, where the object pool is a fund pool, each of the business process requests is for occupying funds in the fund pool. For example, when the object pool is a fund pool, the business processing request includes an object processing request a and an object processing request B, the object processing request a is used for occupying 20 ten thousand yuan in the fund pool, and the object processing request B is used for occupying 50 ten thousand yuan in the fund pool.
Optionally, the service processing request may include an object processing request for returning the object to the object pool. For example, where the object pool is a fund pool, each of the business process requests is used to return funds in the fund pool. For example, when the object pool is a fund pool, the business processing request includes an object processing request a and an object processing request B, the object processing request a is used for returning 20 ten thousand yuan to the fund pool, and the object processing request B is used for returning 50 ten thousand yuan to the fund pool.
Optionally, the service processing request may include an object processing request for occupying an object in the object pool and an object processing request for returning the object to the object pool. For example, when the object pool is a fund pool, the business processing request includes an object processing request for occupying funds in the fund pool and an object processing request for returning funds to the fund pool. For example, when the object pool is a fund pool, the business processing request includes an object processing request a and an object processing request B, the object processing request a is used for returning 20 ten thousand yuan to the fund pool, and the object processing request B is used for occupying 50 ten thousand yuan in the fund pool. In the actual application process, each service processing request includes different requirements, and therefore, the service processing request includes a plurality of object processing requests. For example, when a company requests a plurality of risk entities to share the loan risk in a loan contract when making a loan to a bank, the company takes credit from the plurality of risk entities.
Optionally, the object pool has sub-object pools with different identifiers, and the object processing request further includes an identifier of the sub-object pool, where the identifier of the sub-object pool is used to indicate that the object processing request occupies or returns the sub-object pool corresponding to the object. For example, the object pool includes a sub-object pool a and a sub-object pool B, and if the object processing request a includes an identifier of the sub-object pool a, the object processing request a is used to return the object to the object pool, the object processing request B includes an identifier of the sub-object pool B, and the object processing request B is used to occupy the object in the object pool, the object is added to the sub-object pool a and the object is decreased to the sub-object pool B during the service processing request. For example, the fund pool includes a fund pool a and a fund pool B, the object processing request a is used to occupy 30 ten thousand yuan in the fund pool, the object processing request B is used to return 10 ten thousand yuan to the fund pool, if the object processing request a includes an identifier of the fund pool a and the object processing request B includes an identifier of the fund pool B, during the business processing request processing, 30 ten thousand yuan is decreased in the object pool a and 10 ten thousand yuan is increased in the object pool B.
Optionally, the terminal device may obtain the service processing request in the client. For example, the terminal device may receive a service processing request sent by the client, and process the service according to the service processing request sent by the client.
Optionally, the terminal device may obtain the service processing request according to information input by the user. For example, when a user inputs a service processing request into a terminal device and the terminal device obtains the service processing request, the service may be processed.
The contents of the service processing request will be described below with reference to fig. 3.
Fig. 3 is a schematic diagram of content included in a service processing request according to an embodiment of the present application. See fig. 3, including the service processing request. The business processing request comprises a fund processing request A, a fund processing request B and a fund processing request C. The capital processing request A is that the capital pool A deducts 100 ten thousand yuan, the capital processing request B is that the capital pool A returns 20 ten thousand yuan, and the capital processing request C is that the capital pool A returns 30 ten thousand yuan.
S202, performing service preprocessing on at least one object processing request.
The service preprocessing is the logic processing of the terminal equipment to the object processing request in the service processing request. For example, if the object processing request is used to occupy an object in the object pool, the service preprocessing is to process the object processing request, and reduce the number of objects in the object pool; if the object processing request is used for returning the object to the object pool, the business preprocessing is to process the object processing request, and the number of the objects is increased in the object pool.
Optionally, the service preprocessing includes a service entry stage and a service review stage. And the service entry stage is used for indicating the entry processing of the object processing request in the service processing request. And the service rechecking stage is used for rechecking the recorded result after the processing request in the service processing request is recorded.
S203, according to at least one object processing request, determining a first number of objects to be processed corresponding to the service processing request and an object type of the objects to be processed.
The first quantity is a rolling difference between the quantity of objects corresponding to at least one object processing request in the service processing requests. For example, the service processing request includes an object processing request a and an object processing request B, and if the object processing request a indicates that the number of occupied objects in the object pool is 100, and the object processing request B indicates that the number of objects returned to the object pool is 30, the first number is 70. For example, when the object to be processed is fund, the service processing request includes an object processing request a and an object processing request B, if the object processing request a indicates that the amount of the fund occupied in the fund pool is 100 ten thousand yuan, and the object processing request B indicates that the amount of the fund returned to the fund pool is 80 ten thousand yuan, the first amount of the fund is 20 ten thousand yuan; if object processing request a indicates that the amount of funds occupied in the fund pool is 100 ten thousand dollars and object processing request B indicates that the amount of funds occupied in the fund pool is 50 ten thousand dollars, then the first amount of funds is 150 ten thousand dollars.
The object type is an occupation type or a return type. Optionally, when the object type is an occupied type, the number of objects in the object pool is decreased by a first number, and when the object type is a return type, the number of objects in the object pool is increased by a first number. For example, if the first amount corresponding to the fund is 100 ten thousand yuan and the fund is an occupation type, 100 ten thousand yuan is decreased in the object pool, and if the first amount corresponding to the fund is 100 ten thousand yuan and the fund is a return type, 100 ten thousand yuan is increased in the object pool.
Alternatively, the first number and the object type may be determined according to the following possible implementation: and determining the number of objects and the types of the objects corresponding to each object processing request. Optionally, the number of objects is determined according to the object processing request. For example, the number of occupied or returned objects is included in the object handling request. Optionally, if the object processing request is used to request to occupy the object in the object pool, the object type corresponding to the object processing request is an occupied type, and if the object processing request is used to request to return the object to the object pool, the object type corresponding to the object processing request is a return type. For example, if the object processing request occupies 100 ten thousand yuan in the fund pool, the number of objects corresponding to the object processing request is 100 ten thousand yuan, and the type of the object corresponding to the object processing request is an occupied type; and if the object processing request is 100 ten thousand yuan returned to the fund pool, the number of the objects corresponding to the object processing request is 100 ten thousand yuan, and the object type corresponding to the object processing request is a return type.
And determining the first number of the objects to be processed and the object types of the objects to be processed corresponding to the business processing requests according to the number of the objects and the object types corresponding to each object processing request. Alternatively, the first number and the object type may be determined according to the following possible implementations: and determining the second quantity and the third quantity according to the quantity and the type of the objects corresponding to each object processing request. Wherein the second number is the sum of the number of the objects of the occupation type, and the third number is the sum of the number of the objects of the return type. For example, if the object types of the object processing request a and the object processing request B are occupied types, the number of objects corresponding to the object processing request a is 10 ten thousand yuan, and the number of objects corresponding to the object processing request B is 20 ten thousand yuan, the second number is 30 ten thousand yuan. For example, if the object types of the object processing request a and the object processing request B are return types, the number of objects corresponding to the object processing request a is 40 ten thousand yuan, and the number of objects corresponding to the object processing request B is 10 ten thousand yuan, the third number is 50 ten thousand yuan.
And determining the first number of the objects to be processed and the object type of the objects to be processed corresponding to the service processing request according to the second number and the third number. Optionally, the first number is determined as an absolute value of a difference between the second number and the third number. For example, if the second number is 100 ten thousand and the third number is 50 ten thousand, the first number is 50 ten thousand.
Optionally, if the second number is greater than the third number, it is determined that the object type of the object to be processed is the occupation type, and if the second number is less than the third number, it is determined that the object type of the object to be processed is the return type. For example, if the second number is 100 ten thousand and the third number is 30 ten thousand, the object type of the object to be processed is the occupation type, and if the second number is 30 ten thousand and the third number is 40 ten thousand, the object type of the object to be processed is the return type.
Next, a process of determining the first number of objects to be processed and the object type of the object to be processed corresponding to the service processing request will be described with reference to fig. 4.
Fig. 4 is a schematic diagram of determining a first quantity and an object type according to an embodiment of the present disclosure. Please refer to fig. 4, which includes a service processing request and a terminal device. The business processing request comprises a fund processing request A, a fund processing request B and a fund processing request C. The capital processing request A is that the capital pool A deducts 100 ten thousand yuan, the capital processing request B is that the capital pool A returns 20 ten thousand yuan, and the capital processing request C is that the capital pool A returns 30 ten thousand yuan.
Referring to fig. 4, when the terminal device receives the service processing request, the terminal device determines that the second number is 100 ten thousand yuan and the third number is 50 ten thousand yuan, and the terminal device determines that the first number corresponding to the object to be processed is 50 ten thousand yuan, and since the second number is greater than the third number, the object type corresponding to the object to be processed is the occupation type.
And S204, if the processing result of the service preprocessing is successful, determining the processing result of the service processing request according to the first quantity and the object type.
Optionally, when the service preprocessing is finished, the preprocessing result of the service preprocessing is successful.
Optionally, the service preprocessing includes entry service, recheck cancellation service, and entry cancellation service. In the actual application process, the logging-in service and the rechecking service are forward-going services, and the cancellation of the rechecking service and the cancellation of the logging-in service are reverse-going services. For example, for a service processing request, the service is firstly entered and processed, and after the entered service is completed, the service is rechecked and processed. Optionally, in the resource processing process, if the object type is a return type, the object is returned to the object pool in the service review stage, and if the object type is an occupation type, the object is occupied in the object pool in the service entry stage.
Optionally, when the rechecking service is cancelled and the rechecking service of the previous stage is successfully processed, the object returned to the object pool by the rechecking stage is re-occupied, that is, the state is returned to the entry state.
Optionally, when the entry canceling service is performed and the service processing in the previous stage is successful, the object occupied by the service entry stage in the object pool is cancelled. For example, the loan payment entry transaction has a sum of 1000, the sum is 1000, if the sum of the same loan payment entry transaction is modified from 1000 to 2000, the service request will generate two object processing requests, one is to cancel 1000 occupancy, the other is to occupy 2000, the final result of the netting is 1000, if the loan modification is cancelled, the service request will generate one is to occupy 1000, one is to cancel 2000 occupancy, and the final result of the netting is to return 1000. According to the first quantity and the object type, the following two conditions are determined as the processing result of the service processing request:
case 1: the object type is a return type.
And when the object type is the return type, determining that the processing result of the service processing request is successful, and adding a first number of objects in the object pool. For example, when the object type is the return type, if the first number corresponding to the object to be processed is 100 ten thousand, 100 ten thousand are added to the object pool. For example, when the object type is a return type and the object pool is a fund pool, if the first quantity corresponding to the object to be processed is 100 ten thousand yuan, 100 ten thousand yuan is added to the fund pool. Optionally, when the service preprocessing stage is a service review stage, a first number of objects are added to the object pool. For example, when the business preprocessing is performed on at least one object processing request, if a first number of objects need to be added to the object pool, the first number of objects are added to the object pool when the business preprocessing is in a business review stage. In the service review stage, a first number of objects are added to the object pool, so that the condition that the service cancellation fails due to insufficient objects remaining in the object pool when the service is cancelled can be avoided. For example, when 100 ten thousand yuan is paid to the fund pool, if 100 ten thousand yuan is added to the fund pool in the service entry stage, 100 ten thousand yuan needs to be occupied again in the fund pool when the service is cancelled, and other services in the fund pool occupy the fund in the fund pool, so that when the payment service is cancelled, if the amount of money in the fund pool is less than 100 ten thousand yuan, the payment service cannot be cancelled. Therefore, the efficiency and the accuracy of service processing can be improved, and the condition that the input cancellation cannot be carried out due to the fact that resources are seized when the input cancellation occupies funds in the fund pool can be avoided.
Case 2: the object type is an occupied type.
When the object type of the object to be processed is the occupation type, the processing result of the service processing request can be determined according to the following feasible implementation manner: and determining a processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool. And the residual object quantity in the object pool is the current residual object quantity in the object pool. For example, when the processing result of the business preprocessing is that the preprocessing is successful, if 100 ten thousand yuan remains in the fund pool, the number of the remaining objects is 100 ten thousand yuan.
And if the first number is less than or equal to the residual number of the objects, occupying the first number of the objects in the object pool, and determining that the processing result of the service processing request is successful. And if the first number is larger than the number of the residual objects, determining that the processing result of the service processing request is processing failure. For example, when the object pool is a fund pool, if the first quantity corresponding to the object to be processed is 100 ten thousand yuan and the remaining amount in the fund pool is 50 ten thousand yuan, the processing result of the business processing request is processing failure, and if the first quantity corresponding to the object to be processed is 10 ten thousand yuan and the remaining amount in the fund pool is 50 ten thousand yuan, 10 ten thousand yuan is deducted from the fund pool and the processing result of the business processing request is determined to be processing success, and at this time, the remaining amount in the fund pool is 40 ten thousand yuan.
Optionally, when the processing result of the service processing request is a processing failure, the resource management and control system in the terminal device generates a service processing failure message.
Optionally, when the service preprocessing stage is a service entry stage, the occupation of the first number of objects is increased in the object pool. For example, in the business preprocessing of at least one object processing request, if a first number of objects needs to be occupied in the object pool, the first number of objects is reduced in the object pool during the business entry phase. Therefore, the objects in the object pool can be preempted in advance, and the condition that the number of the objects in the object pool cannot finish the occupation of the shared resources in the process of service processing is avoided. For example, if the remaining amount in the fund pool is 200 ten thousand yuan when the loan is made in the fund pool of 100 ten thousand yuan and the remaining amount in the fund pool is only 80 ten thousand yuan after the completion of the business processing, the loan transaction cannot be completed at this time. Therefore, the efficiency of service processing can be guaranteed to be improved, and the timeliness of service processing can be improved.
Optionally, when the service preprocessing is performed and the entry stage of the service is finished, a result of the resource management and control processing is determined according to the first number of the objects to be processed and the object type, and then whether to perform service recheck is determined. For example, when the service entry stage is finished, if the object type of the object to be processed is the return type, the result of the resource management and control processing is successful, and service recheck may be performed, if the object type of the object to be processed is the occupation type and the first number is less than or equal to the number of the remaining objects, the withholding of the first number is completed in the object pool, and it is determined that the result of the resource management and control processing is successful, and service recheck may be performed, if the object type of the object to be processed is the occupation type and the first number is greater than the number of the remaining objects, the result of the resource management and control processing is failed, and service recheck cannot be performed, and service recheck may be continued only after the number of the objects in the object pool is increased to complete withholding of the first number of objects. Therefore, the efficiency and the accuracy of service processing can be improved.
Optionally, after determining the processing result of the service processing request, the terminal device may send the processing result of the service processing request to the client, or the terminal device displays the processing result of the service processing request. For example, when the processing result of the service processing request is processing failure, the terminal device may send a message that the service processing fails to the client that sent the service processing request. For example, when the processing result of the service processing request is that the processing is successful, the terminal device may display a message that the service processing is successful in the screen.
The embodiment of the application provides a service processing method, which includes obtaining service processing requests including at least one object processing request, performing service preprocessing on the at least one object processing request, determining the number of objects and the type of the objects corresponding to each object processing request, determining a second number and a third number according to the number of the objects and the type of the objects, wherein the second number is the sum of the number of the objects in an occupation type, the third number is the sum of the number of the objects in a recovery type, the first number is the absolute value of the difference between the second number and the third number, when the second number is greater than the third number, the type of the object to be processed is determined to be the occupation type, when the second number is less than the third number, the type of the object to be processed is determined to be the recovery type, when the processing result of the service preprocessing is successful, if the type of the object is the recovery type, and if the object type is the occupation type, determining the processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool. In the method, when the terminal device obtains the service processing request, the terminal device may directly perform service preprocessing on the object processing request in the service processing request, and determine the first number and the object type of the object to be processed corresponding to the service processing request, and when the service preprocessing is successful, determine whether the processing result of the service processing request is successful according to the first number and the object type, so that the offset processing is performed on all the object processing requests included in the service processing request, which may improve the efficiency and the accuracy of the service processing, and when the processing result of the service processing request is obtained, the service has been successfully processed in the terminal device, which saves the waiting time of a plurality of service processing requests, so that the timeliness of the service processing may be improved.
Based on the embodiment shown in fig. 2, the following describes in detail the service update process of the service processing method with reference to fig. 5.
Fig. 5 is a flowchart illustrating a service update processing method according to an embodiment of the present application. Referring to fig. 5, the method includes:
s501, acquiring a service updating request.
The service update request is used for canceling or modifying the last service processing request.
S502, when the last service processing request processing is completed, at least one object processing request in the service updating request is determined.
Optionally, at least one object processing request in the service update request is determined, and the following two cases are provided:
case 1: the service update request is used for canceling the last service processing request.
When the service update request is used for canceling the last service processing request, the object processing request in the service update request is opposite to the object processing request in the last service processing request. For example, if the object processing request in the last business processing request occupies 10 ten thousand yuan in the fund pool, the object processing request in the business updating request returns 10 ten thousand yuan to the fund pool.
Case 2: the service update request is used to modify the last service processing request.
When the service updating request is used for changing the last service processing request, acquiring an object processing request corresponding to the changed service, and determining that the service updating request comprises an object processing request opposite to the object processing request in the last service processing request and an object processing request corresponding to the changed service. For example, if the object processing request in the last service processing request occupies 10 ten thousand yuan in the fund pool and the object processing request corresponding to the change service occupies 50 ten thousand yuan in the fund pool, the object processing request included in the service update request is 10 ten thousand yuan returned in the fund pool and 50 ten thousand yuan occupied in the fund pool. For example, the loan payment entry transaction has a sum of 1000, the sum is 1000, if the sum of the same loan payment entry transaction is modified from 1000 to 2000, the service request will generate two object processing requests, one is to cancel 1000 occupancy, the other is to occupy 2000, the final result of the netting is 1000, if the loan modification is cancelled, the service request will generate one is to occupy 1000, one is to cancel 2000 occupancy, and the final result of the netting is to return 1000.
S503, according to at least one object processing request, determining a fourth number of the objects to be processed corresponding to the service updating request and an object type of the objects to be processed.
Alternatively, the fourth number and the object type may be determined according to the following feasible implementation: determining the rolling difference results of all the object processing requests in the service updating request, and determining the fourth quantity and the object type according to the rolling difference results. For example, if the service update request includes two object processing requests, i.e., 10 ten thousand objects are occupied in the fund pool and 20 ten thousand objects are returned to the fund pool, the result of the netting is to return 10 ten thousand objects to the fund pool, at this time, the fourth quantity is 10 ten thousand objects, and the object type is a return type.
And S504, processing the service updating request according to the fourth quantity and the object type.
Optionally, if the object type is an occupation type, a fourth number of objects are occupied in the object pool, and if the object type is a return type, the fourth number of objects are returned in the object pool.
Optionally, the fourth number of objects are re-occupied in the terminal device object pool, and a result of the service update request is determined according to the number of remaining objects in the object pool and the fourth number. For example, the fund in the fund pool is 100 ten thousand yuan, the service processing request returns 50 ten thousand yuan to the fund pool, when the service preprocessing is finished, the remaining amount in the fund pool is 150 ten thousand yuan, if the terminal device receives the service updating request for canceling the last service processing, 50 ten thousand yuan is re-occupied in the fund pool, the fund pool is 100 ten thousand yuan, and at this time, the service updating request is successful. For example, the fund in the fund pool is 10 ten thousand yuan, the business processing request returns 40 ten thousand yuan to the fund pool, when the business preprocessing is finished, the fund pool is 50 ten thousand yuan, if other business processing requests occupy 30 ten thousand yuan in the fund pool and the remaining amount of money in the fund pool is 20 ten thousand yuan at this time, when the terminal device receives a business updating request for canceling the last business processing, 40 ten thousand yuan cannot be occupied in the fund pool again (the remaining 20 ten thousand yuan in the fund pool is not enough), and at this time, the business updating request fails.
Optionally, if there is a previous service processing request and it is not processed, an error is prompted, and if there is no previous service request processing, no processing is performed and a return is directly made. Optionally, after determining the processing result of the service update request, the terminal device may send the processing result of the service update request to the client, or the terminal device displays the processing result of the service update request. For example, when the processing result of the service update request is a cancellation failure, the terminal device may send a message that the service cancellation failure occurs to the client that sent the service update request. For example, when the processing result of the service update request is that the cancellation is successful, the terminal device may display a message that the service cancellation is successful in the screen.
The embodiment of the application provides a service processing method, which includes obtaining a service update request, where the service update request is used to cancel or modify a last service processing request, determining at least one object processing request in the service update request when the last service processing request is processed, determining a fourth number of objects to be processed and an object type of the objects to be processed, which correspond to the service update request, according to the at least one object processing request, and processing the service update request according to the fourth number and the object type. In the method, when a service processing request is cancelled, if the last service processing request exists and is not processed, an error is prompted, if the last service processing request does not exist, no processing is performed, and the object processing request included in the service updating request is determined and the fourth quantity and the object type are determined according to all the object processing requests when the service processing request is processed, so that the service updating request is processed according to the difference result of all the object processing requests in the service updating request.
Any one of the above embodiments is applied to an object system, wherein the object system includes a business system and a management and control system. The management and control system is used for acquiring the service processing request, determining a first quantity of objects to be processed and object types of the objects to be processed corresponding to the service processing request according to at least one object processing request, determining a processing result of the service processing request according to the first quantity and the object types, and the service system is used for performing service preprocessing on at least one object processing request. The business processing method also comprises the process of synchronizing the management and control system and the number of the objects of the business system.
Next, a process of synchronizing the number of objects of the management and control system and the business system is described with reference to fig. 6.
Fig. 6 is a flowchart illustrating a method for synchronizing the number of objects according to an embodiment of the present application. Referring to fig. 6, the method includes:
s601, at a preset time, determining the number of the fifth objects left in the object pool and the occupation details of all the service resources in a preset time period through the management and control system.
Optionally, a period of a preset time may be preset, and the number of the fifth objects remaining in the object pool is determined at the preset time according to the preset period. For example, at 5 pm each day, the fifth number of objects remaining in the object pool is determined by the governing system. And the fifth object number is the number of the remaining objects in the object pool. The occupancy details of the business resources are the number of objects occupied or returned in the fund pool for each object processing request.
And S602, sending the fifth object number and the resource occupation details of all services in a preset time period to a service system through a management and control system.
Optionally, when the service system obtains multiple service processing requests, the service system may perform preprocessing on the multiple service processing requests in sequence. For example, the service system sequentially acquires a first service processing request and a second service processing request, and after the service system completes preprocessing of all object processing requests in the first service processing request, the service system preprocesses all object processing requests in the second service processing request.
Optionally, the object system may include a plurality of business systems. In the actual application process, each service system independently performs service preprocessing, so that the fifth object number needs to be sent to the service system through the management and control system. For example, in an initial stage, the business system a determines that 100 ten thousand remain in the fund pool a, the business system B determines that 100 ten thousand remain in the fund pool a, if 30 ten thousand yuan is transacted in the fund pool a through the business system a, and 20 ten thousand yuan is transacted in the fund pool a through the business system B, the business system a determines that the remaining amount of the fund pool a is 70 ten thousand yuan, the business system B determines that the remaining amount of the fund pool a is 80 ten thousand yuan, but the actual remaining amount of the fund pool a is 50 ten thousand yuan, at this time, information of the remaining 50 ten thousand yuan in the fund pool a can be sent to the business system a and the business system B through the management and control system, the business system a adjusts the remaining amount of the fund pool a to 50 ten thousand yuan, and the business system B adjusts the remaining amount of the fund pool a to 50 ten thousand yuan. Therefore, the service system updates the number of the residual resources in the system according to the received fifth object number, checks the received resource occupation details with the local resource occupation details of the service system simultaneously according to the received resource occupation details, and updates and perfects the resource occupation conditions in the management and control system according to the check result so as to ensure the final consistency of data between the service system and the management and control system and further improve the service processing accuracy.
Next, the interaction process between the business system and the management and control system will be described with reference to fig. 7A to 7B.
Fig. 7A is a schematic view of an interaction process between a business system and a management and control system according to an embodiment of the present application. In the actual application process, the object system may include a plurality of service systems, the plurality of service systems may interact with the management and control system at the same time, and for the process of any one service system interacting with the management and control system, please refer to fig. 7A, which includes a service system and a management and control system, and the service system includes a service entry stage and a service review stage in the service processing process. The method comprises the steps that a business system obtains a business processing request, the business system performs entry processing on the business processing request and sends a resource processing flow of a business processing request entry stage to a management and control system, when the management and control system receives the resource processing flow of the business processing request entry stage, the management and control system determines that a difference result of the resource processing flow of the business processing request entry stage is a return object, the management and control system sends a resource management and control pass of the business processing request to the business system, and the business system receives and stores information of the resource management and control pass of the business processing request.
Referring to fig. 7A, the service system performs a rechecking process on the service processing request (after the management and control result of the service processing passes through, the service rechecking process may be performed), and sends the resource processing flow of the service processing request rechecking stage to the management and control system, and the management and control system returns the object to the object pool in the service rechecking stage. Therefore, when a plurality of service systems request to acquire resources, the problems that when the resources are actually used due to the fact that the resources of some service systems are insufficient compared with expected allocation and the resources of some service systems are excessive compared with the expected allocation when the resources are segmented to all the service systems in advance can be avoided, and efficient utilization of shared resources is achieved.
Optionally, if the running difference result of the resource processing flow at the service processing request entry stage is an occupied object, the management and control system occupies the object in the object pool at the service processing request entry stage.
Fig. 7B is an interaction diagram of another business system and management and control system provided in the embodiment of the present application. The service system includes a service cancellation rechecking stage and a service cancellation entry stage in the service processing process, please refer to fig. 7B, which includes a service system and a management and control system. When the service system processes the service of the rechecking canceling stage, the service system determines whether the rechecking stage corresponding to the service processing request is successfully processed, when the rechecking stage is successfully processed, the rechecking canceling processing is carried out on the service processing request, the resource processing flow of the service processing request for the rechecking canceling is sent to the management and control system, the management and control system receives the resource processing flow of the service processing request for the rechecking canceling, the difference result of the resource processing flow of the rechecking canceling is determined to be an occupied object, the management and control system successfully occupies the object in the object pool, and the service processing request is sent to the service system for the rechecking canceling.
Referring to fig. 7B, after the service system receives the service processing request, the service system may cancel entry of the service processing request, and send a resource processing flow in which the service processing request is canceled to the management and control system, and when the management and control system receives the resource processing flow in which the service processing request is canceled, all the objects related to the service are canceled in the object pool, and send information that the service processing request is canceled and entered successfully to the service system.
On the basis of any of the above embodiments, the following describes in detail the process of the service processing method with reference to fig. 8.
Fig. 8 is a process schematic diagram of a service processing method according to an embodiment of the present application. See fig. 8, including the service processing request. The business processing request comprises a fund processing request A, a fund processing request B and a fund processing request C. The capital processing request A is that the capital pool A deducts 100 ten thousand yuan, the capital processing request B is that the capital pool A returns 20 ten thousand yuan, and the capital processing request C is that the capital pool A returns 30 ten thousand yuan.
Referring to fig. 8, the fund processing request a, the fund processing request B, and the fund processing request C are subjected to service preprocessing, and the second quantity is 100 ten thousand yuan and the third quantity is 50 ten thousand yuan, according to "deduct 100 ten thousand yuan", "reduce 20 ten thousand yuan", and "reduce 30 ten thousand yuan". And determining that the first number is 50 ten thousand yuan according to the second number and the third number, wherein the object type corresponding to the object to be processed is an occupation type because the second number is greater than the third number.
Referring to fig. 8, when the business preprocessing of the fund processing request a, the fund processing request B, and the fund processing request C is successful, if the remaining amount in the fund pool a is greater than 50 ten thousand yuan, the processing result of the business processing request is successful, and if the remaining amount in the fund pool a is less than 50 ten thousand yuan, the processing result of the business processing request is processing failure. Therefore, when the terminal equipment receives the service processing request, at least one object processing request can be preprocessed in advance, before the processing result of the service processing request is obtained, the final occupation/return condition is obtained by carrying out offset processing on all the object processing requests contained in the service processing request, and the opportunity of resource processing is determined according to the occupation/return type (occupation is carried out as soon as possible during recording, and return is delayed to a rechecking stage), so that the efficiency, the accuracy and the timeliness of service processing are improved.
Fig. 9 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application. The service processing apparatus 10 may be provided in a terminal device. Referring to fig. 9, the service processing apparatus 10 may include a first obtaining module 11, a processing module 12, a first determining module 13, and a second determining module 14, where:
the first obtaining module 11 is configured to obtain at least one service processing request, where each service processing request includes at least one object processing request, and the object processing request is used to request to occupy an object in an object pool or return the object to the object pool;
the processing module 12 is configured to perform service preprocessing on the at least one object processing request;
the first determining module 13 is configured to determine, according to the at least one object processing request, a first number of objects to be processed and an object type of the objects to be processed, where the first number of objects to be processed corresponds to the service processing request, and the object type is an occupation type or a return type;
the second determining module 14 is configured to determine, if the processing result of the service preprocessing is successful, the processing result of the service processing request according to the first number and the object type.
In a possible implementation, the second determining module 14 is specifically configured to:
if the object type is the return type, determining that the processing result of the service processing request is successful, and adding the first number of objects in the object pool;
and if the object type is an occupied type, determining a processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool.
In a possible implementation, the second determining module 14 is specifically configured to:
if the first number is less than or equal to the number of the remaining objects, occupying the first number of objects in the object pool, and determining that the processing result of the service processing request is successful;
and if the first number is larger than the number of the residual objects, determining that the processing result of the service processing request is processing failure.
In a possible implementation manner, the first determining module 13 is specifically configured to:
determining the number of objects and the types of the objects corresponding to each object processing request;
and determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the number of the objects and the object type corresponding to each object processing request.
In a possible implementation manner, the first determining module 13 is specifically configured to:
determining a second quantity and a third quantity according to the quantity and the type of the objects corresponding to each object processing request, wherein the second quantity is the sum of the quantity of the objects of the occupied type, and the third quantity is the sum of the quantity of the objects of the return type;
and determining the first number of the objects to be processed corresponding to the service processing request and the object type of the objects to be processed according to the second number and the third number.
In a possible implementation manner, the first determining module 13 is specifically configured to:
determining the first number as an absolute value of a difference between the second number and the third number;
if the second quantity is larger than the third quantity, determining that the object type of the object to be processed is an occupied type;
and if the second quantity is smaller than the third quantity, determining that the object type of the object to be processed is a return type.
The service processing apparatus provided in the embodiment of the present application may execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
The service processing device shown in the embodiment of the present application may be a chip, a hardware module, a processor, and the like. Of course, the service processing device may have other forms, and this embodiment of the present application is not particularly limited thereto.
Fig. 10 is a schematic structural diagram of another service processing apparatus according to an embodiment of the present application. In addition to the embodiment shown in fig. 9, please refer to fig. 10. The service processing apparatus 10 further includes: a second obtaining module 15, where the second obtaining module 15 is configured to:
acquiring a service updating request, wherein the service updating request is used for canceling or changing a last service processing request;
determining at least one object processing request in the service updating request;
determining a fourth number of objects to be processed and an object type of the objects to be processed, which correspond to the service updating request, according to the at least one object processing request;
and processing the service updating request according to the fourth quantity and the object type.
In a possible implementation manner, the second obtaining module is specifically configured to:
when the service updating request is used for canceling the last service processing request, the object processing request in the service updating request is opposite to the object processing request in the last service processing request;
when the service update request is used for changing the last service processing request, the service update request comprises an object processing request opposite to the object processing request in the last service processing request and an object processing request for changing the service.
In another possible embodiment, the apparatus further includes a sending module 16, where the sending module 16 is configured to:
sending a processing result of the service processing request to a client; alternatively, the first and second electrodes may be,
and displaying the processing result of the service processing request.
In one possible implementation, the method is applied to an object system, wherein the object system comprises a business system and a management and control system;
performing service preprocessing on the at least one object processing request, including:
performing service preprocessing on the at least one object processing request through the service system;
determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the at least one object processing request, including:
determining, by the management and control system, a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request;
determining a processing result of the service processing request according to the first quantity and the object type, wherein the processing result comprises:
and determining a processing result of the service processing request according to the first quantity and the object type through the management and control system.
In a possible implementation manner, the service system sequentially obtains a first service processing request and a second service processing request, and after the service system completes the preprocessing of all object processing requests in the first service processing request, the service system preprocesses all object processing requests in the second service processing request.
In another possible implementation, the sending module 16 is further configured to:
at a preset moment, determining the number of the fifth objects left in the object pool and the resource occupation details of all services in a preset time period through the management and control system;
and sending the fifth object number and the resource occupation details of all services in a preset time period to the service system through the management and control system.
In one possible embodiment, the object processing request is a loan request or a repayment request, and the object pool is a fund pool, wherein,
the loan request is used for requesting to deduct the credit amount in the fund pool;
the repayment request is for requesting a credited amount to be returned in the fund pool.
The service processing apparatus provided in the embodiment of the present application may execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
The service processing device shown in the embodiment of the present application may be a chip, a hardware module, a processor, and the like. Of course, the service processing device may have other forms, and this embodiment of the present application is not particularly limited thereto.
Fig. 11 is a schematic hardware structure diagram of a service processing device provided in the present application. Referring to fig. 11, the service processing device 20 may include: a processor 21 and a memory 22, wherein the processor 21 and the memory 22 may communicate; illustratively, the processor 21 and the memory 22 communicate via a communication bus 23, the memory 22 is configured to store program instructions, and the processor 21 is configured to call the program instructions in the memory to execute the service processing method according to any of the above-described method embodiments.
Optionally, the service processing device 20 may further include a communication interface, which may include a transmitter and/or a receiver.
Optionally, the Processor may be a Central Processing Unit (CPU), or may be another general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
A readable storage medium having a computer program stored thereon; the computer program is configured to implement a service processing method as described in any of the above embodiments.
The embodiment of the application provides a computer program product, which comprises instructions, and when the instructions are executed, the instructions cause a computer to execute the service processing method.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable terminal device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable terminal equipment to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable terminal device to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.
In the present application, the terms "include" and variations thereof may refer to non-limiting inclusions; the term "or" and variations thereof may mean "and/or". The terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. In the present application, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

Claims (17)

1. A method for processing a service, comprising:
acquiring at least one service processing request, wherein each service processing request comprises at least one object processing request, and the object processing request is used for requesting to occupy an object in an object pool or return the object to the object pool;
performing service preprocessing on the at least one object processing request;
determining a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request, wherein the object type is an occupation type or a return type;
and if the processing result of the service preprocessing is successful, determining the processing result of the service processing request according to the first quantity and the object type.
2. The method of claim 1, wherein determining a processing result for the business process request based on the first number and the object type comprises:
if the object type is the return type, determining that the processing result of the service processing request is successful, and adding the first number of objects in the object pool;
and if the object type is an occupied type, determining a processing result of the service processing request according to the first quantity and the quantity of the remaining objects in the object pool.
3. The method of claim 2, wherein determining the processing result of the business processing request according to the first number and the number of objects remaining in the object pool comprises:
if the first number is less than or equal to the number of the remaining objects, occupying the first number of objects in the object pool, and determining that the processing result of the service processing request is successful;
and if the first number is larger than the number of the residual objects, determining that the processing result of the service processing request is processing failure.
4. The method according to any one of claims 1 to 3, wherein determining, according to the at least one object processing request, a first number of objects to be processed corresponding to the service processing request and an object type of the objects to be processed includes:
determining the number of objects and the types of the objects corresponding to each object processing request;
and determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the number of the objects and the object type corresponding to each object processing request.
5. The method of claim 4, wherein determining the first number of the to-be-processed objects and the object types of the to-be-processed objects corresponding to the business processing request according to the number of the objects and the object types corresponding to each object processing request comprises:
determining a second quantity and a third quantity according to the quantity and the type of the objects corresponding to each object processing request, wherein the second quantity is the sum of the quantity of the objects of the occupied type, and the third quantity is the sum of the quantity of the objects of the return type;
and determining the first number of the objects to be processed corresponding to the service processing request and the object type of the objects to be processed according to the second number and the third number.
6. The method according to claim 5, wherein determining the first number of the to-be-processed objects and the object type of the to-be-processed objects corresponding to the service processing request according to the second number and the third number comprises:
determining the first number as an absolute value of a difference between the second number and the third number;
if the second quantity is larger than the third quantity, determining that the object type of the object to be processed is an occupied type;
and if the second quantity is smaller than the third quantity, determining that the object type of the object to be processed is a return type.
7. The method according to any one of claims 1-6, further comprising:
acquiring a service updating request, wherein the service updating request is used for canceling or changing a last service processing request;
when the last service processing request is processed, determining at least one object processing request in the service updating request;
determining a fourth number of objects to be processed and an object type of the objects to be processed, which correspond to the service updating request, according to the at least one object processing request;
and processing the service updating request according to the fourth quantity and the object type.
8. The method of claim 7, wherein determining at least one object handling request in the service update request comprises:
when the service updating request is used for canceling the last service processing request, the object processing request in the service updating request is opposite to the object processing request in the last service processing request;
when the service update request is used for changing the last service processing request, the service update request comprises an object processing request opposite to the object processing request in the last service processing request and an object processing request for changing the service.
9. The method according to any of claims 1-8, further comprising, after determining a processing result of the service processing request:
sending a processing result of the service processing request to a client; alternatively, the first and second electrodes may be,
and displaying the processing result of the service processing request.
10. The method according to any one of claims 1 to 9, wherein the method is applied to an object system, the object system comprising a business system and a management system;
performing service preprocessing on the at least one object processing request, including:
performing service preprocessing on the at least one object processing request through the service system;
determining a first number of objects to be processed and an object type of the objects to be processed corresponding to the service processing request according to the at least one object processing request, including:
determining, by the management and control system, a first number of objects to be processed and an object type of the objects to be processed, which correspond to the service processing request, according to the at least one object processing request;
determining a processing result of the service processing request according to the first quantity and the object type, wherein the processing result comprises:
and determining a processing result of the service processing request according to the first quantity and the object type through the management and control system.
11. The method according to claim 10, wherein the service system sequentially acquires a first service processing request and a second service processing request, and after the service system completes preprocessing of all object processing requests in the first service processing request, the service system preprocesses all object processing requests in the second service processing request.
12. The method of claim 11, further comprising:
at a preset moment, determining the number of the fifth objects left in the object pool and the resource occupation details of all services in a preset time period through the management and control system;
and sending the fifth object number and the resource occupation details of all services in a preset time period to the service system through the management and control system.
13. The method according to any one of claims 1 to 12, wherein the object handling request is a loan request or a repayment request, and the pool of objects is a fund pool, wherein,
the loan request is used for requesting to deduct the credit amount in the fund pool;
the repayment request is for requesting a credited amount to be returned in the fund pool.
14. A service processing device is characterized by comprising a first obtaining module, a processing module, a first determining module and a second determining module, wherein:
the first obtaining module is configured to obtain at least one service processing request, where each service processing request includes at least one object processing request, and the object processing request is used to request to occupy an object in an object pool or return the object to the object pool;
the processing module is used for carrying out service preprocessing on the at least one object processing request;
the first determining module is configured to determine, according to the at least one object processing request, a first number of objects to be processed and an object type of the objects to be processed, where the first number of objects to be processed and the object type are corresponding to the service processing request, and the object type is an occupation type or a return type;
and the second determining module is used for determining the processing result of the service processing request according to the first quantity and the object type if the processing result of the service preprocessing is successful.
15. A traffic processing device, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to implement the service processing method according to any one of claims 1 to 13.
16. A readable storage medium, on which a device control program is stored, which when executed by a processor, implements the service processing method according to any one of claims 1 to 13.
17. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the business process method of any one of claims 1 to 13.
CN202110758497.3A 2021-07-05 2021-07-05 Service processing method, device and equipment Pending CN113379537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758497.3A CN113379537A (en) 2021-07-05 2021-07-05 Service processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758497.3A CN113379537A (en) 2021-07-05 2021-07-05 Service processing method, device and equipment

Publications (1)

Publication Number Publication Date
CN113379537A true CN113379537A (en) 2021-09-10

Family

ID=77580944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758497.3A Pending CN113379537A (en) 2021-07-05 2021-07-05 Service processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN113379537A (en)

Similar Documents

Publication Publication Date Title
CN107230092B (en) Accounting processing method and device and server
CN107038645B (en) Service processing method, device and system and server
CN103366306A (en) Shared capital data processing device and use method thereof
US20220383300A1 (en) Payment transaction processing system, and payment transaction processing method and apparatus
CN112132674A (en) Transaction processing method and device
CN111444213B (en) Ledger clearing system and method based on credit business
AU2017301640B2 (en) Reprogrammable point of sale transaction flows
CN111415146A (en) Resource data processing method, device and equipment
CN111695970A (en) Order processing method and system
CN110689394B (en) Method and device for processing service supplementary notes
CN113379537A (en) Service processing method, device and equipment
CN105787736A (en) Data business processing method and device
CN108765138B (en) Object and fund transfer method and device
CN111640006B (en) Bank payment method and device, terminal and storage medium
CN113935507A (en) Foreign currency cash exchange reservation method and device based on block chain
CN111242576A (en) Method and device for processing request
US11080663B2 (en) Electronic payment processing apparatus and method
CN108961050B (en) Processing method and device for forward transaction of bank system
CN110827009B (en) Fund transfer method and device based on account balance limit
CN114298652A (en) Method and device for establishing enterprise overdraft business, computer equipment and storage medium
CN113222587A (en) Online and offline transaction electronic card processing method and device
CN116630024A (en) Credit line distribution method, equipment, device and storage medium
CN114529287A (en) Service processing method and device, electronic equipment and computer readable medium
CN115660659A (en) Bill deduction method and device, electronic equipment and storage medium
CN113269631A (en) Job processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination