CN117575774A - Loan order notification method and device, storage medium and electronic equipment - Google Patents

Loan order notification method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117575774A
CN117575774A CN202311527198.4A CN202311527198A CN117575774A CN 117575774 A CN117575774 A CN 117575774A CN 202311527198 A CN202311527198 A CN 202311527198A CN 117575774 A CN117575774 A CN 117575774A
Authority
CN
China
Prior art keywords
loan
order
platform
state
notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311527198.4A
Other languages
Chinese (zh)
Inventor
陆春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Electronic Commerce Co Ltd
Original Assignee
Tianyi Electronic Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Electronic Commerce Co Ltd filed Critical Tianyi Electronic Commerce Co Ltd
Priority to CN202311527198.4A priority Critical patent/CN117575774A/en
Publication of CN117575774A publication Critical patent/CN117575774A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a loan order notification method, a loan order notification device, a storage medium and electronic equipment, wherein the method is applied to the field of financial science and technology and comprises the following steps: under the condition of updating the order state of the loan order, determining the current order state of the loan order; under the condition that the order state belongs to a preset state, sending the loan order to a message queue; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in a message queue according to a notification rule corresponding to a loan platform, and obtaining a first loan order; and sending a notification message to the loan platform corresponding to the first loan order. Through the method and the device, the problem that in the related art, different loan platforms have different notification rules, so that the work efficiency of the different loan platforms in the business butt joint process is low is solved.

Description

