Resource interaction service processing method and device, computer equipment and storage medium
By detecting resource interaction business requests, obtaining data monitoring data and determining order cooling status, the problem of inefficient processing of traditional resource interaction platforms is solved, and flexible processing and efficient business order management are achieved.
Patent Information
- Application Number
- CN202410014088.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
Traditional resource interaction application platforms update business order information by setting forced synchronization time, resulting in inefficient processing and inability to adapt to business orders of different types and order time.
By detecting resource interaction service processing requests, the order cooling component is called to obtain the current data monitoring data, determine the order cooling status, and accept and process business orders when the cooling is completed, avoiding a unified waiting time.
It realizes flexible processing of resource interaction business orders, improves processing efficiency, avoids tedious waiting operations, and ensures the timeliness and accuracy of information updates.
Smart Images

Figure CN120255989A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technologies, and in particular, to a method and apparatus for processing resource interaction services, a computer device, a storage medium, and a computer program product. Background Art
[0002] With the development of computer technologies and the popularization and use of various resource interaction application platforms, the requirements for the processing efficiency of each business order on the resource interaction application platform are increasing day by day. To ensure that each order service can be processed in a timely and effective manner, it is necessary to update the relevant information of each business order on the resource interaction application platform in real time. There has emerged a method of forcibly synchronizing the information on the resource interaction application platform. That is, to ensure that the information that the order processor can view is the latest and most accurate, by setting a forced synchronization time, that is, after each order is placed, the order processor needs to wait for this fixed time interval, so as to leave a fixed time window for synchronizing the data placed in the previous order, so as to complete the data synchronization operation within this fixed time window and provide the latest order-related information.
[0003] However, the traditional method of setting a forced synchronization time to update the relevant information of each business order on the resource interaction application platform in real time. To ensure that business orders of different types and placed at different times can all complete the data synchronization work in a timely manner within the set time window, it is necessary to uniformly set a relatively large interval window value, which is likely to result in a relatively large interval duration for all business orders to be placed, leading to a long time-consuming and low processing efficiency for resource interaction service processing. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a method and apparatus for processing resource interaction services, a computer device, a computer-readable storage medium, and a computer program product that can reduce the waiting duration for resource interaction service processing and improve the processing efficiency of resource interaction services.
[0005] In a first aspect, the present application provides a method for processing resource interaction services, including:
[0006] If a resource interaction service processing request is detected, then call an order cooling component to obtain current resource interaction data monitoring data;
[0007] Based on the current resource interaction data monitoring data, determine the current order cooling state;
[0008] If it is determined that the current order cooling state is cooling completed, then accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
[0009] In a second aspect, the present application further provides a resource interaction service processing apparatus, including:
[0010] The current resource interaction data monitoring data acquisition module is used to call the order cooling component to acquire the current resource interaction data monitoring data if a resource interaction service processing request is detected;
[0011] The current order cooling status determination module is used to determine the current order cooling status based on the current resource interaction data monitoring data;
[0012] The resource interaction service order processing module is used to accept a new resource interaction service order corresponding to the resource interaction service processing request and process the new resource interaction service order to obtain an order processing result if it is determined that the current order cooling status is cooling completed.
[0013] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0014] If a resource interaction service processing request is detected, call the order cooling component to acquire the current resource interaction data monitoring data;
[0015] Determine the current order cooling status based on the current resource interaction data monitoring data;
[0016] If it is determined that the current order cooling status is cooling completed, accept a new resource interaction service order corresponding to the resource interaction service processing request and process the new resource interaction service order to obtain an order processing result.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0018] If a resource interaction service processing request is detected, call the order cooling component to acquire the current resource interaction data monitoring data;
[0019] Determine the current order cooling status based on the current resource interaction data monitoring data;
[0020] If it is determined that the current order cooling status is cooling completed, accept a new resource interaction service order corresponding to the resource interaction service processing request and process the new resource interaction service order to obtain an order processing result.
[0021] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0022] If a resource interaction service processing request is detected, call the order cooling component to obtain the current resource interaction data monitoring data;
[0023] Based on the current resource interaction data monitoring data, determine the current order cooling status;
[0024] If it is determined that the current order cooling status is cooling completed, accept the new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
[0025] In the above resource interaction service processing method, device, computer device, storage medium, and computer program product, when a resource interaction service processing request is detected, the current resource interaction data monitoring data is obtained by calling the order cooling component, and based on the current resource interaction data monitoring data, the current order cooling status is determined. If it is determined that the current order cooling status is cooling completed, the new resource interaction service order corresponding to the resource interaction service processing request is accepted, and the new resource interaction service order is processed to obtain an order processing result. It realizes accurately and timely determining the current order cooling status by real-time monitoring the current resource interaction data, so as to determine whether to allow accepting a new resource interaction service order according to whether the cooling is completed, instead of using a unified forced waiting time to update the relevant information of each service order on the resource interaction application platform in real time. It can flexibly accept and process new resource interaction service orders, further improving the efficiency of resource interaction service processing. Description of the Drawings
[0026] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0027] Figure 1 It is an application environment diagram of the resource interaction service processing method in an embodiment;
[0028] Figure 2 It is a flowchart of the resource interaction service processing method in an embodiment;
[0029] Figure 3 It is a flowchart of determining the current order cooling status in an embodiment;
[0030] Figure 4 It is a flowchart of the resource interaction service processing method in another embodiment;
[0031] Figure 5Schematic diagram of the internal processing principle of the order cooling component in an embodiment;
[0032] Figure 6 Schematic flowchart of the resource interaction service processing method in another embodiment;
[0033] Figure 7 Schematic diagram of the current order cooling status corresponding to the front-end interaction display interface in an embodiment;
[0034] Figure 8 Schematic flowchart of the resource interaction service processing method in yet another embodiment;
[0035] Figure 9 Schematic diagram of the architecture of the resource interaction service processing system in an embodiment;
[0036] Figure 10 Block diagram of the structure of the resource interaction service processing device in an embodiment;
[0037] Figure 11 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0038] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] The resource interaction service processing method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or other network servers. Among them, if the server 104 detects a resource interaction service processing request, it calls the order cooling component to obtain the current resource interaction data monitoring data, and based on the current resource interaction data monitoring data, determines the current order cooling status. Further, if the server 104 determines that the current order cooling status is cooling completed, it accepts the new resource interaction service order corresponding to the resource interaction service processing request, processes the new resource interaction service order, and obtains an order processing result. Among them, the server 104 can further display the order processing result, or feedback the order processing result to the terminal 102.
[0040] Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0041] In an exemplary embodiment, as Figure 2 shown, a resource interaction service processing method is provided. Taking the method applied to Figure 1 the server 104 in it as an example for illustration, it includes the following steps S202 to step S206. Among them:
[0042] Step S202, if a resource interaction service processing request is detected, then call the order cooling component to obtain the current resource interaction data monitoring data.
[0043] Among them, the order processing object can trigger a resource interaction service processing request based on the front-end interaction display interface, that is, submit an order placement instruction through the front-end interaction display interface, indicating that there is a new resource interaction service order to be processed. Before processing the new resource interaction service order, it is necessary to determine whether it is currently allowed to accept and process the new resource interaction service order. Specifically, it is determined whether it is allowed to accept and process the new resource interaction service order by determining whether the current order cooling state is cooling completed.
[0044] Specifically, if the server detects a resource interaction service processing request triggered based on the front-end interaction display interface, then call the order cooling component deployed on the server to access the resource interaction data monitoring data table, so as to obtain the current resource interaction data monitoring data through the resource interaction data monitoring data table.
[0045] Exemplarily, in the resource interaction data monitoring data table, it includes resource interaction data monitoring data corresponding to multiple different resource interaction service orders. The resource interaction data monitoring data includes multiple service data items, specifically including order data items, exposure data items, and profit and loss data items, etc. Among them, each resource interaction service order is correspondingly set with an order identifier. In the resource interaction data monitoring data table, specifically, taking the order identifier as an index, the multiple service data items included in the resource interaction data monitoring data are used as the data content corresponding to the order identifier. Furthermore, through the order identifier, the current resource interaction data monitoring data corresponding to the order identifier can be obtained in the resource interaction data monitoring data table, including order data, exposure data, and profit and loss data, etc.
[0046] Among them, the order data represents the attribute data related to the resource interaction business order, specifically including the transferred-in resource type, transferred-out resource type, resource transferred-in quantity, resource transferred-out quantity, resource interaction exchange rate, and resource interaction time of the order. Among them, the exposure data specifically represents the aggregated resource amount accumulated for the situation where the resource transferred-in quantity is greater than the resource transferred-out quantity (i.e., long position) or the resource transferred-out quantity is greater than the resource transferred-in quantity (i.e., short position) during the foreign exchange resource interaction processing for users by a bank or institution. The profit and loss data represents the profit and loss data obtained by calculating the profit and loss based on the existing resource interaction business orders during the foreign exchange resource interaction processing.
[0047] Exemplarily, for the profit and loss data, in the exposure data, the transferred-out resource type is the first resource type, and its resource transferred-out quantity is 700. The transferred-in resource type is the second resource type, and its resource transferred-in quantity is 100. The resource interaction exchange rate between the first resource type and the second resource type is 6.9, that is, transferring out 690 units of the first resource can transfer in 100 units of the second resource. Then, the profit and loss data obtained by calculating the profit and loss is 10 units of the first resource.
[0048] Step S204, determine the current order cooling state based on the current resource interaction data monitoring data.
[0049] Specifically, by parsing the resource interaction data monitoring data table, each order identifier included in the current resource interaction data monitoring data table is obtained, and the resource interaction data monitoring data associated with each order identifier is acquired, including the order data associated with each order identifier, as well as the exposure data and profit and loss data associated with the order data. Then, based on the order data and the data update identifiers corresponding to the exposure data and profit and loss data associated with the order data, the current order cooling state is determined.
[0050] Furthermore, the data update identifiers corresponding to the order data, exposure data, and profit and loss data are respectively obtained, and based on the data update identifiers corresponding to the order data, exposure data, and profit and loss data, the information update state of the resource interaction business order corresponding to the order identifier is determined. Thus, by comprehensively considering the information update states of all resource interaction business orders, the current order cooling state is obtained.
[0051] Among them, the data update identifier includes a first identifier indicating update completion and a second identifier indicating uncompleted update. The information update state of the resource interaction business order includes update completion and uncompleted update. The current order cooling state includes cooling completion and cooling uncompleted.
[0052] Exemplarily, if the data update flag of any one of the order data, exposure data, and profit and loss data is the second flag indicating that the update is not completed, it indicates that the information update status of the resource interaction business order corresponding to the order flag is not completed. Similarly, if the information update status of any resource interaction business order is not completed, it indicates that the current order cooling status is not completed.
[0053] It can be understood that when the data update flags of the order data, exposure data, and profit and loss data corresponding to a certain order flag are all the first flags indicating that the update is completed, the information update status of the resource interaction business order corresponding to the order flag is completed. Similarly, when the information update status of all resource interaction business orders is completed, the current order cooling status is completed.
[0054] In an exemplary embodiment, when determining the current order cooling status based on the current resource interaction data monitoring data, if the current resource interaction data monitoring data is empty, it is determined that the current order cooling status is completed.
[0055] Step S206, if it is determined that the current order cooling status is completed, accept the new resource interaction business order corresponding to the resource interaction business processing request, and process the new resource interaction business order to obtain an order processing result.
[0056] Specifically, if it is determined that the current order cooling status is completed, it indicates that the current acceptance and processing of new resource interaction business orders are allowed. Then the server successfully accepts the new resource interaction business order corresponding to the resource interaction business processing request, and processes the new resource interaction business order to obtain an order processing result.
[0057] Exemplarily, if it is determined that the current order cooling status is completed, the server accepts the new resource interaction business order. For example, perform a closing operation on the exposure data to sell the long position or cover the short position, that is, solve the problem that the resource transfer-in amount is greater than the resource transfer-out amount (i.e., long position) or the resource transfer-out amount is greater than the resource transfer-in amount (i.e., short position), and obtain a closing operation result (i.e., obtain an order processing result).
[0058] In an exemplary embodiment, after determining the current order cooling status based on the current resource interaction data monitoring data, if it is determined that the current order cooling status is not completed, generate a prompt message indicating that the order is cooling, and display the prompt message indicating that the order is cooling.
[0059] Further, by detecting a trigger operation on a skip cooling status detection component set for the front-end interaction display interface, and when a trigger operation on the skip cooling status detection component is detected, the operation of determining the current order cooling status is skipped, and a new resource interaction service order corresponding to the resource interaction service processing request is directly accepted and processed, and the order processing result is obtained.
[0060] Among them, the front-end interaction display interface is provided with a skip cooling status detection component, that is, the order processing object can skip the operation of determining the current order cooling status by triggering the cooling status detection component, indicating that it is currently required to directly accept and process a new resource interaction service order. Then the server successfully accepts the new resource interaction service order corresponding to the resource interaction service processing request, and processes the new resource interaction service order to obtain the order processing result.
[0061] In the above resource interaction service processing method, when a resource interaction service processing request is detected, the current resource interaction data monitoring data is obtained by calling the order cooling component, and based on the current resource interaction data monitoring data, the current order cooling status is determined. If it is determined that the current order cooling status is cooling completed, a new resource interaction service order corresponding to the resource interaction service processing request is accepted and processed, and the order processing result is obtained. It realizes accurately and timely determining the current order cooling status by real-time monitoring the current resource interaction data, so as to determine whether to allow accepting a new resource interaction service order according to whether the cooling is completed, rather than using a unified forced waiting time to update the relevant information of each service order on the resource interaction application platform in real time. It can flexibly accept and process new resource interaction service orders, and further improve the resource interaction service processing efficiency.
[0062] In an exemplary embodiment, as Figure 3 shown, the step of determining the current order cooling status, that is, the step of determining the current order cooling status based on the current resource interaction data monitoring data, specifically includes the following steps S302 to S308. Among them:
[0063] Step S302, parse the current resource interaction data monitoring data to obtain each order identifier carried by the current resource interaction data monitoring data.
[0064] Specifically, the order cooling component is called to access the resource interaction data monitoring data table, and the resource interaction data monitoring data table is parsed to obtain the current resource interaction data monitoring data. Then, by parsing the current resource interaction data monitoring data, each order identifier included in the current resource interaction data monitoring data is obtained.
[0065] Among them, in the resource interaction data monitoring data table, there are resource interaction data monitoring data corresponding to multiple different resource interaction business orders. The resource interaction data monitoring data includes multiple business data items, specifically including order data items, exposure data items, profit and loss data items, etc. Among them, each resource interaction business order is correspondingly set with an order identifier. In the resource interaction data monitoring data table, specifically, taking the order identifier as the index, the multiple business data items included in the resource interaction data monitoring data are used as the data content corresponding to the order identifier.
[0066] Step S304: Obtain the order data corresponding to each order identifier, as well as the exposure data and profit and loss data associated with the order data respectively.
[0067] Specifically, according to the order identifier, in the resource interaction data monitoring data table, obtain the current resource interaction data monitoring data corresponding to the order identifier, including order data, exposure data, profit and loss data, etc.
[0068] Among them, the order data represents the attribute data related to the resource interaction business order, specifically including the transferred-in resource type, transferred-out resource type, resource transfer-in quantity, resource transfer-out quantity, resource interaction exchange rate, and resource interaction time of the order, etc. Among them, the exposure data specifically represents the aggregated resource amount accumulated for the situation where the resource transfer-in quantity is greater than the resource transfer-out quantity (i.e., long position) or the resource transfer-out quantity is greater than the resource transfer-in quantity (i.e., short position) during the process of the bank or institution handling foreign exchange resource interaction for users. The profit and loss data represents the profit and loss data obtained by calculating the profit and loss based on the existing resource interaction business orders during the process of foreign exchange resource interaction.
[0069] Step S306: Determine the information update status of the resource interaction business order corresponding to each order identifier according to the order data, as well as the exposure data and profit and loss data associated with the order data.
[0070] Specifically, by respectively obtaining the data update identifiers corresponding to the order data, exposure data, and profit and loss data, the data update identifiers specifically include the first identifier indicating the update is completed and the second identifier indicating the update is not completed, so as to determine the information update status of the resource interaction business order corresponding to the corresponding order identifier according to the data update identifiers corresponding to the order data, exposure data, and profit and loss data. The information update status specifically includes update completed and update not completed.
[0071] Among them, if the data update flag of any one of the order data, exposure data, and profit and loss data is the second flag indicating that the update is not completed, it indicates that the information update status of the resource interaction business order corresponding to the order flag is not completed. On the contrary, when the data update flags of the order data, exposure data, and profit and loss data corresponding to a certain order flag are all the first flags indicating that the update is completed, the information update status of the resource interaction business order corresponding to the order flag is completed.
[0072] Furthermore, by separately obtaining the data update flags corresponding to the order data, exposure data, and profit and loss data of the order flag, and determining whether the data update flags of each item of data are all the first flags. Among them, if the data update flags corresponding to the order data, exposure data, and profit and loss data corresponding to the order flag are all the first flags, it is determined that the information update status of the resource interaction business order corresponding to the order flag is completed.
[0073] On the contrary, if among the data update flags corresponding to the order data, exposure data, and profit and loss data corresponding to the order flag, there is any one data update flag that is the second flag, it is determined that the information update status of the resource interaction business order corresponding to the order flag is not completed.
[0074] Step S308, based on the information update status of each resource interaction business order, determine the current order cooling status.
[0075] Specifically, the current order cooling status specifically includes cooling completed and cooling not completed. By obtaining the information update status of each resource interaction business order and determining whether the information update status of each resource interaction business order is completed. Among them, if the information update status of each resource interaction business order is completed, it is determined that the current order cooling status is cooling completed. On the contrary, if there is a resource interaction business order with an information update status that is not completed, it is determined that the current order cooling status is cooling not completed.
[0076] In this embodiment, by parsing the current resource interaction data monitoring data, each order identifier carried in the current resource interaction data monitoring data is obtained, and the order data corresponding to each order identifier, as well as the exposure data and profit and loss data associated with the order data, are respectively obtained. Based on the order data, the exposure data and the profit and loss data associated with the order data, the information update status of the resource interaction business order corresponding to each order identifier is determined. Finally, based on the information update status of each resource interaction business order, the current order cooling status can be determined, realizing the comprehensive determination of the information update status of the corresponding resource interaction business order from multiple dimensions such as order data, exposure data, and profit and loss data. Thus, a single-dimensional judgment method can be avoided, and the comprehensiveness and accuracy of the determined information update status can be improved. Further, by comprehensively considering the information update status of each resource interaction business order, the current order cooling status can be accurately determined, avoiding cumbersome processing operations, and thus improving the efficiency of resource interaction business processing.
[0077] In an exemplary embodiment, as Figure 4 shown, a resource interaction business processing method is provided, which specifically includes the following steps S402 to step S408. Among them:
[0078] Step S402: Obtain the order identifier corresponding to the newly added resource interaction business order, and create a corresponding business data item in the resource interaction data monitoring data table according to the order identifier. The business data item includes an order data item, an exposure data item, and a profit and loss data item.
[0079] Specifically, when it is determined that the current order cooling status is cooling completed and a newly added resource interaction business order corresponding to the resource interaction business processing request is accepted, for the newly added resource interaction business order, it is necessary to further obtain the order identifier corresponding to the newly added resource interaction business order, and create a corresponding business data item in the resource interaction data monitoring data table according to the order identifier.
[0080] Furthermore, the resource interaction data monitoring data table specifically includes the resource interaction data monitoring data corresponding to multiple different resource interaction business orders, and the resource interaction data monitoring data of each resource interaction business order specifically includes order data, exposure data, profit and loss data, etc. Therefore, for the newly added resource interaction business order, it is also necessary to create a corresponding multiple business data items in the resource interaction data monitoring data table according to its corresponding order identifier, including an order data item, an exposure data item, and a profit and loss data item. Among them, in the order data item, the exposure data item, and the profit and loss data item, the order data, the exposure data, and the profit and loss data of the resource interaction business order corresponding to the order identifier are respectively stored.
[0081] Step S404: Perform initialization processing based on each business data item corresponding to the order identifier, and set the data update identifier corresponding to each business data item to the second identifier.
[0082] Specifically, for a newly added resource interaction business order, in the updated resource interaction data monitoring data table, based on the order identifier corresponding to the newly added resource interaction business order, perform initialization processing on each business data item corresponding to the order identifier.
[0083] Among them, specifically, perform initialization processing on the order data item, exposure data item, and profit and loss data item corresponding to the newly added resource interaction business order, that is, set the data identifier corresponding to each business data item to the second identifier respectively, including setting the order data item, exposure data item, and profit and loss data item to the second identifier of incomplete update.
[0084] Step S406: Real-time obtain the order data corresponding to the order identifier, as well as the exposure data and profit and loss data associated with the order data, and perform push processing on the order data, exposure data, and profit and loss data.
[0085] Specifically, by real-time monitoring various data related to the order identifier, and when obtaining new order data corresponding to the order identifier, or exposure data and profit and loss data associated with the order data, perform push processing on the received new order data, exposure data, and profit and loss data.
[0086] Among them, specifically, push the new order data, exposure data, and profit and loss data to the front-end interactive display interface for display, so that the order processing object can view them, and based on the displayed new order data, exposure data, and profit and loss data, determine whether it is currently allowed to trigger a new order placement instruction.
[0087] Step S408: If it is determined that the push of the order data, exposure data, and profit and loss data is successful, then call the order cooling component to update the resource interaction data monitoring data table, and update the data update identifier of each business data item corresponding to the order identifier to the first identifier.
[0088] Specifically, if it is detected that the push of the order data, exposure data, and profit and loss data is successful, that is, the order data, exposure data, and profit and loss data have all been successfully displayed on the front-end interactive display interface and are available for the order processing object to view, then trigger the data update identifier update operation, and update the data update identifier of each business data item corresponding to the order identifier in the resource interaction data monitoring data table by calling the data update identifier update operation of the order cooling component. Specifically, update the data update identifier of each business data item corresponding to the order identifier to the first identifier.
[0089] Among them, the second identifier indicates that the update is not completed, while the first identifier indicates that the update is completed. Specifically, by updating the data update identifier of each business data item from the second identifier to the first identifier, it is indicated that the update of each business data item corresponding to the current order identifier has been completed.
[0090] In an exemplary embodiment, as Figure 5 shown, a schematic diagram of the internal processing principle of an order cooling component is provided. Referring to Figure 5 it can be seen that the order cooling component deployed on the server has functions of accepting new resource interaction business orders, monitoring order data updates, and querying order cooling status, and a resource interaction data monitoring data table is also deployed. Among them:
[0091] 1. Function of accepting new resource interaction business orders: After the order processing object submits a placing order instruction, the new resource interaction business order becomes data to be monitored. By initializing the business data items corresponding to the new resource interaction business order in the resource interaction data monitoring table, including initializing in three dimensions of order data items, exposure data items, and profit and loss data items, the data update identifiers corresponding to the order data items, exposure data items, and profit and loss data items are set to the second identifier, indicating that they are all to be updated.
[0092] Exemplarily, referring to Figure 5 it can be seen that the second identifier can be specifically represented by "0". After accepting the new resource interaction business order, an order identifier corresponding to the acceptance of the new resource interaction business order is added to the resource interaction data monitoring table (such as Figure 5 the order_xxx02 shown), and the data update identifiers corresponding to the order data items, exposure data items, and profit and loss data items are all set to "0", indicating that they are all to be updated.
[0093] 2. Order data update monitoring function: After updating in three dimensions of the order data items, exposure data items, and profit and loss data items corresponding to the new resource interaction business order, by notifying the order cooling component of the update completion message, the order cooling component updates the resource interaction data monitoring data table, that is, updates the data update identifiers of the order data items, exposure data items, and profit and loss data items corresponding to the new resource interaction business order, and updates the second identifier to the first identifier, indicating that the update has been completed.
[0094] Exemplarily, the first identifier can be specifically represented by "1", that is, the data update identifiers corresponding to the order data item, exposure data item, and profit and loss data item are updated to "1", indicating that the corresponding data items have been updated. Among them, if the data update identifiers of the new resource interaction service order in the three dimensions of the order data item, exposure data item, and profit and loss data item are all 1, the data content corresponding to the new resource interaction service order (including order identifier, order data, exposure data, and profit and loss data) is deleted from the resource interaction data monitoring data table.
[0095] Specifically, referring to Figure 5 it can be seen that after obtaining the updated data of the new resource interaction service order in the three dimensions of the order data item, exposure data item, and profit and loss data item, by separately pushing the updated order data, exposure data, and profit and loss data, and when it is determined that the push of the updated order data is successful, the data update identifier of the order data item in the resource interaction data monitoring data table is updated to "1". Similarly, when it is determined that the push of the updated exposure data is successful, the data update identifier of the exposure data item in the resource interaction data monitoring data table is updated to "1", and when it is determined that the push of the updated profit and loss data is successful, the data update identifier of the profit and loss data item in the resource interaction data monitoring data table is updated to "1" (as Figure 5 shown, the data update identifiers corresponding to the order data, exposure data, and profit and loss data of order_xxx01 are all "1").
[0096] 3. Order cooling status query function: After completing the update of the resource interaction data monitoring data table, the order cooling status is pushed to the front-end interactive display interface. The method of querying and judging the order cooling status is the resource interaction data monitoring data table. If the resource interaction data monitoring data table is empty, or the data update identifiers of all resource interaction service orders in the resource interaction data monitoring data table are 1 in the three dimensions, it means that the current order cooling status is cooling completed, and the order placement instruction can be submitted to process the new resource interaction service order.
[0097] In the above resource interaction service processing method, by obtaining the order identifier corresponding to the newly added resource interaction service order, business data items such as an order data item, an exposure data item, and a profit and loss data item are newly created in the resource interaction data monitoring data table according to the order identifier. Initialization processing is performed based on each business data item corresponding to the order identifier, and the data update identifier corresponding to each business data item is set to the second identifier. Further, by obtaining in real time the order data corresponding to the order identifier, as well as the exposure data and profit and loss data associated with the order data, and performing push processing on the order data, exposure data, and profit and loss data, when it is determined that the push of the order data, exposure data, and profit and loss data is successful, the order cooling component is called to update the resource interaction data monitoring data table, and the data update identifier of each business data item corresponding to the order identifier is updated to the first identifier. This realizes comprehensive monitoring and updating of resource interaction service orders in multiple dimensions such as order data, exposure data, and profit and loss data, thereby avoiding a single-dimensional monitoring and updating method, improving the comprehensiveness and accuracy of the determined information update status, further accurately determining the current order cooling state, avoiding cumbersome processing operations, and thus improving the efficiency of resource interaction service processing.
[0098] In an exemplary embodiment, as Figure 6 shown, a resource interaction service processing method is provided, which specifically includes the following steps S602 to step S612. Among them;
[0099] Step S602, generate a message to be pushed according to the order data, exposure data, and profit and loss data, and send the message to be pushed to the message receiving component to be pushed.
[0100] Specifically, when performing push processing on the order data, exposure data, and profit and loss data, based on the obtained new order data, exposure data, and profit and loss data, generate a message to be pushed, and send the message to be pushed to the message receiving component to be pushed deployed on the server.
[0101] Among them, the message receiving component to be pushed is used to receive the message to be pushed and obtain the updated data corresponding to the message to be pushed, including the updated order data, exposure data, profit and loss data, etc., so as to feedback the updated order data to the order push component, and feedback the exposure data, profit and loss data, etc. to the exposure and profit and loss push components.
[0102] Step S604, through the message receiving component to be pushed, feedback the order data corresponding to the message to be pushed to the order push component, and feedback the exposure data and profit and loss data corresponding to the message to be pushed to the exposure and profit and loss push components.
[0103] Specifically, after receiving the message to be pushed, the message receiving component for pushing obtains the updated data corresponding to the message to be pushed, including updated order data, exposure data, profit and loss data, etc., and feeds back the order data corresponding to the message to be pushed to the order pushing component, and feeds back the exposure data and profit and loss data corresponding to the message to be pushed to the exposure and profit and loss pushing component.
[0104] Among them, the order pushing component is used to receive the updated order data and push the received updated order data to the front-end interactive display interface, while the exposure and profit and loss pushing component is used to receive the updated exposure data and profit and loss data and push the received new exposure data and profit and loss data to the front-end interactive display interface.
[0105] Step S606, push the order data to the front-end interactive display interface through the order pushing component, and push the exposure data and profit and loss data to the front-end interactive display interface through the exposure and profit and loss pushing component.
[0106] Specifically, after receiving the updated order data, the order pushing component pushes the received updated order data to the front-end interactive display interface, while after receiving the updated exposure data and profit and loss data, the exposure and profit and loss pushing component pushes the received updated exposure data and profit and loss data to the front-end interactive display interface.
[0107] Step S608, if it is determined that the order data, exposure data, and profit and loss data are successfully pushed, call the order cooling component to update the resource interaction data monitoring data table.
[0108] Specifically, after pushing the order data to the front-end interactive display interface through the order pushing component and pushing the exposure data and profit and loss data to the front-end interactive display interface through the exposure and profit and loss pushing component, detect the pushing status of the order data, exposure data, and profit and loss data. If it is determined that the order data, exposure data, and profit and loss data are successfully pushed, call the order cooling component to update the resource interaction data monitoring data table.
[0109] Further, when calling the order cooling component to update the resource interaction data monitoring data table, specifically, it is to update the data update identifier of each business data item corresponding to the corresponding resource interaction business order in the resource interaction data monitoring data table, that is, specifically update the data update identifier of each business data item corresponding to the resource interaction business order to the first identifier.
[0110] Step S610, call the order cooling component to determine the current order cooling status based on the updated resource interaction data monitoring data table.
[0111] Specifically, after updating the resource interaction data monitoring data table, the order cooling component is further called to parse the updated resource interaction data monitoring data table to obtain each order identifier included in the current resource interaction data monitoring data table, and obtain the resource interaction data monitoring data associated with each order identifier, including the order data associated with each order identifier, and the exposure data and profit and loss data associated with the order data. Then, based on the order data, and the data update identifiers corresponding to the exposure data and profit and loss data associated with the order data, the current order cooling status is determined.
[0112] Furthermore, the data update identifiers corresponding to the order data, exposure data, and profit and loss data are obtained respectively, and based on the data update identifiers corresponding to the order data, exposure data, and profit and loss data, the information update status of the resource interaction business order corresponding to the order identifier is determined. Thus, by comprehensively considering the information update status of all resource interaction business orders, the current order cooling status is obtained.
[0113] Among them, the data update identifier includes a first identifier indicating update completion and a second identifier indicating uncompleted update. The information update status of the resource interaction business order includes update completed and update uncompleted. The current order cooling status includes cooling completed and cooling uncompleted.
[0114] Exemplarily, if the data update identifier of any one of the order data, exposure data, and profit and loss data is the second identifier indicating uncompleted update, it indicates that the information update status of the resource interaction business order corresponding to the order identifier is uncompleted update. Similarly, if the information update status of any resource interaction business order is uncompleted update, it indicates that the current order cooling status is cooling uncompleted.
[0115] It can be understood that when the data update identifiers of the order data, exposure data, and profit and loss data corresponding to a certain order identifier are all the first identifiers indicating update completion, the information update status of the resource interaction business order corresponding to the order identifier is update completed. Similarly, when the information update status of all resource interaction business orders is update completed, the current order cooling status is cooling completed.
[0116] Step S612: Send the current order cooling status to the order receiving component, and push the current order cooling status to the front-end interaction display interface through the order receiving component.
[0117] Specifically, by sending the current order cooling status to the order receiving component, such as the order cooling status of cooling completed or cooling uncompleted, to the order receiving component, so as to push the current order cooling status to the front-end interaction display interface through the order receiving component, such as pushing the order cooling status of cooling completed or cooling uncompleted to the front-end interaction display interface for display, for the order processing object to view.
[0118] Among them, if the current order cooling status is incomplete cooling, the order processing object can wait until the cooling is completed before submitting the order placement instruction, or can trigger the skip cooling status detection component set in the front-end interaction display interface to skip the operation of determining the current order cooling status and directly submit the order placement instruction. If it is determined that the current order cooling status is completed cooling, it indicates that new resource interaction business orders are currently allowed to be accepted and processed, and the order processing object can directly submit a new order placement instruction.
[0119] In an exemplary embodiment, as Figure 7 shown, a schematic diagram of the current order cooling status corresponding to the front-end interaction display interface is provided. Referring to Figure 7 it can be seen that the current order cooling status corresponding to the front-end interaction display interface is "cooling" (i.e., incomplete cooling).
[0120] In the above resource interaction business processing method, according to the order data, exposure data, and profit and loss data, a message to be pushed is generated, and the message to be pushed is sent to the message receiving component to be pushed. Through the message receiving component, the order data corresponding to the message to be pushed is fed back to the order push component, and the exposure data and profit and loss data corresponding to the message to be pushed are fed back to the exposure and profit and loss push components. Among them, the order data is pushed to the front-end interaction display interface through the order push component, and the exposure data and profit and loss data are pushed to the front-end interaction display interface through the exposure and profit and loss push components. When it is determined that the order data, exposure data, and profit and loss data are successfully pushed, the order cooling component is called to update the resource interaction data monitoring data table, and based on the updated resource interaction data monitoring data table, the current order cooling status is determined. Further, by sending the current order cooling status to the order receiving component, and through the order receiving component, the current order cooling status is pushed to the front-end interaction display interface, it realizes the comprehensive and accurate push of the order data, exposure data, and profit and loss data, avoids the situation of data omission, thereby reducing the cumbersome operation of repeatedly obtaining and pushing data in the process of resource interaction business processing, and improving the efficiency of resource interaction business processing.
[0121] In an exemplary embodiment, as Figure 8 shown, a resource interaction business processing method is provided, which specifically includes the following steps S802 to step S814. Among them:
[0122] Step S802, if a resource interaction business processing request is detected, the order cooling component is called to obtain the current resource interaction data monitoring data, and the order resource interaction volume carried by the resource interaction business processing request is obtained.
[0123] Specifically, if the server detects a resource interaction service processing request triggered by the front-end interaction display interface, it calls the order cooling component deployed on the server to access the resource interaction data monitoring data table, so as to obtain the current resource interaction data monitoring data through the resource interaction data monitoring data table.
[0124] Similarly, if the server detects a resource interaction service processing request triggered by the front-end interaction display interface, it further obtains the order resource interaction volume carried by the resource interaction service processing request. Among them, the order resource interaction volume is used to compare with the resource interaction volume threshold corresponding to the preset filtering condition to determine whether the operation of determining the current order cooling state can be skipped currently.
[0125] Step S804, determine the current order cooling state based on the current resource interaction data monitoring data.
[0126] Specifically, by parsing the resource interaction data monitoring data table, each order identifier included in the current resource interaction data monitoring data table is obtained, and the resource interaction data monitoring data associated with each order identifier is obtained, including the order data associated with each order identifier, as well as the exposure data and profit and loss data associated with the order data. Furthermore, according to the data update identifier corresponding to the order data, as well as the exposure data and profit and loss data associated with the order data, the information update state of the resource interaction service order corresponding to the order identifier is determined, so as to obtain the current order cooling state by comprehensively considering the information update states of all resource interaction service orders.
[0127] Among them, the data update identifier includes a first identifier indicating update completion and a second identifier indicating uncompleted update. The information update state of the resource interaction service order includes update completion and uncompleted update. The current order cooling state includes cooling completion and cooling incompletion.
[0128] Exemplarily, when the data update identifiers of the order data, exposure data, and profit and loss data corresponding to a certain order identifier are all the first identifiers indicating update completion, the information update state of the resource interaction service order corresponding to the order identifier is update completion. Similarly, when the information update states of all resource interaction service orders are all update completion, the current order cooling state is cooling completion.
[0129] On the contrary, if the data update identifier of any one of the order data, exposure data, and profit and loss data is the second identifier indicating uncompleted update, it indicates that the information update state of the resource interaction service order corresponding to the order identifier is uncompleted update. And if the information update state of any resource interaction service order is uncompleted update, it indicates that the current order cooling state is cooling incompletion.
[0130] Step S806: If it is determined that the current order cooling status is incomplete cooling, generate a prompt message indicating that the order is in the cooling process.
[0131] Specifically, if it is determined that the current order cooling status is incomplete cooling, generate a prompt message indicating that the order is in the cooling process according to the incomplete cooling status of the order, and further display the prompt message indicating that the order is in the cooling process to prompt the order processing object that the current order is in the cooling status and should wait for the order cooling to be completed before submitting a new order placement instruction.
[0132] Step S808: Display the prompt message indicating that the order is in the cooling process, and detect the trigger operation of the skip cooling status detection component set for the front-end interaction display interface.
[0133] Specifically, by displaying the prompt message indicating that the order is in the cooling process, prompt the order processing object that the current order is in the cooling status and should wait for the order cooling to be completed before submitting a new order placement instruction. Among them, in order to provide more flexible options, such as a way to skip the operation of determining the current order cooling status, a skip cooling status detection component is set on the front-end interaction display interface. This skip cooling status detection component can be clicked and triggered by the order processing object. That is, after displaying the prompt message indicating that the order is in the cooling process, determine whether to skip the operation of determining the current order cooling status by detecting whether the order processing object triggers the skip cooling status detection component set on the front-end interaction display interface.
[0134] Step S810: If a trigger operation for the skip cooling status detection component is detected, skip the operation of determining the current order cooling status, accept the new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain the order processing result.
[0135] Specifically, if a trigger operation of the order processing object for the skip cooling status detection component set on the front-end interaction display interface is detected, respond to the skip cooling status detection request, skip the operation of determining the current order cooling status, directly accept the new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain the order processing result.
[0136] After executing step S802, execute step S812 to obtain the resource interaction volume threshold corresponding to the preset filtering condition, and compare the order resource interaction volume with the resource interaction volume threshold.
[0137] Specifically, after the server detects the resource interaction service processing request triggered based on the front-end interaction display interface and obtains the order resource interaction volume carried by the resource interaction service processing request, further obtain the resource interaction volume threshold corresponding to the preset filtering condition, and compare the order resource interaction volume with the resource interaction volume threshold to generate the corresponding comparison result.
[0138] Among them, the comparison results specifically include that the order resource interaction volume is less than the resource interaction volume threshold, and the order resource interaction volume is not less than the resource interaction volume threshold. Exemplarily, the resource interaction volume threshold can be set according to the actual resource interaction business scenario. For example, it can be set to 10,000 yuan. That is, when the order resource interaction volume is less than the resource interaction volume threshold of 10,000 yuan, the operation of determining the cooling state of the current order is skipped. If the order resource interaction volume is not less than the resource interaction volume threshold of 10,000 yuan, the operation of determining the cooling state of the current order still needs to be executed.
[0139] Step S814, if it is determined that the order resource interaction volume is less than the resource interaction volume threshold, skip the operation of determining the cooling state of the current order, accept the new resource interaction business order corresponding to the resource interaction business processing request, and process the new resource interaction business order to obtain the order processing result.
[0140] Specifically, if it is determined according to the comparison result between the order resource interaction volume and the resource interaction volume threshold that the order resource interaction volume is less than the resource interaction volume threshold, skip the operation of determining the cooling state of the current order, accept the new resource interaction business order corresponding to the resource interaction business processing request, and process the new resource interaction business order to obtain the order processing result.
[0141] Exemplarily, if it is determined that the order resource interaction volume is less than the resource interaction volume threshold, skip the operation of determining the cooling state of the current order, and the server directly accepts the new resource interaction business order. For example, perform a closing operation on the open data to sell the long position or cover the short position, that is, solve the problem that the resource transfer-in volume is greater than the resource transfer-out volume (i.e., long position) or the resource transfer-out volume is greater than the resource transfer-in volume (i.e., short position), and obtain the closing operation result (i.e., obtain the order processing result).
[0142] In the above resource interaction service processing method, when a resource interaction service processing request is detected, the order cooling component is called to obtain the current resource interaction data monitoring data, and the order resource interaction volume carried in the resource interaction service processing request is obtained. Further, based on the current resource interaction data monitoring data, the current order cooling state is determined. When it is determined that the current order cooling state is incomplete cooling, a prompt message indicating that the order is cooling is generated and displayed, and at the same time, it is detected whether there is a trigger operation for the skip cooling state detection component set for the front-end interaction display interface. Among them, when a trigger operation for the skip cooling state detection component is detected, the operation of determining the current order cooling state is skipped, the new resource interaction service order corresponding to the resource interaction service processing request is accepted, and the new resource interaction service order is processed to obtain an order processing result. Among them, by comparing the resource interaction volume threshold corresponding to the preset filtering condition with the order resource interaction volume, and when it is determined that the order resource interaction volume is less than the resource interaction volume threshold, the operation of determining the current order cooling state is also skipped, the new resource interaction service order corresponding to the resource interaction service processing request is accepted, and the new resource interaction service order is processed to obtain an order processing result, so as to provide multiple flexible options in the process of processing the resource interaction service order, avoid a single fixed processing process or method, and further improve the processing efficiency of the resource interaction service order.
[0143] In an exemplary embodiment, as Figure 9 shown, an architecture schematic of a resource interaction service processing system is provided. Referring to Figure 9 it can be seen that the resource interaction service processing system specifically includes: a front-end interaction display interface 901, a service order placement component 902, an order cooling component 903, a data cache server 904, an order management component 905, a cache database 906, a pending push message receiving component 907, an order push component 908, and an exposure and profit and loss push component 909. Among them, when order acceptance and order processing are performed based on the resource interaction service processing system, taking order acceptance as the boundary, it specifically includes two parts: before acceptance and after acceptance, where:
[0144] I. Before acceptance:
[0145] 1. The order processing object triggers a placement instruction (i.e., a resource interaction service processing request) based on the front-end interaction display interface 901, and the front-end interaction display interface 901 submits the placement instruction to the service order placement component 902.
[0146] 2. The service order placement component 902 receives the placement instruction and accesses the order cooling component 903 for order cooling query.
[0147] 3. The order cooling component 903 accesses the data cache server 904, obtains the resource interaction data monitoring data from the data cache server 904, and determines the current order cooling status based on the current resource interaction data monitoring data.
[0148] Among them, a resource interaction data monitoring data table is stored in the data cache server 904. The resource interaction data monitoring data table can be set separately according to different types of services, that is, multiple different resource interaction data monitoring data tables can be stored in the data cache server 904, and each resource interaction data monitoring data table stores the resource interaction data monitoring data corresponding to different resource interaction service orders.
[0149] In an exemplary embodiment, by pre-setting an order cooling check enable / disable component based on the front-end interaction display interface 901, when an abnormal situation occurs or the order processing speed needs to be accelerated, the function of determining the order cooling status can be turned off by triggering the order cooling check enable / disable component.
[0150] 4. If it is determined that the current order cooling status is cooling completed, the order management component 905 accepts a new resource interaction service order corresponding to the resource interaction service processing request.
[0151] Among them, a resource interaction volume threshold corresponding to a preset filtering condition can be pre-set, and the order resource interaction volume corresponding to the new resource interaction service order is compared with the resource interaction volume threshold. If it is determined that the order resource interaction volume is less than the resource interaction volume threshold, the operation of determining the current order cooling status is skipped, and the new resource interaction service order corresponding to the resource interaction service processing request is directly accepted.
[0152] II. After acceptance:
[0153] 5. The order management component 905 initializes each business data item of the new resource interaction service order based on the data cache server 904.
[0154] 6. The order management component 905 obtains the order data, exposure data, and profit and loss data corresponding to the new resource interaction service order, and writes the order data, exposure data, and profit and loss data into the cache database 906.
[0155] 7. The order management component 905 generates a message to be pushed according to the order data, exposure data, and profit and loss data, and sends the message to be pushed to the message receiving component 907 to be pushed.
[0156] 8.1. The message receiving component 907 to be pushed feeds back the order data corresponding to the message to be pushed to the order pushing component 908.
[0157] 8.2. The open position data and profit and loss data corresponding to the message to be pushed are fed back by the message receiving component 907 to the open position and profit and loss pushing component 909.
[0158] 9.1. The order pushing component 908 pushes the order data corresponding to the message to be pushed to the front-end interactive display interface 901.
[0159] 9.2. The open position and profit and loss pushing component 909 pushes the open position data and profit and loss data corresponding to the message to be pushed to the front-end interactive display interface 901.
[0160] 10. If it is determined that the order data, open position data, and profit and loss data are successfully pushed, the order pushing component 908 and the open position and profit and loss pushing component 909 send a push completion prompt message to the order cooling component 903.
[0161] 11. The order cooling component 903 records and updates the order monitoring status based on the data cache server 904.
[0162] 12. The order cooling component 903 triggers the generation of an order cooling update prompt message and feeds back the order cooling update prompt message to the business order placing component 902.
[0163] 13. The business order placing component 902 receives the order cooling update prompt message, obtains the updated order cooling status, and feeds back the updated order cooling status to the front-end interactive display interface 901.
[0164] Among them, the updated order cooling status can also be obtained through the order cooling component 903 and directly fed back to the front-end interactive display interface 901, that is, without being forwarded by the business order placing component 902, but directly fed back to the front-end interactive display interface 901 by the order cooling component 903.
[0165] In the above resource interaction service processing system, when a placing order instruction is received, the order cooling component accesses the data cache server to obtain resource interaction data monitoring data from the data cache server, and determines the current order cooling status based on the current resource interaction data monitoring data. Further, if it is determined that the current order cooling status is cooling completed, the order management component accepts a new resource interaction service order corresponding to the resource interaction service processing request, and initializes each service data item of the new resource interaction service order based on the data cache server. Among them, the order management component generates a message to be pushed by obtaining order data, exposure data, and profit and loss data corresponding to the new resource interaction service order, and sends the message to be pushed to the message receiving component to be pushed, so that the order data corresponding to the message to be pushed is fed back to the order push component through the message receiving component to be pushed, and the exposure data and profit and loss data corresponding to the message to be pushed are fed back to the exposure and profit and loss push component. Among them, the order push component pushes the order data corresponding to the message to be pushed to the front-end interaction display interface, while the exposure and profit and loss push component pushes the exposure data and profit and loss data corresponding to the message to be pushed to the front-end interaction display interface. Further, if it is determined that the order data, exposure data, and profit and loss data are successfully pushed, the order push component and the exposure and profit and loss push component send a push completion prompt message to the order cooling component, and then the order cooling component feeds back the updated order cooling status to the front-end interaction display interface by obtaining the updated order cooling status. It is realized that by monitoring the current resource interaction data in real time, the current order cooling status can be accurately and timely determined, so as to determine whether to allow accepting a new resource interaction service order according to whether the cooling is completed, rather than adopting a unified forced waiting time to update the relevant information of each service order on the new resource interaction application platform in real time. The new resource interaction service order can be flexibly accepted and processed, and the resource interaction service processing efficiency is further improved.
[0166] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed 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 executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0167] Based on the same inventive concept, an embodiment of the present application further provides a resource interaction service processing apparatus for implementing the resource interaction service processing method involved above. The solution provided by this apparatus for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the resource interaction service processing apparatus provided below can refer to the limitations on the resource interaction service processing method in the above text, and will not be elaborated here.
[0168] In an exemplary embodiment, as Figure 10 shown, a resource interaction service processing apparatus is provided, including: a current resource interaction data monitoring data acquisition module 1002, a current order cooling state determination module 1004, and a resource interaction service order processing module 1006, where:
[0169] The current resource interaction data monitoring data acquisition module 1002 is configured to, if a resource interaction service processing request is detected, call an order cooling component to acquire current resource interaction data monitoring data;
[0170] The current order cooling state determination module 1004 is configured to determine the current order cooling state based on the current resource interaction data monitoring data;
[0171] The resource interaction service order processing module 1006 is configured to, if it is determined that the current order cooling state is cooling completed, accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
[0172] In the above resource interaction service processing apparatus, when a resource interaction service processing request is detected, the current resource interaction data monitoring data is acquired by calling an order cooling component, and the current order cooling state is determined based on the current resource interaction data monitoring data. If it is determined that the current order cooling state is cooling completed, a new resource interaction service order corresponding to the resource interaction service processing request is accepted, and the new resource interaction service order is processed to obtain an order processing result. This realizes accurately and timely determining the current order cooling state by real-time monitoring the current resource interaction data, so as to determine whether to allow accepting a new resource interaction service order according to whether the cooling is completed, instead of using a unified forced waiting time to update the relevant information of each service order on the resource interaction application platform in real time. It can flexibly accept and process new resource interaction service orders, and further improve the resource interaction service processing efficiency.
[0173] In an exemplary embodiment, the current order cooling state determination module further includes:
[0174] The current resource interaction data monitoring data parsing module is used to parse the current resource interaction data monitoring data and obtain each order identifier carried by the current resource interaction data monitoring data;
[0175] The data acquisition module is used to respectively acquire the order data corresponding to each order identifier, as well as the exposure data and profit and loss data associated with the order data;
[0176] The information update status determination module is used to determine the information update status of the resource interaction business order corresponding to each order identifier according to the order data, as well as the exposure data and profit and loss data associated with the order data;
[0177] The current order cooling status determination module is further used to determine the current order cooling status based on the information update status of each resource interaction business order.
[0178] In an exemplary embodiment, the information update status determination module is further used to:
[0179] Respectively obtain the data update identifiers corresponding to the order data, exposure data, and profit and loss data; the data update identifier includes the first identifier indicating that the update is completed and the second identifier indicating that the update is not completed; according to the data update identifiers corresponding to the order data, exposure data, and profit and loss data, determine the information update status of the resource interaction business order corresponding to the corresponding order identifier; the information update status of the resource interaction business order includes completed update and uncompleted update.
[0180] In an exemplary embodiment, the information update status determination module is further used to:
[0181] If the data update identifiers corresponding to the order data, exposure data, and profit and loss data corresponding to the order identifier are all the first identifier, then determine that the information update status of the resource interaction business order corresponding to the order identifier is update completed; if any one of the data update identifiers corresponding to the order data, exposure data, and profit and loss data corresponding to the order identifier is the second identifier, then determine that the information update status of the resource interaction business order corresponding to the order identifier is update uncompleted.
[0182] In an exemplary embodiment, the current order cooling status determination module is further used to:
[0183] If the information update status of each resource interaction business order is update completed, then determine that the current order cooling status is cooling completed; if there is a resource interaction business order with an information update status of update uncompleted, then determine that the current order cooling status is cooling uncompleted.
[0184] In an exemplary embodiment, a resource interaction business processing device is provided, and further includes:
[0185] The business data item addition module is used to obtain the order identifier corresponding to the business order interacting with the newly added resource, and create a corresponding business data item in the resource interaction data monitoring data table according to the order identifier; the business data item includes an order data item, an exposure data item, and a profit and loss data item;
[0186] The initialization processing module is used to perform initialization processing based on each business data item corresponding to the order identifier, and set the data update identifier corresponding to each business data item to the second identifier;
[0187] The data push module is used to obtain the order data corresponding to the order identifier in real time, as well as the exposure data and profit and loss data associated with the order data, and perform push processing on the order data, exposure data, and profit and loss data;
[0188] The data update identifier update module is used to, if it is determined that the order data, exposure data, and profit and loss data are successfully pushed, call the order cooling component to update the resource interaction data monitoring data table, and update the data update identifier of each business data item corresponding to the order identifier to the first identifier.
[0189] In an exemplary embodiment, the data push module is further used for:
[0190] Generate a message to be pushed according to the order data, exposure data, and profit and loss data, and send the message to be pushed to the message receiving component to be pushed; through the message receiving component to be pushed, feedback the order data corresponding to the message to be pushed to the order push component, and feedback the exposure data and profit and loss data corresponding to the message to be pushed to the exposure and profit and loss push components; push the order data to the front-end interaction display interface through the order push component, and push the exposure data and profit and loss data to the front-end interaction display interface through the exposure and profit and loss push components.
[0191] In an exemplary embodiment, the data push module is further used for:
[0192] Call the order cooling component, and determine the current order cooling state based on the updated resource interaction data monitoring data table; send the current order cooling state to the order receiving component, and push the current order cooling state to the front-end interaction display interface through the order receiving component.
[0193] In an exemplary embodiment, a resource interaction service processing device is further provided, and further includes:
[0194] The order resource interaction volume acquisition module is used to acquire the order resource interaction volume carried in the resource interaction service processing request, and acquire the resource interaction volume threshold corresponding to the preset filtering condition;
[0195] A comparison module for comparing the order resource interaction volume with a resource interaction volume threshold;
[0196] The resource interaction service order processing module is further configured to: if it is determined that the order resource interaction volume is less than the resource interaction volume threshold, skip the operation of determining the cooling state of the current order, accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
[0197] In an exemplary embodiment, a resource interaction service processing apparatus is provided, further including:
[0198] A prompt information generation module for generating a prompt information of "order cooling" if it is determined that the cooling state of the current order is not completed;
[0199] A trigger operation detection module for displaying the prompt information of "order cooling" and detecting a trigger operation on a skip cooling state detection component set for the front-end interaction display interface;
[0200] The resource interaction service order processing module is further configured to: if a trigger operation on the skip cooling state detection component is detected, skip the operation of determining the cooling state of the current order, accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
[0201] In an exemplary embodiment, the current order cooling state determination module is further configured to:
[0202] If the current resource interaction data monitoring data is empty, determine that the cooling state of the current order is completed.
[0203] Each module in the above resource interaction service processing apparatus can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in the form of hardware or be independent of it, or be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0204] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 11As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as current resource interaction data monitoring data, current order cooling status, newly added resource interaction service orders, and order processing results. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a resource interaction service processing method.
[0205] Those skilled in the art can understand that Figure 11 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0206] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in the above-mentioned resource interaction service processing method.
[0207] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in the above-mentioned resource interaction service processing method.
[0208] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, it implements the steps in the above-mentioned resource interaction service processing method.
[0209] 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 for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0210] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. 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), magnetoresistive 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 be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0211] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, 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, it should be considered as the scope recorded in this specification.
[0212] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A resource interaction service processing method, characterized in that, The method includes: If a resource interaction service processing request is detected, call an order cooling component to obtain current resource interaction data monitoring data; Based on the current resource interaction data monitoring data, determine the current order cooling status; If it is determined that the current order cooling status is cooling completed, accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
2. The method according to claim 1, wherein The determining the current order cooling status based on the current resource interaction data monitoring data includes: Parse the current resource interaction data monitoring data to obtain each order identifier carried by the current resource interaction data monitoring data; Respectively obtain order data corresponding to each order identifier, as well as exposure data and profit and loss data associated with the order data; Based on the order data, as well as the exposure data and profit and loss data associated with the order data, determine the information update status of the resource interaction service order corresponding to each order identifier; Based on the information update status of each resource interaction service order, determine the current order cooling status.
3. The method according to claim 2, characterized in that The determining the information update status of the resource interaction service order corresponding to each order identifier based on the order data, as well as the exposure data and profit and loss data associated with the order data includes: Respectively obtain data update identifiers corresponding to the order data, the exposure data, and the profit and loss data; the data update identifier includes a first identifier indicating update completed and a second identifier indicating update not completed; Based on the data update identifiers corresponding to the order data, the exposure data, and the profit and loss data, determine the information update status of the resource interaction service order corresponding to the corresponding order identifier; the information update status of the resource interaction service order includes update completed and update not completed.
4. The method according to claim 3, characterized in that, The determining the information update status of the resource interaction service order corresponding to the corresponding order identifier based on the data update identifiers corresponding to the order data, the exposure data, and the profit and loss data includes: If the data update identifiers corresponding to the order data, the exposure data, and the profit and loss data corresponding to the order identifier are all the first identifier, determine that the information update status of the resource interaction service order corresponding to the order identifier is update completed; If any one of the data update identifiers corresponding to the order data, the exposure data, and the profit and loss data corresponding to the order identifier is the second identifier, determine that the information update status of the resource interaction service order corresponding to the order identifier is update not completed; The current order cooling status includes cooling completed and cooling not completed; the determining the current order cooling status based on the information update status of each resource interaction service order includes: If the information update status of each resource interaction service order is update completed, determine that the current order cooling status is cooling completed; if there is a resource interaction service order with an information update status of update not completed, determine that the current order cooling status is cooling not completed.
5. The method according to any one of claims 1 to 4, characterized in that, When it is determined that the current order cooling status is cooling completed, when accepting a new resource interaction service order corresponding to the resource interaction service processing request, it further includes: Obtain the order identifier corresponding to the new resource interaction service order, and create a corresponding service data item in the resource interaction data monitoring data table according to the order identifier; the service data item includes an order data item, an exposure data item, and a profit and loss data item; Perform initialization processing based on each service data item corresponding to the order identifier, and set the data update identifier corresponding to each service data item to the second identifier; Obtain the order data corresponding to the order identifier in real time, as well as the exposure data and profit and loss data associated with the order data, and perform push processing on the order data, the exposure data, and the profit and loss data; If it is determined that the order data, the exposure data, and the profit and loss data are successfully pushed, then call the order cooling component to update the resource interaction data monitoring data table, and update the data update identifier of each service data item corresponding to the order identifier to the first identifier.
6. The method according to claim 5, characterized in that Performing push processing on the order data, the exposure data, and the profit and loss data includes: Generate a message to be pushed according to the order data, the exposure data, and the profit and loss data, and send the message to be pushed to the message receiving component to be pushed; Through the message receiving component to be pushed, feedback the order data corresponding to the message to be pushed to the order push component, and feedback the exposure data and profit and loss data corresponding to the message to be pushed to the exposure and profit and loss push component; Push the order data to the front-end interaction display interface through the order push component, and push the exposure data and the profit and loss data to the front-end interaction display interface through the exposure and profit and loss push component.
7. The method according to claim 5, wherein After calling the order cooling component to update the resource interaction data monitoring data table, the method further includes: Call the order cooling component to determine the current order cooling status based on the updated resource interaction data monitoring data table; Send the current order cooling status to the order receiving component, and push the current order cooling status to the front-end interaction display interface through the order receiving component.
8. The method according to any one of claims 1 to 4, characterized in that When detecting a resource interaction service processing request, the method further includes: Obtain the order resource interaction volume carried by the resource interaction service processing request, and obtain the resource interaction volume threshold corresponding to the preset filtering condition; Compare the order resource interaction volume with the resource interaction volume threshold; If it is determined that the order resource interaction volume is less than the resource interaction volume threshold, skip the operation of determining the current order cooling status, accept a new resource interaction service order corresponding to the resource interaction service processing request, and process the new resource interaction service order to obtain an order processing result.
9. The method according to any one of claims 1 to 4, characterized in that The method further includes: If it is determined that the current order cooling status is cooling not completed, generate a prompt message during order cooling; Display the prompt message during order cooling, and detect a trigger operation on the skip cooling status detection component set for the front-end interaction display interface; If a trigger operation for the skip cooling status detection component is detected, the operation of determining the current order cooling status is skipped, a new resource interaction service order corresponding to the resource interaction service processing request is accepted, and the new resource interaction service order is processed to obtain an order processing result.
10. The method according to claim 2, wherein When parsing the current resource interaction data monitoring data, the method further includes: If the current resource interaction data monitoring data is empty, it is determined that the current order cooling status is cooling completed.
11. A resource interaction service processing device, characterized in that, The device includes: A current resource interaction data monitoring data acquisition module, configured to call an order cooling component to acquire current resource interaction data monitoring data if a resource interaction service processing request is detected; A current order cooling status determination module, configured to determine the current order cooling status based on the current resource interaction data monitoring data; A resource interaction service order processing module, configured to accept a new resource interaction service order corresponding to the resource interaction service processing request and process the new resource interaction service order to obtain an order processing result if it is determined that the current order cooling status is cooling completed.
12. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.