Resource exchange methods, apparatus, computer equipment and storage media for goods
By obtaining the demand parameters of candidate items, verifying the failure of resource exchange for the target user, and determining the target item for resource exchange, the problem of item occupation caused by the user not paying for resources was solved, and the smooth progress and good experience of resource exchange were achieved.
Patent Information
- Application Number
- CN202411173541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-08-26
AI Technical Summary
During the resource exchange process, some users selected items but did not pay for the resources, resulting in the items being occupied and affecting the smooth progress of the resource exchange process.
By obtaining the demand parameters of candidate items, we can verify the failure of resource replacement for the target user, and then determine the target item from the candidate items whose replacement status is pending payment, and perform resource replacement.
To ensure that target users can successfully complete resource exchange, prevent items from being abnormally occupied, improve the exchange experience, and facilitate the smooth progress of the resource exchange process.
Smart Images

Figure CN118917926B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, computer equipment, and storage medium for resource exchange of articles. Background Technology
[0002] As network technology continues to develop, the scale of network resource exchange is also expanding. Users can select items in applications to achieve resource exchange for items (for example, employees within an enterprise can select items in an internal application).
[0003] However, as the number of users participating in resource exchange increases and the amount of resources exchanged continues to rise, some users may not make resource payments after selecting an item. This can lead to the item being occupied and unable to be selected by other users, thus affecting the smooth progress of the resource exchange process. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for exchanging goods that can ensure the smooth progress of the resource exchange process, in order to address the aforementioned technical problems.
[0005] Firstly, this application provides a method for resource exchange of items. The method includes:
[0006] Parameters are extracted from the target user's request for acquiring candidate items to determine the required parameters of the candidate items;
[0007] If, based on the background parameters of the candidate items and the demand parameters, it is determined that the target user has failed to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0008] Based on the target item, resource exchange is performed on the target user.
[0009] In one embodiment, the background parameters include the amount to be replaced, the remaining credit limit, and the remaining credit limit; the demand parameters include the demand replacement amount, the demand credit limit, and the demand credit limit; determining that the target user's resource replacement for the candidate item has failed based on the background parameters of the candidate item and the demand parameters includes:
[0010] If the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be used, then it is determined that the target user has failed to replace the resource for the candidate item.
[0011] In one embodiment, determining the target item from candidate items whose replacement state is a resource awaiting payment, based on the demand parameter, includes:
[0012] From the replacement orders whose replacement status is pending payment, filter the target orders that meet the aforementioned requirement parameters;
[0013] Select the candidate items in the target order as the target items and cancel the target order.
[0014] In one embodiment, when the quantity to be replaced is less than the required replacement quantity, the step of filtering target orders that meet the demand parameters from replacement orders whose replacement status is pending payment resource status includes:
[0015] Determine the number of candidate items included in each of the aforementioned replacement orders;
[0016] Replacement orders with a quantity of the items greater than or equal to the required quantity are designated as target orders.
[0017] In one embodiment, when the remaining credit limit is less than the required credit limit, the step of filtering target orders that meet the requirement parameters from replacement orders whose replacement status is pending payment includes:
[0018] Determine the amount of credit used for each of the aforementioned replacement orders;
[0019] Replacement orders whose occupied offset amount is greater than or equal to the required offset amount are designated as target orders.
[0020] In one embodiment, when the remaining credit limit is less than the required credit limit, the step of filtering target orders that meet the requirement parameters from replacement orders whose replacement status is pending payment includes:
[0021] Determine the credit limit occupied for each of the aforementioned replacement orders;
[0022] Replacement orders whose occupied credit limit is greater than or equal to the required credit limit are designated as target orders.
[0023] Secondly, this application also provides a resource exchange device for articles. The device includes:
[0024] The first determining module is used to extract parameters from the target user's request for obtaining candidate items and determine the required parameters of the candidate items;
[0025] The second determining module is used to determine the target item from the candidate items whose replacement status is pending payment, based on the background parameters of the candidate items and the demand parameters, when it is determined that the target user has failed to exchange resources for the candidate items.
[0026] The replacement module is used to perform resource replacement for the target user based on the target item.
[0027] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0028] Parameters are extracted from the target user's request for acquiring candidate items to determine the required parameters of the candidate items;
[0029] If, based on the background parameters of the candidate items and the demand parameters, it is determined that the target user has failed to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0030] Based on the target item, resource exchange is performed on the target user.
[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0032] Parameters are extracted from the target user's request for acquiring candidate items to determine the required parameters of the candidate items;
[0033] If, based on the background parameters of the candidate items and the demand parameters, it is determined that the target user has failed to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0034] Based on the target item, resource exchange is performed on the target user.
[0035] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0036] Parameters are extracted from the target user's request for acquiring candidate items to determine the required parameters of the candidate items;
[0037] If, based on the background parameters of the candidate items and the demand parameters, it is determined that the target user has failed to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0038] Based on the target item, resource exchange is performed on the target user.
[0039] The resource exchange method, apparatus, computer equipment, and storage medium described above acquire demand parameters for candidate items. This allows them to determine the target item from candidate items in a pending payment state based on the demand parameters, in the event that the target user fails to exchange resources for a candidate item. Then, resource exchange is performed on the target user based on the target item. As can be seen from the above, this application verifies the target user's resource exchange status based on the background parameters and demand parameters of the candidate items when performing resource exchange on the target user, ensuring that even if the target user's resource exchange for a candidate item fails... The system identifies target items from candidate items and uses them to exchange resources with target users. This ensures that target users can successfully complete resource exchange operations for candidate items. When candidate items cannot meet the target user's acquisition request, it enables reasonable allocation of candidate items in the pending payment state, preventing candidate items from being abnormally occupied. This ensures a good exchange experience for target users and prevents some items from being abnormally occupied due to some users not paying for resources after selecting the item, thus promoting the smooth progress of the resource exchange process for candidate items. Attached Figure Description
[0040] Figure 1 An application environment diagram for a resource exchange method for items provided in an embodiment of this application;
[0041] Figure 2 A flowchart illustrating the resource exchange method for the first type of item provided in this application embodiment;
[0042] Figure 3 A flowchart illustrating the resource exchange method for the second type of item provided in this application embodiment;
[0043] Figure 4 A flowchart illustrating the resource exchange method for a third type of item provided in this application embodiment;
[0044] Figure 5 This is a schematic diagram of a material resource exchange process provided in an embodiment of this application;
[0045] Figure 6A structural block diagram of a resource exchange device for an article provided in an embodiment of this application;
[0046] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0048] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application. In the description of this application, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0049] The resource exchange method for items provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on the cloud or other network servers. By acquiring the demand parameters of candidate items, in the event that the target user fails to exchange resources for a candidate item, the system determines the target item from the candidate items whose exchange status is "resources awaiting payment" based on the demand parameters, and then performs resource exchange for the target user based on the target item. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0050] In one embodiment, such as Figure 2 As shown, a resource exchange method for items is provided, which can be applied to... Figure 1Taking terminal 102 as an example, the explanation includes the following steps:
[0051] S201, extract parameters from the target user's request for acquiring candidate items and determine the required parameters for the candidate items.
[0052] Among them, the demand parameters of candidate items refer to the target user's demand replacement quantity, demand discount amount, and demand credit limit for candidate items; the demand replacement quantity refers to the number of candidate items that the target user needs to replace; the demand discount amount refers to the amount of discount coupons (such as voucher amount) used by the target user in the process of exchanging resources for candidate items; the demand credit limit refers to the amount of resources advanced by the target enterprise to which the target user belongs in the process of exchanging resources for candidate items.
[0053] It should be noted that when it is necessary to determine the demand parameters of candidate items, the parameters of the target user's request for the candidate items can be extracted to obtain the request parameters contained in the request; the meaning of the request parameters can be parsed to obtain the demand parameters of the candidate items recorded in the request parameters.
[0054] In one embodiment of this application, when it is necessary to perform parameter meaning parsing on request parameters, a meaning parsing model can be pre-trained to input the request parameters contained in the request into the meaning parsing model and obtain the output result of the meaning parsing model, which is the requirement parameter of the candidate item.
[0055] The training process of the meaning parsing model includes: obtaining sample requests in advance, extracting parameters from the sample requests to obtain the sample parameters contained in the sample requests, labeling each sample parameter with the required parameters through manual annotation, and then training the initial model with each sample parameter labeled with the required parameters to obtain the trained meaning parsing model.
[0056] S202, based on the background parameters and demand parameters of the candidate items, if the target user fails to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0057] It should be noted that, in order to ensure that the resource exchange process for candidate items by the target user can proceed smoothly, it is necessary to verify whether the target user's resource exchange for candidate items will fail. Specifically, based on the background parameters and demand parameters of the candidate items, it can be verified whether the candidate items at the current moment can satisfy the target user's acquisition request for the candidate items. If they cannot be satisfied, it is determined that the target user's resource exchange for candidate items has failed; otherwise, if they can be satisfied, it is determined that the target user's resource exchange for candidate items has succeeded.
[0058] To further explain, the backend parameters include the quantity to be replaced, the remaining credit limit, and the remaining credit limit; the demand parameters include the demand replacement quantity, the demand credit limit, and the demand credit limit. Therefore, when it is necessary to verify whether the candidate items at the current moment can meet the target user's request for the candidate items, it can be verified whether the quantity to be replaced is less than the demand replacement quantity, whether the remaining credit limit is less than the demand credit limit, and whether the remaining credit limit is less than the demand credit limit. If the quantity to be replaced is less than the demand replacement quantity, the remaining credit limit is less than the demand credit limit, or the remaining credit limit is less than the demand credit limit, then it is determined that the candidate items at the current moment cannot meet the target user's request for the candidate items, and it is determined that the target user's resource replacement for the candidate items has failed.
[0059] In one embodiment of this application, when it is necessary to determine that the target user has failed to exchange resources for the candidate item based on the background parameters and demand parameters of the candidate item, the following may be included: if the amount to be exchanged is less than the demanded amount, the remaining credit limit is less than the demanded credit limit, or the remaining credit limit is less than the demanded credit limit, then it is determined that the target user has failed to exchange resources for the candidate item.
[0060] It should be noted that when it is necessary to determine the target item from the candidate items in the replacement state of "resources to be paid" based on the demand parameters, the target orders that meet the demand parameters can be filtered from the replacement orders in the replacement state of "resources to be paid". Then, the candidate items in the target orders are taken as the target items and the target orders are cancelled.
[0061] S203, based on the target item, perform resource exchange for the target user.
[0062] It should be noted that after identifying the target item, a resource exchange relationship can be established between the target item and the target user. This allows the target item to be sent to the target user's corresponding delivery address after receiving the resources paid by the target user, thus realizing resource exchange with the target user.
[0063] The resource exchange method described above obtains the demand parameters of candidate items. This allows the method to determine the target item from among the candidate items in the "pending payment" state when the target user fails to exchange resources for a candidate item. Then, the target user is given the target item for resource exchange. As can be seen from the above, this application verifies the target user's resource exchange status based on the background parameters and demand parameters of the candidate items. This ensures that even if the target user's resource exchange attempt fails, the target item is determined from the candidate items for resource exchange. This guarantees that the target user can successfully complete the resource exchange operation for the candidate items. It also enables the reasonable allocation of candidate items in the "pending payment" state when the candidate items cannot meet the target user's acquisition request, preventing abnormal occupation of candidate items and ensuring a good exchange experience for the target user. Furthermore, it prevents items from being abnormally occupied due to some users not paying for them after selecting them, thus promoting a smooth resource exchange process for candidate items.
[0064] In one embodiment, such as Figure 3 As shown, when it is necessary to determine the target item from candidate items whose replacement state is "resources awaiting payment" based on demand parameters, the specific details may include the following:
[0065] S301, from the replacement orders whose replacement status is pending payment, filter the target orders that meet the requirements parameters.
[0066] It should be noted that, in order to ensure that the selected target orders can effectively solve the problem of target users failing to exchange resources for candidate items, when selecting target orders that meet the requirements parameters, it is necessary to conduct adaptive screening based on the reasons that cause target users to fail to exchange resources for candidate items.
[0067] In one embodiment of this application, when the quantity to be replaced is less than the required quantity to be replaced, the following may be included when it is necessary to filter target orders that meet the required parameters: determining the number of candidate items in each replacement order; and selecting replacement orders with a quantity of items greater than or equal to the required quantity as target orders.
[0068] In another embodiment of this application, when the remaining credit limit is less than the required credit limit, the process of filtering target orders that meet the required parameters may include the following: determining the credit limit occupied by each replacement order; and selecting replacement orders whose occupied credit limit is greater than or equal to the required credit limit as target orders.
[0069] In another embodiment of this application, when the remaining credit limit is less than the required credit limit, the process of selecting target orders that meet the required parameters may include the following: determining the credit limit occupied by each replacement order; and selecting replacement orders whose occupied credit limit is greater than or equal to the required credit limit as target orders.
[0070] To further explain, if at least two target orders that meet the required parameters are obtained through screening, the order generation time of each target order is determined, and the target order with the longest time interval between the order generation time and the current time is used as the target order for determining the target item.
[0071] S302, select the candidate item in the target order as the target item, and cancel the target order.
[0072] In one embodiment of this application, after a target order is determined, since the replacement status of the target order is a pending payment resource status, it can be assumed that the user corresponding to the target order has no arrangement to pay resources for the target order. In order to ensure that the resource replacement process for candidate items can proceed smoothly, the candidate items in the target order are taken as target items, so that the target user can be replaced with resources based on the target items, and the target order is cancelled.
[0073] The resource exchange method for the aforementioned items determines target orders that meet the required parameters, selects candidate items from the target orders as target items, and cancels the target orders. This enables the reasonable allocation of candidate items in the pending payment state, prevents candidate items from being abnormally occupied, ensures a good exchange experience for target users, and prevents some items from being abnormally occupied due to some users not paying for the resources after selecting the items. This facilitates the smooth progress of the resource exchange process for candidate items.
[0074] In one embodiment, such as Figure 4 As shown, when resource replacement is required for a target user, the following may be included:
[0075] S401, extract parameters from the target user's request for acquiring candidate items, and determine the required parameters for the candidate items.
[0076] S402, based on the background parameters and demand parameters of the candidate items, if the target user fails to exchange resources for the candidate items, proceed to step S403 if the amount to be exchanged is less than the demand amount to be exchanged; proceed to step S404 if the remaining credit limit is less than the demand credit limit; proceed to step S405 if the remaining credit limit is less than the demand credit limit.
[0077] S403, determine the quantity of candidate items included in each replacement order; designate replacement orders with a quantity of items greater than or equal to the required quantity as target orders.
[0078] S404, determine the corresponding usage credit limit for each replacement order; designate replacement orders with usage credit limits greater than or equal to the required credit limit as target orders.
[0079] S405, determine the credit limit occupied for each replacement order; designate replacement orders with a credit limit occupied greater than or equal to the required credit limit as target orders.
[0080] S406: Based on the target item, perform resource exchange for the target user.
[0081] In one embodiment of this application, such as Figure 5 As shown, to ensure the smooth execution of the resource replacement method for the items in this application, the replacement status needs to be marked when each candidate item is replaced. When the replacement status changes to a resource pending payment status, the item status of the corresponding candidate item is determined to be a pre-occupied status; when the replacement status changes to a resource paid status, the item status of the corresponding candidate item is determined to be an occupied status; and when the replacement status changes to an abnormal status, the item status of the corresponding candidate item is determined to be an unoccupied status. Specifically, after a user establishes a resource exchange relationship with a candidate item, information such as the required exchange amount, required credit limit, and the exchange activities participated in by the required credit limit can be stored in the form of Redis keys. Specifically, the exchange amount key is: user + site code + order code, and the exchange amount value records the exchange amount change information and the current pre-occupancy status; the credit limit key is: user + site code + order code, and the credit limit value contains the credit limit information and the pre-occupancy status; the exchange activity key is: user + site code + order code, and the exchange activity value contains the exchange activity information and the pre-occupancy status; the required credit limit key is: user + site code + order code, and the required credit limit value contains the required credit limit information and the pre-occupancy status. After a user has paid for resources, the order service uses a queue message design to notify the replacement quantity service to change the replacement quantity information to an occupied status (deducting inventory), notify the credit limit service to change the credit limit status to an occupied status (deducting welfare beans and voucher amounts), and notify the credit granting service to change the demand credit granting status to an occupied status (deducting enterprise credit limit). When a user fails to pay for resources (order service exception), the order service uses a queue message design to notify the replacement quantity service to change the replacement quantity information to an unoccupied status, notify the credit limit service to change the credit limit status to an unoccupied status, and notify the credit granting service to change the demand credit granting status to an unoccupied status.
[0082] The resource exchange method described above obtains the demand parameters of candidate items. This allows the method to determine the target item from among the candidate items in the "pending payment" state when the target user fails to exchange resources for a candidate item. Then, the target user is given the target item for resource exchange. As can be seen from the above, this application verifies the target user's resource exchange status based on the background parameters and demand parameters of the candidate items. This ensures that even if the target user's resource exchange attempt fails, the target item is determined from the candidate items for resource exchange. This guarantees that the target user can successfully complete the resource exchange operation for the candidate items. It also enables the reasonable allocation of candidate items in the "pending payment" state when the candidate items cannot meet the target user's acquisition request, preventing abnormal occupation of candidate items and ensuring a good exchange experience for the target user. Furthermore, it prevents items from being abnormally occupied due to some users not paying for them after selecting them, thus promoting a smooth resource exchange process for candidate items.
[0083] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0084] Based on the same inventive concept, this application also provides a resource replacement device for implementing the resource replacement method for items described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more resource replacement device embodiments provided below can be found in the limitations of the resource replacement method for items described above, and will not be repeated here.
[0085] In one embodiment, such as Figure 6 As shown, a resource exchange device for items is provided, comprising: a first determining module 10, a second determining module 20, and an exchange module 30, wherein:
[0086] The first determining module 10 is used to extract parameters from the target user's request for obtaining candidate items and determine the required parameters of the candidate items.
[0087] The second determining module 20 is used to determine the target item from the candidate items whose replacement status is pending payment, based on the background parameters and demand parameters of the candidate items, when it is determined that the target user has failed to exchange resources for the candidate items.
[0088] The replacement module 30 is used to perform resource replacement for the target user based on the target item.
[0089] In one embodiment, if the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be granted, then it is determined that the target user has failed to replace the resources for the candidate items.
[0090] In one embodiment, target orders that meet the requirements parameters are selected from replacement orders whose replacement status is pending payment; candidate items in the target orders are selected as target items, and the target orders are cancelled.
[0091] In one embodiment, the quantity of candidate items included in each replacement order is determined; replacement orders with a quantity of items greater than or equal to the required quantity are designated as target orders.
[0092] In one embodiment, the occupied credit limit corresponding to each replacement order is determined; replacement orders with occupied credit limits greater than or equal to the required credit limit are designated as target orders.
[0093] In one embodiment, the credit limit occupied for each replacement order is determined; replacement orders with a credit limit occupied greater than or equal to the required credit limit are designated as target orders.
[0094] The resource exchange device for the aforementioned items, by acquiring the demand parameters of candidate items, enables the determination of a target item from the candidate items in the "pending payment" resource status based on the demand parameters when the target user fails to exchange resources for a candidate item. Then, resource exchange is performed on the target user based on the target item. As can be seen from the above, when performing resource exchange on the target user, this application verifies the target user's resource exchange status based on the background parameters and demand parameters of the candidate items. This ensures that even if the target user's resource exchange for a candidate item fails, a target item is determined from the candidate items, and resource exchange is performed on the target user using the target item. This guarantees that the target user can successfully complete the resource exchange operation for the candidate items. It also enables the reasonable allocation of candidate items in the "pending payment" resource status when the candidate items cannot meet the target user's acquisition request, preventing the abnormal occupation of candidate items and ensuring a good exchange experience for the target user. Furthermore, it prevents items from being abnormally occupied due to some users not paying for resources after selecting an item, thus promoting the smooth progress of the resource exchange process for candidate items.
[0095] Each module in the resource exchange device for the aforementioned items can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0096] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a resource exchange method for items. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0097] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0098] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0099] Extract parameters from the target user's request for candidate items to determine the required parameters for the candidate items;
[0100] Based on the background parameters and demand parameters of the candidate items, if the target user fails to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0101] Based on the target item, resources are exchanged for the target user.
[0102] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0103] If the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be granted, then the target user is determined to have failed to replace resources for the candidate items.
[0104] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0105] From the replacement orders whose replacement status is pending payment, filter the target orders that meet the requirements parameters;
[0106] Set the candidate item in the target order as the target item, and cancel the target order.
[0107] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0108] Determine the quantity of candidate items included in each replacement order;
[0109] Replacement orders with a quantity of items greater than or equal to the required quantity are designated as target orders.
[0110] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0111] Determine the amount of credit used for each replacement order;
[0112] Replacement orders with a usage credit limit greater than or equal to the required credit limit will be designated as target orders.
[0113] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0114] Determine the credit limit to be used for each replacement order;
[0115] Replacement orders that occupy a credit limit greater than or equal to the required credit limit will be designated as target orders.
[0116] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0117] Extract parameters from the target user's request for candidate items to determine the required parameters for the candidate items;
[0118] Based on the background parameters and demand parameters of the candidate items, if the target user fails to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0119] Based on the target item, resources are exchanged for the target user.
[0120] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0121] If the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be granted, then the target user is determined to have failed to replace resources for the candidate items.
[0122] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0123] From the replacement orders whose replacement status is pending payment, filter the target orders that meet the requirements parameters;
[0124] Set the candidate item in the target order as the target item, and cancel the target order.
[0125] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0126] Determine the quantity of candidate items included in each replacement order;
[0127] Replacement orders with a quantity of items greater than or equal to the required quantity are designated as target orders.
[0128] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0129] Determine the amount of credit used for each replacement order;
[0130] Replacement orders with a usage credit limit greater than or equal to the required credit limit will be designated as target orders.
[0131] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0132] Determine the credit limit to be used for each replacement order;
[0133] Replacement orders that occupy a credit limit greater than or equal to the required credit limit will be designated as target orders.
[0134] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0135] Extract parameters from the target user's request for candidate items to determine the required parameters for the candidate items;
[0136] Based on the background parameters and demand parameters of the candidate items, if the target user fails to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters.
[0137] Based on the target item, resources are exchanged for the target user.
[0138] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0139] If the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be granted, then the target user is determined to have failed to replace resources for the candidate items.
[0140] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0141] From the replacement orders whose replacement status is pending payment, filter the target orders that meet the requirements parameters;
[0142] Set the candidate item in the target order as the target item, and cancel the target order.
[0143] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0144] Determine the quantity of candidate items included in each replacement order;
[0145] Replacement orders with a quantity of items greater than or equal to the required quantity are designated as target orders.
[0146] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0147] Determine the amount of credit used for each replacement order;
[0148] Replacement orders with a usage credit limit greater than or equal to the required credit limit will be designated as target orders.
[0149] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0150] Determine the credit limit to be used for each replacement order;
[0151] Replacement orders that occupy a credit limit greater than or equal to the required credit limit will be designated as target orders.
[0152] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0153] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0154] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for resource exchange of goods, characterized in that, The method includes: Extract parameters from the target user's request for acquiring candidate items to obtain the request parameters contained in the acquisition request; The request parameters are parsed to obtain the demand parameters for candidate items recorded in the request parameters. These parameters refer to the target user's demand for replacement quantity, demand credit limit, and demand credit limit for the candidate items. Specifically, the demand replacement quantity refers to the number of candidate items the target user needs to replace; the demand credit limit refers to the amount of vouchers used by the target user during the resource replacement process; and the demand credit limit refers to the amount of resources advanced by the target company to the target user during the resource replacement process. Based on the background parameters of the candidate items and the demand parameters, if it is determined that the target user fails to exchange resources for the candidate items, the target item is determined from the candidate items whose exchange status is pending payment, based on the demand parameters. Based on the target item, resource exchange is performed on the target user.
2. The method according to claim 1, characterized in that, The background parameters include the amount to be replaced, the remaining credit limit, and the remaining credit limit; the demand parameters include the demanded replacement amount, the demanded credit limit, and the demanded credit limit; determining that the target user's resource replacement for the candidate item has failed based on the background parameters of the candidate item and the demand parameters includes: If the amount to be replaced is less than the amount to be replaced, the remaining credit limit is less than the amount to be used, or the remaining credit limit is less than the amount to be used, then it is determined that the target user has failed to replace the resource for the candidate item.
3. The method according to claim 2, characterized in that, The step of determining the target item from candidate items whose replacement state is a resource awaiting payment, based on the demand parameters, includes: From the replacement orders whose replacement status is pending payment, filter the target orders that meet the aforementioned requirement parameters; Select the candidate items in the target order as the target items and cancel the target order.
4. The method according to claim 3, characterized in that, When the quantity to be replaced is less than the required replacement quantity, the step of filtering target orders that meet the demand parameters from replacement orders whose replacement status is pending payment resource status includes: Determine the number of candidate items included in each of the aforementioned replacement orders; Replacement orders with a quantity of the items greater than or equal to the required quantity are designated as target orders.
5. The method according to claim 3, characterized in that, When the remaining credit limit is less than the required credit limit, the step of filtering target orders that meet the required parameters from replacement orders whose replacement status is pending payment includes: Determine the amount of credit used for each of the aforementioned replacement orders; Replacement orders whose occupied offset amount is greater than or equal to the required offset amount are designated as target orders.
6. The method according to claim 3, characterized in that, When the remaining credit limit is less than the required credit limit, the step of filtering target orders that meet the required parameters from replacement orders whose replacement status is pending payment includes: Determine the credit limit occupied for each of the aforementioned replacement orders; Replacement orders whose occupied credit limit is greater than or equal to the required credit limit are designated as target orders.
7. A resource exchange device for an item, characterized in that, The device includes: The first determining module is used to extract parameters from the target user's request for acquiring candidate items to obtain the request parameters contained in the request; and to parse the meaning of the request parameters to obtain the demand parameters of the candidate items recorded in the request parameters; wherein, the demand parameters of the candidate items refer to the target user's demand replacement quantity, demand discount amount, and demand credit limit for the candidate items; wherein, the demand replacement quantity refers to the quantity of candidate items that the target user needs to replace; the demand discount amount refers to the amount of discount coupons used by the target user in the process of exchanging resources for candidate items; and the demand credit limit refers to the amount of resources advanced by the target enterprise to which the target user belongs in the process of exchanging resources for candidate items. The second determining module is used to determine the target item from the candidate items whose replacement status is pending payment, based on the background parameters of the candidate items and the demand parameters, when it is determined that the target user has failed to exchange resources for the candidate items. The replacement module is used to perform resource replacement for the target user based on the target item.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Inventory management method and device
CN113379258A
Credit-based rental management method and device
CN116188123A