Loan order notification method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of financial science and technology, and in particular, to a loan order notification method, a loan order notification device, a storage medium, and an electronic device.
Background
In recent years, with the continuous development of internet consumption finance and loan business, a large number of internet loan platforms are emerging. To better serve loan subscribers, sometimes business collaboration is performed between loan platforms, requiring an intermediate channel loan platform to push a loan subscriber to another loan platform. The definition of the business states among the internet loan platforms is different, and a part of the loan platforms consider successful loan, namely, the loan business is successful, so that the user can be informed of the loan result, and the user can be ensured to receive the business notification message of successful loan in the first time. And the other part of loan platform considers that the successful payment cannot represent the end of the service, and the user needs to be notified after the payment plan is generated, so that the user can see the complete payment plan. Because the platforms have different definitions of successful payment, when the loan platform performs business docking, a party is often required to perform complex business logic judgment. Therefore, the middle channel loan platform needs to repeatedly develop similar business codes for different loan platforms at present, which results in the problem of lower working efficiency for docking different loan platforms.
Aiming at the problem that different loan platforms have different notification rules in the related art, so that the working efficiency of the different loan platforms in the process of business butt joint is lower, no effective solution is proposed at present.
Disclosure of Invention
The main objective of the present application is to provide a loan order notification method, device, storage medium and electronic equipment, so as to solve the problem that in the related art, different loan platforms have different notification rules, resulting in lower working efficiency of the different loan platforms in the process of business docking.
To achieve the above object, according to one aspect of the present application, there is provided a notification method of a loan order, the method comprising: under the condition of updating the order state of a loan order, determining the current order state of the loan order; under the condition that the order state belongs to a preset state, the loan order is sent to a message queue, wherein the message queue carries out asynchronous processing on the received loan order; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in the message queue according to the notification rule corresponding to the loan platform to obtain a first loan order, wherein the notification rule is used for indicating the order state of which the notification message needs to be sent to different loan platforms; and sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
Further, before determining, according to the notification rule corresponding to the loan platform, a loan order in which a notification message needs to be sent in the message queue, and obtaining a first loan order, the method further includes: determining a source platform of the loan order to obtain a loan platform set; determining a first order state corresponding to each loan platform according to the business requirement of each loan platform in the loan platform set, wherein the first order state refers to the order state of the loan order when the loan platform sends the notification message; and configuring notification rules corresponding to each loan platform according to the first order state corresponding to each loan platform.
Further, the preset state at least includes the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
Further, determining, according to the notification rule corresponding to the loan platform, a loan order in the message queue for which a notification message needs to be sent, where obtaining a first loan order includes: determining the order state of the loan order in the message queue to obtain the target state of the target loan order; determining a loan platform corresponding to the target loan order to obtain a first loan platform; determining a first order state corresponding to the first loan platform; and determining the target loan order as the first loan order under the condition that the target state belongs to the first order state corresponding to the first loan platform.
Further, sending a notification message to a loan platform corresponding to the first loan order includes: generating the notification message according to the current order state of the first loan order; and sending the notification message to a loan platform corresponding to the first loan order.
Further, prior to the order status update of the loan order, the method further comprises: storing an order status of the loan order in a target database, in case the loan order is received; after determining the loan order of the notification message to be sent in the message queue according to the notification rule corresponding to the loan platform, obtaining a first loan order, the method further comprises: and updating the order state in the target database according to the current order state of the first loan order.
Further, after determining, according to the notification rule corresponding to the loan platform, a loan order in which a notification message needs to be sent in the message queue, and obtaining a first loan order, the method further includes: and under the condition that the query instruction of the loan platform for the loan order is received, querying in the target database to obtain a query result of the query instruction.
To achieve the above object, according to another aspect of the present application, there is provided a loan order notification apparatus, comprising: a first determining unit, configured to determine a current order status of a loan order in a case of updating the order status of the loan order; the first sending unit is used for sending the loan order to a message queue under the condition that the order state belongs to a preset state, wherein the message queue carries out asynchronous processing on the received loan order; the second determining unit is used for determining the source platform of each loan order in the message queue to obtain the corresponding loan platform of each loan order under the condition that the existence of the loan order in the message queue is detected; a third determining unit, configured to determine, according to a notification rule corresponding to the loan platform, a loan order in which a notification message needs to be sent in the message queue, to obtain a first loan order, where the notification rule is used to indicate an order status in which the notification message needs to be sent to different loan platforms; and the second sending unit is used for sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
Further, the apparatus further comprises: a fourth determining unit, configured to determine, before determining, according to a notification rule corresponding to the loan platform, a loan order for which a notification message needs to be sent in the message queue to obtain a first loan order, a source platform of the loan order, and obtain a loan platform set; a fifth determining unit, configured to determine a first order state corresponding to each loan platform according to a service requirement of each loan platform in the loan platform set, where the first order state is an order state in which the loan order is located when the notification message is sent to the loan platform; and the configuration unit is used for configuring the notification rule corresponding to each loan platform according to the first order state corresponding to each loan platform.
Further, the preset state at least includes the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
Further, the third determination unit includes: a first determining subunit, configured to determine an order status of the loan order in the message queue, and obtain a target status of a target loan order; a second determining subunit, configured to determine a loan platform corresponding to the target loan order, to obtain a first loan platform; a third determining subunit, configured to determine a first order status corresponding to the first loan platform; and a fourth determining subunit, configured to determine the target loan order as the first loan order if the target state belongs to a first order state corresponding to the first loan platform.
Further, the second transmitting unit includes: a generating subunit, configured to generate the notification message according to the current order status of the first loan order; and the sending subunit is used for sending the notification message to the loan platform corresponding to the first loan order.
Further, the apparatus further comprises: a storage unit configured to store an order status of the loan order in a target database in a case where the loan order is received, before an order status update of the loan order; the apparatus further comprises: and the updating unit is used for updating the order state in the target database according to the current order state of the first loan order after determining the loan order needing to send the notification message in the message queue according to the notification rule corresponding to the loan platform to obtain the first loan order.
Further, the apparatus further comprises: and the inquiring unit is used for inquiring in the target database under the condition that the inquiring instruction of the loan platform for the loan order is received after the loan order of the notification message to be sent in the message queue is determined according to the notification rule corresponding to the loan platform to obtain the first loan order, so as to obtain the inquiring result of the inquiring instruction.
To achieve the above object, according to one aspect of the present application, there is provided a computer readable storage medium including a stored computer program, wherein the computer program when executed controls a device in which the computer readable storage medium is located to execute the notification method of the loan order described in any one of the above.
To achieve the above object, according to one aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for notifying a loan order as set forth in any one of the above.
Through the application, the following steps are adopted: under the condition of updating the order state of a loan order, determining the current order state of the loan order; under the condition that the order state belongs to a preset state, the loan order is sent to a message queue, wherein the message queue carries out asynchronous processing on the received loan order; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in the message queue according to the notification rule corresponding to the loan platform to obtain a first loan order, wherein the notification rule is used for indicating the order state of which the notification message needs to be sent to different loan platforms; and sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order, so that the problem that the work efficiency of different loan platforms in the business docking process is lower due to the fact that different loan platforms in the related technology have different notification rules is solved. By determining the order state of the received loan order, the notification message can be sent to the loan platform needing to know that the order state of the loan order is changed according to the notification rules of different loan platforms, so that the effect of meeting the business requirements of docking different loan platforms is achieved, the problem that repeated codes need to be developed for docking different loan platforms is avoided, and the work efficiency of docking different loan platforms is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a method of notification of a loan order, provided in accordance with an embodiment of the present application;
FIG. 2 is a schematic illustration I of an alternative loan order notification method provided in accordance with an embodiment I of the present application;
FIG. 3 is a schematic diagram II of an alternative loan order notification method provided in accordance with the first embodiment of the present application;
FIG. 4 is a schematic diagram of a notification device for loan orders provided in accordance with a second embodiment of the present application;
fig. 5 is a schematic diagram of a notification electronic device for a loan order provided according to a fifth embodiment of the application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the processing method, apparatus, storage medium, and method and apparatus for determining electronic device of the present application may be used in the process of docking different loan platforms in the field of financial technology, so as to improve the working efficiency of docking services, and may also be used in any field other than the field of financial technology, where the application fields of the processing method, apparatus, processor, and method and apparatus for electronic device of the present application are not limited.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, received or transmitted user information, etc.) and the data (including, but not limited to, data for analysis, stored data, displayed data, stored data, received or transmitted data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the relevant data need to comply with relevant laws and regulations and standards of the relevant area, and are provided with corresponding operation entries for the user to select authorization or rejection.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The invention will be described with reference to preferred implementation steps, and FIG. 1 is a flowchart of a loan order notification method provided according to an embodiment of the present application, as shown in FIG. 1, the method comprising the steps of:
in step S101, in the case of updating the order status of the loan order, the current order status of the loan order is determined.
In the first embodiment, in order to interface with different loan platforms, after the order status of the loan order is updated, the current order status of the loan order is determined, so that a notification message is timely sent to the loan platform corresponding to the loan order according to the current order status of the loan order.
In addition, if the duration of the order status of the loan order is not updated exceeds the preset duration (for example, 30 days), a reminding message may be sent to the loan platform corresponding to the loan order, so as to remind the loan platform to perform corresponding processing.
Step S102, under the condition that the order state belongs to the preset state, the loan order is sent to a message queue, wherein the message queue carries out asynchronous processing on the received loan order.
In the first embodiment, in order to improve the efficiency of processing the loan order, the loan order belonging to the preset state may be sent to the message queue, and the received loan order may be asynchronously processed through the message queue. The preset state refers to a preset order state, when the order state of the received loan order belongs to the preset state, the loan order needs to be sent to a message queue, and the message queue is processed; when the order state of the received loan order does not belong to the preset state, the received order state does not need to be sent to the message queue.
It should be noted that the message queues described above include, but are not limited to, asynchronous message notification tools such as Kafka, rocketMQ.
Step S103, under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain the corresponding loan platform of each loan order.
In the first embodiment, when it is detected that a loan order exists in the message queue, an external source loan platform of each existing loan order, that is, a loan platform corresponding to each loan order, needs to be determined, so that it is beneficial to inform the loan platform corresponding to the loan order of the order status of the loan order.
Step S104, determining the loan order of the notification message to be sent in the message queue according to the notification rule corresponding to the loan platform, and obtaining a first loan order, wherein the notification rule is used for indicating the order state of the notification message to be sent to different loan platforms.
In the first embodiment, in order to meet the business requirements of different loan platforms, it may be determined whether a loan order (i.e., the first loan order described above) for which a notification message needs to be sent exists in the message queue according to the notification rule corresponding to each loan platform. The notification rule refers to a rule corresponding to different loan platforms for sending notification messages, for example, the notification rule of the loan platform a is that when the loan order of the loan platform a is in a successful state of paying, the notification message is sent to the loan platform a.
Step S105, a notification message is sent to the loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order status of the loan order.
In the first embodiment, after determining that the first loan order exists in the message queue, a notification message needs to be sent to a loan platform corresponding to the first loan order, so as to notify the loan platform of the order status of the loan order according to the business requirement of the loan platform.
In a first embodiment, the notification method of the loan order in the present solution may be used in a loan notification system, where the loan notification system interfaces with different external loan platforms and establishes communication connection with a loan service processing system that processes and approves the loan order, and the loan notification system sends notification messages of the order status to the corresponding loan platforms according to the messages of the loan order after receiving the messages of the loan order.
In summary, in the notification method of a loan order provided in the first embodiment of the present application, the current order status of the loan order is determined under the condition that the order status of the loan order is updated; under the condition that the order state belongs to a preset state, sending the loan order to a message queue, wherein the message queue carries out asynchronous processing on the received loan order; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in a message queue according to notification rules corresponding to loan platforms to obtain a first loan order, wherein the notification rules are used for indicating order states of the notification messages which need to be sent to different loan platforms; and sending a notification message to the loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order, and the problem that the work efficiency of different loan platforms in the business docking process is lower due to the fact that different loan platforms have different notification rules in the related art is solved. By determining the order state of the received loan order, the notification message can be sent to the loan platform needing to know that the order state of the loan order is changed according to the notification rules of different loan platforms, so that the effect of meeting the business requirements of docking different loan platforms is achieved, the problem that repeated codes need to be developed for docking different loan platforms is avoided, and the work efficiency of docking different loan platforms is improved.
Optionally, in the method for notifying a loan order provided in the first embodiment of the present application, before determining, according to a notification rule corresponding to a loan platform, a loan order for which a notification message needs to be sent in a message queue, and obtaining a first loan order, the method further includes: determining a source platform of a loan order to obtain a loan platform set; determining a first order state corresponding to each loan platform according to the business requirement of each loan platform in the loan platform set, wherein the first order state refers to the order state of the loan order when the loan platform sends notification messages; and configuring notification rules corresponding to each loan platform according to the first order state corresponding to each loan platform.
In the first embodiment, in order to meet the business requirements of different loan platforms, a corresponding notification rule needs to be configured for each loan platform. Specifically, determining an external loan platform to which a loan order received by a loan notification system belongs, and obtaining a loan platform set; determining the business requirement of each loan platform in the loan platform set, and determining the time when the order state of the loan order is required to be notified to the loan platform according to the business requirement, namely, when the loan order belongs to the first order state, transmitting a notification message to the loan platform; finally, the notification rule corresponding to each loan platform is configured according to the first order state corresponding to each loan platform, for example, the notification rule configured by the loan platform A is to send notification information to the loan platform A when the order state of the loan order is generated for the repayment plan, and does not take any action when the order state of the loan order is other.
By configuring different notification rules for different loan platforms, the business requirements of the different loan platforms can be met, different business codes are prevented from being developed for different business systems, manpower resources are saved, and the effect of improving the working efficiency when the different loan platforms are connected is achieved.
Optionally, in the loan order notification method provided in the first embodiment of the present application, the preset state at least includes the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
In the first embodiment, some order states are pre-configured for a loan order according to the business process that the loan order needs to go through, including: the system comprises a successful payment state, a failed payment state, a generation state of a repayment plan and a synchronous completion state of a payment party, wherein the successful payment state refers to successful payment of the payment party of a loan order, the failed payment state refers to failed payment of the payment party of the loan order, the generation state of the repayment plan refers to successful generation of the repayment plan by a loan platform, and the synchronous completion state of the payment party refers to synchronization of the processing state of the loan platform on the loan order to a loan notification system, a loan user and the like.
The order state of the loan order can be unified by presetting the order state of the loan order, so that notification rules are formulated with different loan platforms, and the problem of development workload increase caused by different definition of the order state by different loan platforms is avoided.
Optionally, in the notification method of a loan order provided in the first embodiment of the present application, determining, according to a notification rule corresponding to a loan platform, a loan order for which a notification message needs to be sent in a message queue, and obtaining the first loan order includes: determining the order state of the loan order in the message queue to obtain the target state of the target loan order; determining a loan platform corresponding to the target loan order to obtain a first loan platform; determining a first order state corresponding to a first loan platform; and determining the target loan order as the first loan order in the case that the target state belongs to the first order state corresponding to the first loan platform.
In the first embodiment, in order to determine the loan order in which the notification message needs to be sent in the message queue, a determination is made according to the notification rule of each loan platform.
Specifically, determining an order status (i.e., the target status described above) of the message queue currently processing the loan order (i.e., the target loan order described above); then, determining a loan platform (namely the first loan platform) corresponding to the target loan order according to the order information of the target loan order; secondly, determining notification rules corresponding to the first loan platform in the notification rules corresponding to each loan platform, namely determining a first order state corresponding to the first loan platform; finally, judging whether the target state belongs to the first order state, if so, sending a notification message to a first loan platform corresponding to the target loan order, namely determining the target loan order as the first loan order; if the target status does not belong to the first order status, the order message queue processes the next loan order in the message queue.
In an alternative embodiment, the notification rule configured by the loan platform a is a notification after the repayment plan is generated, and when the order status of the loan order A1 is a successful state of paying, the loan platform a is not required to be notified, and the message queue processes the next loan order; when the order status of the loan order A1 is the repayment plan generation status, a notification message needs to be sent to the loan platform a, and then the next loan order is processed by the message queue.
The loan orders are sequentially processed through the message queues, the order state of each loan order is determined, and whether the corresponding notification message needs to be sent or not can be judged according to the notification rule of each loan platform, so that the business requirement of each loan platform is met, and the work efficiency of business docking is improved.
Optionally, in the notification method of a loan order provided in the first embodiment of the present application, sending a notification message to a loan platform corresponding to the first loan order includes: generating a notification message according to the current order state of the first loan order; and sending the notification message to the loan platform corresponding to the first loan order.
In the first embodiment, when it is determined that there is a first loan order for which a notification message needs to be sent in the message queue, it is necessary to generate a notification message (e.g., an http message) corresponding to the first loan order in the loan notification system, and send the generated notification message to a loan platform corresponding to the first loan order, so as to notify the loan platform of a business result or a business status of the first loan order.
In addition, when the notification message is generated, other data information of the loan order can be added into the notification message according to the business requirement of each loan platform so that the loan platform can acquire more information.
By generating the notification message corresponding to the first loan order, the corresponding loan platform can be notified of the business result or business state of the first loan order, and the effect of completing business docking with different loan platforms is realized.
Optionally, in the method for notifying a loan order provided in the first embodiment of the present application, before updating the order status of the loan order, the method further includes: in the case of receiving a loan order, storing an order status of the loan order in a target database; after determining a loan order for which a notification message needs to be sent in the message queue according to a notification rule corresponding to the loan platform, and obtaining a first loan order, the method further comprises: and updating the order state in the target database according to the current order state of the first loan order.
In the first embodiment, in order to record and save the information of the loan order, after the loan platform receives the loan order, the order information of the loan order may be created in the target database, if the order information of the loan order already exists in the target database, the creation is not required to be repeated, and the order state of the loan order is also written into the order information; then, when the loan order is determined to belong to the first loan order, the order information of the loan order in the target database is updated, and if the loan order does not belong to the first loan order, the order information in the target database is not required to be updated. By storing the order information of the loan order in the target database and updating the order information of the target database in time when the loan order needs to send the notification message, the method is beneficial to follow-up management and tracing, and improves the service reliability.
Optionally, in the method for notifying a loan order provided in the first embodiment of the present application, after determining, according to a notification rule corresponding to a loan platform, a loan order for which a notification message needs to be sent in a message queue, the method further includes: under the condition that a query instruction of a loan platform for a loan order is received, querying is carried out in a target database, and a query result of the query instruction is obtained.
When a query request or a query instruction of a loan platform is received in the first embodiment, corresponding information can be queried from the target database according to order information of a loan order stored in the target database, so as to inform the loan platform of order status and detailed information of the loan order, thereby meeting the query requirement of the loan platform and improving the business reliability.
Alternatively, in the first embodiment, the timing chart for generating the notification message of the loan order and transmitting to the corresponding loan platform may be as shown in fig. 2, first, the loan user submits the loan order, and the external channel loan platform receives the loan order submitted by the user and transmits the loan order to the loan notification system; the loan notification system records the information of the loan order, and sends the loan order to the loan business processing system, and the loan business processing system records the loan order and examines and approves the information of the loan order; under the condition that the loan order is approved, notifying a loan bank to carry out loan, and returning a message to a loan business processing system and a loan notifying system after the loan bank successfully pays the money; after receiving the information returned by the loan order, the loan notification system determines the current order state of the loan order, inquires about a preset notification rule, and determines that a notification message needs to be sent to an external channel loan platform corresponding to the loan order; the loan notifying system generates and transmits a notifying message, and the external channel loan platform notifies the loan user after receiving the notifying message of successful loan.
Alternatively, in the first embodiment, the step of generating a notification message of a loan order and transmitting the notification message to a corresponding loan platform may be as shown in fig. 3. Specifically, step S301, configuring a borrowing result notification rule of an external channel loan platform, i.e. the notification rule of the loan platform; step S302, receiving and recording a loan order of an external channel loan platform, pushing the loan order to a loan business processing system for processing the loan order, recording the loan information of the loan order by the loan business processing system, approving the loan order to obtain order information, notifying a payoff party to pay money under the condition that the loan order is approved, and returning a successful money-paying message to the loan business processing system and the loan notification system by the payoff party after the money-paying is successful; step S303, receiving a successful loan-order-placing message, and determining the current order state of the loan order; step S304, reading notification rules of the external channel loan platform aiming at different order states, and determining whether a notification message needs to be sent to the external channel loan platform; step S305, in the case that the notification message is determined to be required to be sent according to the notification rule of the external channel loan platform, the notification message is sent to the external channel loan platform, and the information of the target database in the loan notification system is updated.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
Example two
The second embodiment of the present application also provides a notification device for a loan order, and it should be noted that the notification device for a loan order in the second embodiment of the present application may be used to execute the notification method for a loan order provided in the first embodiment of the present application. The following describes a loan order notification device provided in the second embodiment of the present application.
Fig. 4 is a schematic diagram of a loan order notification device according to a second embodiment of the application. As shown in fig. 4, the apparatus includes: a first determination unit 401, a first transmission unit 402, a second determination unit 403, a third determination unit 404, and a second transmission unit 405.
Specifically, the first determining unit 401 is configured to determine, in the case of updating the order status of the loan order, the current order status of the loan order.
The first sending unit 402 is configured to send the loan order to a message queue when the order status belongs to a preset status, where the message queue performs asynchronous processing on the received loan order.
The second determining unit 403 is configured to determine, when it is detected that a loan order exists in the message queue, a source platform of each loan order in the message queue, and obtain a loan platform corresponding to each loan order.
And a third determining unit 404, configured to determine, according to a notification rule corresponding to a loan platform, a loan order in which a notification message needs to be sent in the message queue, and obtain a first loan order, where the notification rule is used to indicate an order status in which the notification message needs to be sent to different loan platforms.
The second sending unit 405 is configured to send a notification message to a loan platform corresponding to the first loan order, where the notification message is configured to notify the loan platform of an order status of the loan order.
In the notification device for a loan order provided in the second embodiment of the present application, the first determining unit 401 determines, when the order status of the loan order is updated, the current order status of the loan order; the first sending unit 402 sends the loan order to a message queue under the condition that the order state belongs to a preset state, wherein the message queue performs asynchronous processing on the received loan order; the second determining unit 403 determines a source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order if it is detected that the loan order exists in the message queue; the third determining unit 404 determines, according to a notification rule corresponding to a loan platform, a loan order in which a notification message needs to be sent in a message queue, to obtain a first loan order, where the notification rule is used to indicate an order state in which the notification message needs to be sent to different loan platforms; the second sending unit 405 sends a notification message to the loan platform corresponding to the first loan order, where the notification message is used to notify the loan platform of the order status of the loan order, which solves the problem in the related art that different loan platforms have different notification rules, resulting in lower working efficiency of different loan platforms in the process of business docking. By determining the order state of the received loan order, the notification message can be sent to the loan platform needing to know that the order state of the loan order is changed according to the notification rules of different loan platforms, so that the effect of meeting the business requirements of docking different loan platforms is achieved, the problem that repeated codes need to be developed for docking different loan platforms is avoided, and the work efficiency of docking different loan platforms is improved.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the device further includes: a fourth determining unit, configured to determine a source platform of the loan order before determining, according to a notification rule corresponding to the loan platform, a loan order in which a notification message needs to be sent in the message queue to obtain a first loan order, and obtain a loan platform set; a fifth determining unit, configured to determine, according to a service requirement of each loan platform in the loan platform set, a first order state corresponding to each loan platform, where the first order state is an order state in which a loan order is located when a notification message is sent to the loan platform; and the configuration unit is used for configuring the notification rule corresponding to each loan platform according to the first order state corresponding to each loan platform.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the preset state at least includes the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the third determining unit 404 includes: a first determining subunit, configured to determine an order status of a loan order in the message queue, and obtain a target status of a target loan order; the second determining subunit is used for determining a loan platform corresponding to the target loan order to obtain a first loan platform; a third determining subunit, configured to determine a first order status corresponding to the first loan platform; and a fourth determining subunit, configured to determine the target loan order as the first loan order if the target state belongs to the first order state corresponding to the first loan platform.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the second sending unit 405 includes: a generating subunit, configured to generate a notification message according to a current order status of the first loan order; and the sending subunit is used for sending the notification message to the loan platform corresponding to the first loan order.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the device further includes: a storage unit for storing the order status of the loan order in a target database in the case of receiving the loan order before the order status of the loan order is updated; the device further comprises: and the updating unit is used for determining the loan order of the notification message to be sent in the message queue according to the notification rule corresponding to the loan platform, and updating the order state in the target database according to the current order state of the first loan order after the first loan order is obtained.
Optionally, in the loan order notification device provided in the second embodiment of the present application, the device further includes: and the inquiring unit is used for inquiring in the target database under the condition that the inquiring instruction of the loan platform for the loan order is received after the loan order of the notification message to be sent in the message queue is determined according to the notification rule corresponding to the loan platform to obtain the first loan order, so as to obtain the inquiring result of the inquiring instruction.
The loan order notification device includes a processor and a memory, where the first determining unit 401, the first transmitting unit 402, the second determining unit 403, the third determining unit 404, the second transmitting unit 405, and the like are stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the working efficiency of the docking service is improved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
A third embodiment of the present invention provides a computer-readable storage medium having stored thereon a program that, when executed by a processor, implements a method of notifying a loan order.
The fourth embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute a notification method of a loan order.
As shown in fig. 5, a fifth embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: under the condition of updating the order state of the loan order, determining the current order state of the loan order; under the condition that the order state belongs to a preset state, sending the loan order to a message queue, wherein the message queue carries out asynchronous processing on the received loan order; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in a message queue according to notification rules corresponding to loan platforms to obtain a first loan order, wherein the notification rules are used for indicating order states of the notification messages which need to be sent to different loan platforms; and sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
The processor also realizes the following steps when executing the program: before determining a loan order for which a notification message needs to be sent in the message queue according to the notification rule corresponding to the loan platform to obtain a first loan order, the method further comprises: determining a source platform of a loan order to obtain a loan platform set; determining a first order state corresponding to each loan platform according to the business requirement of each loan platform in the loan platform set, wherein the first order state refers to the order state of the loan order when the loan platform sends notification messages; and configuring notification rules corresponding to each loan platform according to the first order state corresponding to each loan platform.
The processor also realizes the following steps when executing the program: the preset states at least include the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
The processor also realizes the following steps when executing the program: determining a loan order of which a notification message needs to be sent in a message queue according to a notification rule corresponding to a loan platform, and obtaining a first loan order comprises: determining the order state of the loan order in the message queue to obtain the target state of the target loan order; determining a loan platform corresponding to the target loan order to obtain a first loan platform; determining a first order state corresponding to a first loan platform; and determining the target loan order as the first loan order in the case that the target state belongs to the first order state corresponding to the first loan platform.
The processor also realizes the following steps when executing the program: the sending of the notification message to the loan platform corresponding to the first loan order includes: generating a notification message according to the current order state of the first loan order; and sending the notification message to the loan platform corresponding to the first loan order.
The processor also realizes the following steps when executing the program: the method further comprises, before the order status update of the loan order: in the case of receiving a loan order, storing an order status of the loan order in a target database; after determining a loan order for which a notification message needs to be sent in the message queue according to a notification rule corresponding to the loan platform, and obtaining a first loan order, the method further comprises: and updating the order state in the target database according to the current order state of the first loan order.
The processor also realizes the following steps when executing the program: after determining a loan order for which a notification message needs to be sent in the message queue according to a notification rule corresponding to the loan platform, and obtaining a first loan order, the method further comprises: under the condition that a query instruction of a loan platform for a loan order is received, querying is carried out in a target database, and a query result of the query instruction is obtained.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: under the condition of updating the order state of the loan order, determining the current order state of the loan order; under the condition that the order state belongs to a preset state, sending the loan order to a message queue, wherein the message queue carries out asynchronous processing on the received loan order; under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order; determining a loan order of which the notification message needs to be sent in a message queue according to notification rules corresponding to loan platforms to obtain a first loan order, wherein the notification rules are used for indicating order states of the notification messages which need to be sent to different loan platforms; and sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: before determining a loan order for which a notification message needs to be sent in the message queue according to the notification rule corresponding to the loan platform to obtain a first loan order, the method further comprises: determining a source platform of a loan order to obtain a loan platform set; determining a first order state corresponding to each loan platform according to the business requirement of each loan platform in the loan platform set, wherein the first order state refers to the order state of the loan order when the loan platform sends notification messages; and configuring notification rules corresponding to each loan platform according to the first order state corresponding to each loan platform.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the preset states at least include the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: determining a loan order of which a notification message needs to be sent in a message queue according to a notification rule corresponding to a loan platform, and obtaining a first loan order comprises: determining the order state of the loan order in the message queue to obtain the target state of the target loan order; determining a loan platform corresponding to the target loan order to obtain a first loan platform; determining a first order state corresponding to a first loan platform; and determining the target loan order as the first loan order in the case that the target state belongs to the first order state corresponding to the first loan platform.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the sending of the notification message to the loan platform corresponding to the first loan order includes: generating a notification message according to the current order state of the first loan order; and sending the notification message to the loan platform corresponding to the first loan order.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the method further comprises, before the order status update of the loan order: in the case of receiving a loan order, storing an order status of the loan order in a target database; after determining a loan order for which a notification message needs to be sent in the message queue according to a notification rule corresponding to the loan platform, and obtaining a first loan order, the method further comprises: and updating the order state in the target database according to the current order state of the first loan order.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after determining a loan order for which a notification message needs to be sent in the message queue according to a notification rule corresponding to the loan platform, and obtaining a first loan order, the method further comprises: under the condition that a query instruction of a loan platform for a loan order is received, querying is carried out in a target database, and a query result of the query instruction is obtained.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of informing a loan order, comprising:
under the condition of updating the order state of a loan order, determining the current order state of the loan order;
under the condition that the order state belongs to a preset state, the loan order is sent to a message queue, wherein the message queue carries out asynchronous processing on the received loan order;
Under the condition that the existence of the loan orders in the message queue is detected, determining the source platform of each loan order in the message queue to obtain a loan platform corresponding to each loan order;
determining a loan order of which the notification message needs to be sent in the message queue according to the notification rule corresponding to the loan platform to obtain a first loan order, wherein the notification rule is used for indicating the order state of which the notification message needs to be sent to different loan platforms;
and sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
2. The method of claim 1, wherein prior to determining a loan order in the message queue for which a notification message is to be sent according to a notification rule corresponding to the loan platform, obtaining a first loan order, the method further comprises:
determining a source platform of the loan order to obtain a loan platform set;
determining a first order state corresponding to each loan platform according to the business requirement of each loan platform in the loan platform set, wherein the first order state refers to the order state of the loan order when the loan platform sends the notification message;
And configuring notification rules corresponding to each loan platform according to the first order state corresponding to each loan platform.
3. The method according to claim 1, wherein the preset states comprise at least the following states: a successful state of paying, a failed state of paying, a generating state of repayment plan, and a synchronous state of the paying party.
4. The method of claim 2, wherein determining a loan order in the message queue for which a notification message is to be sent according to a notification rule corresponding to the loan platform, obtaining a first loan order comprises:
determining the order state of the loan order in the message queue to obtain the target state of the target loan order;
determining a loan platform corresponding to the target loan order to obtain a first loan platform;
determining a first order state corresponding to the first loan platform;
and determining the target loan order as the first loan order under the condition that the target state belongs to the first order state corresponding to the first loan platform.
5. The method of claim 1, wherein sending a notification message to a loan platform corresponding to the first loan order comprises:
Generating the notification message according to the current order state of the first loan order;
and sending the notification message to a loan platform corresponding to the first loan order.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
before the order status update of the loan order, the method further comprises: storing an order status of the loan order in a target database, in case the loan order is received;
after determining the loan order of the notification message to be sent in the message queue according to the notification rule corresponding to the loan platform, obtaining a first loan order, the method further comprises: and updating the order state in the target database according to the current order state of the first loan order.
7. The method of claim 6, wherein after determining a loan order in the message queue for which a notification message is to be sent according to a notification rule corresponding to the loan platform, obtaining a first loan order, the method further comprises:
and under the condition that the query instruction of the loan platform for the loan order is received, querying in the target database to obtain a query result of the query instruction.
8. A loan order notification device, comprising:
a first determining unit, configured to determine a current order status of a loan order in a case of updating the order status of the loan order;
the first sending unit is used for sending the loan order to a message queue under the condition that the order state belongs to a preset state, wherein the message queue carries out asynchronous processing on the received loan order;
the second determining unit is used for determining the source platform of each loan order in the message queue to obtain the corresponding loan platform of each loan order under the condition that the existence of the loan order in the message queue is detected;
a third determining unit, configured to determine, according to a notification rule corresponding to the loan platform, a loan order in which a notification message needs to be sent in the message queue, to obtain a first loan order, where the notification rule is used to indicate an order status in which the notification message needs to be sent to different loan platforms;
and the second sending unit is used for sending a notification message to a loan platform corresponding to the first loan order, wherein the notification message is used for notifying the loan platform of the order state of the loan order.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the method of notifying a loan order as claimed in any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of notifying a loan order of any of claims 1-7.
CN202311527198.4A 2023-11-15 2023-11-15 Loan order notification method and device, storage medium and electronic equipment Pending CN117575774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311527198.4A CN117575774A (en) 2023-11-15 2023-11-15 Loan order notification method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311527198.4A CN117575774A (en) 2023-11-15 2023-11-15 Loan order notification method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117575774A true CN117575774A (en) 2024-02-20

Family

ID=89891068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311527198.4A Pending CN117575774A (en) 2023-11-15 2023-11-15 Loan order notification method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117575774A (en)

Similar Documents

Publication Publication Date Title
US20200327551A1 (en) Resource transferring monitoring method and device
CN109803004B (en) Block chain intelligent contract management method and device, electronic equipment and storage medium
CN112016921B (en) Transaction processing method, device and equipment
CN110968586A (en) Distributed transaction processing method and device
CN110992040A (en) Transaction processing method, device and equipment
CN107169752B (en) Resource transfer method and device
CN111062622A (en) Electric power market trading system
CN110781500A (en) Data wind control system and method
CN111159298A (en) Service request processing method and device, electronic equipment and storage medium
CN117575774A (en) Loan order notification method and device, storage medium and electronic equipment
CN113837870B (en) Financial risk data approval method and device
CN110381150B (en) Data processing method and device on block chain, electronic equipment and storage medium
CN114116908A (en) Data management method and device and electronic equipment
CN109308219B (en) Task processing method and device and distributed computer system
CN112950171A (en) Bank business processing system and method
CN112769928A (en) Information interaction method and device based on service scene
CN112764676A (en) Resource allocation system and method
CN111966892A (en) Data processing method and device, computer storage medium and electronic equipment
CN111930620B (en) Application running environment data processing method and device
CN110060128B (en) Data management method and system
CN111639936B (en) Transaction information acquisition method and device, electronic equipment and readable storage medium
WO2023207213A1 (en) Data processing method, and apparatus
CN114997950A (en) Order state maintenance system
CN113722295A (en) Data processing method and device
CN117527462A (en) Connection channel determination method and device, electronic equipment and processor

Legal Events

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