Automatic clearing method and system, storage medium and electronic equipment
By configuring scheduled settlement tasks on the XXL-JOB platform and combining them with multi-threading technology, automated loan data screening and deduction operations were achieved, solving the problem of overdue payments caused by forgetting to settle accounts, improving settlement efficiency and system stability, reducing risks, and enhancing customer credit ratings and loan recovery rates.
Patent Information
- Application Number
- CN202411184015.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
With the widespread adoption of mobile payments and internet finance, people are prone to forgetting to settle accounts on time, leading to overdue settlements, which negatively impacts personal credit ratings and increases collection costs for financial institutions.
By configuring scheduled settlement tasks based on the XXL-JOB platform, using multi-threading technology to filter loan data and perform automatic deduction operations, and combining this with an SMS notification mechanism, automatic settlement for customers can be achieved.
It improved clearing efficiency, reduced operational risks, ensured the accuracy of clearing and the stability of the system, and enhanced customer satisfaction and loan asset recovery rate.
Smart Images

Figure CN119006147A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of financial systems, and in particular relates to an automatic clearing method, system, storage medium and electronic equipment. Background Art
[0002] With the popularization of mobile payment and Internet finance, people's lives have become more convenient. Now, with just a mobile phone, you can easily complete financial activities such as shopping, transfers, and loans. However, while enjoying this convenience, it also brings some problems. Due to the accelerated pace of life and increased work pressure, many people forget to settle on time in their busy schedule, even if they receive a settlement SMS reminder. Forgetting to settle will lead to overdue payments and affect the customer's personal credit. Under my country's credit system, overdue settlements will be recorded in personal credit reports, which will have an adverse impact on future financial activities. For example, customers with a large number of overdue settlement records may be rejected by financial institutions when applying for mortgages, car loans and other loans, or be required to provide higher interest rates and more guarantees. In addition, in order to recover overdue loans, financial institutions need to invest a lot of manpower, material resources and financial resources to collect them, which increases the collection costs of financial institutions.
[0003] Therefore, how to provide a method to solve the above problems has become an urgent problem to be solved by those skilled in the art. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide an automatic liquidation method, system, storage medium and electronic device to realize the automatic liquidation function of customers, help consumers avoid overdue liquidation, improve credit ratings, and simplify financial management processes. At the same time, it can reduce the risks and costs of financial institutions and improve the recovery rate of loan assets.
[0005] In a first aspect, the present invention provides an automatic liquidation method, the method comprising the following steps:
[0006] Configure scheduled liquidation tasks based on the XXL-JOB platform;
[0007] Obtain user loan data, filter loan data that meets the scheduled settlement task and generate corresponding business files;
[0008] Automatic deduction operation is performed based on the scheduled settlement task and the business file.
[0009] In an implementation of the first aspect, after obtaining user loan data, screening loan data that meets the scheduled settlement task and generating a corresponding business file, the following steps are included:
[0010] Preliminarily screening the first liquidation list based on the user loan data;
[0011] The first liquidation note list is screened again using multi-threading technology to obtain a second liquidation list.
[0012] In an implementation of the first aspect, the first liquidation list is screened again by using a multithreading technology to obtain a second liquidation list, including the following steps:
[0013] Dividing the first liquidation list into a preset number of partitions and assigning the partitions to corresponding threads;
[0014] Each thread performs business logic verification on the first clearing list partition to generate corresponding processing results and summarizes them to form a second clearing list.
[0015] In an implementation of the first aspect, each thread performs a business logic check on the first clearing list partition, including the following steps:
[0016] Determining whether the first liquidation list partition meets the preset conditions of the scheduled liquidation task;
[0017] If yes, continue to verify whether the account status of the user in the first liquidation list has the liquidation capability;
[0018] If the liquidation capability is available, continue to check whether the user in the first liquidation list meets the conditions for preventing automatic liquidation.
[0019] In an implementation of the first aspect, the first liquidation note list is screened again by using a multithreading technology to obtain a second liquidation note list, including the following steps:
[0020] Each thread performs a trial calculation function on the corresponding user in the first clearing list to obtain the amount that the user should repay;
[0021] The order of deductions is determined based on preset settlement rules and the amount due.
[0022] In an implementation of the first aspect, the amount to be repaid includes the total amount to be repaid, the principal to be repaid, the interest to be repaid, the penalty interest to be repaid, and the fees to be repaid.
[0023] In an implementation of the first aspect, after performing the automatic deduction operation based on the scheduled settlement task and the business file, it also includes: collecting deduction result data and providing the deduction result data notification to the user, wherein the deduction result data includes: the amount of successful deduction, the reason for failed deduction and user feedback information.
[0024] In a second aspect, the present invention provides an automatic clearing system, the system comprising a task configuration module, a data screening module and an automatic deduction module;
[0025] The configuration task module is used to configure the scheduled clearing tasks based on the XXL-JOB platform;
[0026] The data screening module is used to obtain user loan data, screen loan data that meets the scheduled settlement task and generate corresponding business files;
[0027] The automatic deduction module is used to perform automatic deduction operations based on the scheduled settlement task and the business file.
[0028] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0029] The memory is used to store computer programs;
[0030] The processor is used to execute the computer program stored in the memory so that the electronic device performs the above-mentioned automatic liquidation method.
[0031] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned automatic liquidation method when executed by an electronic device.
[0032] As described above, the automatic liquidation method, system, storage medium and electronic device of the present invention have the following beneficial effects:
[0033] The automatic liquidation method, system, storage medium and electronic device of the present invention have the following technical effects:
[0034] 1. Improve liquidation efficiency: Through the timed task configuration based on the XXL-JOB platform, the automatic scheduling of batch liquidation tasks is realized, which improves the efficiency of liquidation processing.
[0035] 2. Reduce operational risks: The application of multi-threading technology enables the system to process a large number of IOUs in parallel, reducing the need for manual intervention and the risk of operational errors.
[0036] 3. Flexible task management: The configurability of the number of threads enables the system to be dynamically adjusted according to changes in business volume, improving the flexibility and scalability of the system.
[0037] 4. Accurate settlement processing: The introduction of the trial calculation function and the splitting of the amount payable ensure the accuracy of the settlement operation and improve customer satisfaction.
[0038] 5. Real-time SMS notification: Through the SMS notification mechanism, customers can learn about the settlement results in a timely manner, which improves the service response speed.
[0039] 6. Data consistency and security: Through thread synchronization and database operation locking mechanism, data consistency and security are ensured, avoiding race conditions and data inconsistency problems.
[0040] 7. System stability and reliability: Through multi-threading technology and distributed task scheduling, the system stability and reliability are improved and the risk of system overload is reduced.
[0041] In summary, the present invention improves the efficiency and accuracy of clearing processing, reduces operational risks, and ensures the stability and reliability of the system through technical means such as automation, multi-threading and distributed task scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 Shown is a flow chart of an automatic liquidation method in one embodiment of the present invention;
[0043] Figure 2 It is a module interaction flow chart of the automatic liquidation method of the present invention in the context of a distributed system;
[0044] Figure 3 Shown is a preliminary screening flow chart of the automatic liquidation method of the present invention;
[0045] Figure 4 Shown is the automatic liquidation logic flow chart of the present invention;
[0046] Figure 5 Shown is a schematic diagram of the structure of an electronic device of the present invention in one embodiment;
[0047] Figure 6 Shown is a schematic diagram of the structure of an automatic clearing system of the present invention in one embodiment; DETAILED DESCRIPTION
[0048] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0049] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0050] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0051] like Figure 1 As shown, in one embodiment, the automatic liquidation method of the present invention includes steps S11 to S13.
[0052] Step S11, configuring the scheduled clearing task based on the XXL-JOB platform.
[0053] Specifically, on the XXL-JOB distributed task scheduling platform, the system administrator will set a scheduled task to automatically perform liquidation operations, which includes the following steps:
[0054] S111. Create a task: On the XXL-JOB platform, the administrator needs to create a new task. This involves filling in the basic information of the task, such as task name, task description, execution time, etc.
[0055] S112, configure execution strategy: The administrator needs to set the execution strategy of the task, including the execution cycle (such as daily, weekly, etc.), execution time point, etc. These settings ensure that the task is automatically triggered at the scheduled time.
[0056] S113. Setting task parameters: The administrator needs to configure the parameters required for task execution, such as the IOU data to be processed, liquidation rules, SMS notification configuration, etc. These parameters will be passed to the executor when the task is executed so that the task can be executed correctly.
[0057] S114, Task submission: After completing the above settings, the administrator needs to submit the task so that the XXL-JOB platform can start managing this scheduled task. After submission, the task will enter the pending state and wait for the scheduled time point to arrive.
[0058] S115, Task Execution: When the task scheduling time arrives, the XXL-JOB platform will trigger the task execution. The executor will perform corresponding clearing operations according to the task parameters and configuration, such as obtaining loan data, screening eligible loan data, generating business files, and executing automatic deductions.
[0059] S116, Task monitoring: During the execution process, the XXL-JOB platform will monitor the execution status of the task, including execution success, execution failure, execution in progress, execution timeout, etc. These status information can be viewed by the administrator to understand the execution status of the task in a timely manner.
[0060] By configuring scheduled liquidation tasks based on the XXL-JOB platform, the system can realize automated liquidation processes, improve liquidation efficiency, reduce manual intervention, and reduce the risk of operational errors. At the same time, the XXL-JOB platform provides task management and monitoring functions, which facilitates administrators to manage and optimize liquidation tasks.
[0061] Step S12: Obtain user loan data, screen loan data that meets the scheduled settlement task and generate corresponding business files.
[0062] Specifically, obtaining user loan data, screening loan data that meets the timed settlement task and generating corresponding business files includes the following steps:
[0063] Preliminarily screening the first liquidation list based on the user loan data;
[0064] The first liquidation note list is screened again using multi-threading technology to obtain a second liquidation list.
[0065] The system will filter out all the IOU numbers that need to be processed from the database according to the specific conditions in step S11 (such as settlement date, overdue status, etc.). This step usually involves a query of the database to obtain a list of IOU numbers. Based on this, the system completes the initial screening and obtains the first settlement list.
[0066] In actual applications, in order to ensure the stability and reliability of the system, multiple scheduled clearing tasks are usually not set to run simultaneously. On the contrary, one scheduled clearing task usually covers all the IOUs that need to be processed. However, the present invention combines multi-threading technology in a batch clearing system by creating multiple thread executors to improve processing speed and efficiency. Each thread is responsible for processing the entire clearing process of an IOU, including steps such as trial calculation, clearing, locking, and SMS notification. In this way, multiple IOUs can be processed simultaneously instead of one by one, thereby significantly improving the efficiency of batch clearing.
[0067] Furthermore, the first liquidation list is screened again using multi-threading technology to obtain a second liquidation list, including the following steps:
[0068] Dividing the first liquidation list into a preset number of partitions and assigning the partitions to corresponding threads;
[0069] Each thread performs business logic verification on the first clearing list partition to generate corresponding processing results and summarizes them to form a second clearing list.
[0070] In order to increase the processing speed, the system will divide the list of IOU numbers into multiple parts, and assign each part to a thread for processing. This ensures that multiple threads work at the same time, and each thread processes a part of the IOU numbers, thus achieving concurrent processing.
[0071] Furthermore, each thread performs a business logic check on the first clearing list partition, including the following steps:
[0072] Determining whether the first liquidation list partition meets the preset conditions of the scheduled liquidation task;
[0073] If yes, continue to verify whether the account status of the user in the first liquidation list has the liquidation capability;
[0074] If the liquidation capability is available, the process continues to check whether the user in the first liquidation list meets the conditions for preventing automatic liquidation.
[0075] After receiving the assigned IOU number, each thread will perform a series of business logic checks. These checks may include: checking whether the IOU meets the conditions for automatic liquidation, such as whether the grace period has passed, whether there is sufficient funds for liquidation, etc. Verifying the customer's account status to ensure that the customer's account has sufficient balance for liquidation. Checking whether there are any factors that prevent automatic liquidation, such as the IOU has been manually liquidated or the customer has applied for deferred liquidation.
[0076] Furthermore, the first liquidation list is screened again using multithreading technology to obtain a second liquidation list, including the following steps:
[0077] Each thread performs a trial calculation function on the corresponding user in the first clearing list to obtain the amount that the user should repay;
[0078] The order of deductions is determined based on preset settlement rules and the amount due.
[0079] After completing the business logic verification, each thread will screen out the IOUs that really need to be automatically liquidated and prepare relevant data, such as calculating the amount to be liquidated, determining the liquidation account, etc. The details are as follows:
[0080] The system calculates the amount due for each IOU and splits it into four parts: principal, interest, penalty interest, and fees. This split helps accurately deduct the corresponding amount from the customer's account during liquidation. The system supports passing in multiple due fields, which means that the amount can be calculated and deducted according to different liquidation types and rules.
[0081] Deduction order: The system first attempts to deduct the total amount to be cleared from the clearing card bound to the IOU. If the balance of this card is insufficient, the system will try to deduct the amount from other contracted cards bound to the customer in turn. The order of deduction is to deduct the total amount to be repaid first. If the balance is insufficient, the principal to be repaid plus the interest to be repaid, and the principal to be repaid will be deducted in turn until the deduction is successful or all cards fail to deduct. In other words, the clearing card bound to the IOU is deducted first. If the balance of the clearing card is insufficient, the remaining clearing cards bound to the customer are deducted in turn. The order of deduction for a single card is: deduct the total amount to be cleared first. If the balance is insufficient, the principal to be repaid + the interest to be repaid will be deducted. If the balance is still insufficient, the principal to be repaid will be deducted. If the balance on the card is insufficient to repay the principal, the deduction of the card fails, and the next card is deducted in turn until a card is successfully deducted or all cards fail to deduct.
[0082] The system will send corresponding SMS notifications based on the results of the settlement. If all the outstanding balances are successfully deducted, a settlement success SMS will be sent; if part of the outstanding balance is successfully deducted, a partial settlement success SMS will be sent; if all cards fail to be deducted, a settlement failure SMS will be sent.
[0083] After each thread completes processing, the processing results will be summarized to form the final automatic liquidation task list, which is also the second liquidation list. This list contains all the IOUs that need to be automatically liquidated and their related information.
[0084] By using multithreading, the system can significantly reduce the time required to process a large number of IOUs, because multiple threads can work in parallel, each processing a portion of the data. In addition, since the number of threads is configurable, the system can adjust the number of threads according to actual conditions to adapt to different workloads and ensure efficient operation of the system.
[0085] In one embodiment, the multi-thread processing process involved in the present invention includes the following steps:
[0086] 1. IOU number list partitioning: When the system has a large IOU number list to process, it will divide the list into several smaller parts. The purpose of partitioning is to allow each thread to have a certain amount of work to do, and these tasks can be performed in parallel.
[0087] 2. Thread allocation: Each partition is assigned to a thread. A thread is the smallest unit that the operating system can schedule operations on, allowing the system to execute multiple tasks simultaneously. In Java, this is usually implemented through the Thread class or the more advanced ExecutorService.
[0088] 3. Concurrent processing: Once the list of IOU numbers is partitioned and threads are assigned their own work, all threads will start processing their assigned IOU numbers at the same time. This is achieved through concurrent execution, which means that multiple threads will execute at the same time, each thread completing its own task independently.
[0089] 4. Thread synchronization: In a multi-threaded environment, multiple threads may access shared resources at the same time, such as a database or file system. In order to avoid data inconsistency, it is necessary to ensure thread synchronization, that is, only one thread can access shared resources at the same time.
[0090] 5. Thread coordination: Sometimes, the output of one thread may be the input of another thread, or all threads need to complete a certain stage before they can proceed to the next step. In this case, coordination between threads is required, such as using CountDownLatch or CyclicBarrier to ensure that threads work in a specific order or condition.
[0091] 6. Result merging: After completing its own task, each thread may generate some results or update some data. Ultimately, these results need to be merged or summarized to form the final output or complete the entire processing flow.
[0092] Furthermore, after performing the automatic deduction operation based on the scheduled settlement task and the business file, it also includes: collecting deduction result data and providing the user with the deduction result data notification, wherein the deduction result data includes: the amount of successful deduction, the reason for failed deduction and user feedback information.
[0093] Step S13: performing an automatic deduction operation based on the scheduled settlement task and the business file.
[0094] In the context of distributed systems, since the system is split into businesses, the automatic liquidation method mainly involves a timed task module, a batch task module, a batch business module, a transaction module, a customer module, a text message module, and a file storage module. The interaction process of the seven modules is as follows: Figure 2 As shown, Figure 2 The following is a flow chart showing the module interaction of the automatic liquidation method of the present invention in the context of a distributed system:
[0095] The scheduled task module is an open source framework XXL-JOB, which is easy to use, easy to operate and has low learning cost. The main application scenario in the present invention is task triggering.
[0096] The main function of the batch task module is to screen the customer loan information that needs to be settled on the customer settlement day in the early morning, and generate files to store them in the file storage module.
[0097] The main function of the batch business module is to determine whether the .ok file generated by the batch task module exists. If so, it means that the batch business module has processed successfully. It reads the file generated by the batch task module, retains information at the database level, and performs a deduction operation once in the morning and afternoon of the same day through scheduled task scheduling.
[0098] The transaction module mainly provides the batch business module with trial calculation function, settlement function, loan note locking function and automatic settlement result SMS notification function.
[0099] The customer module mainly provides customer information query and customer clearing card information query. Due to the business division of the distributed system, customer-related information is stored in the customer module. Other modules do not have the authority to store specific customer information and need to obtain it through interaction with the customer module.
[0100] The SMS module mainly provides SMS sending function. The transaction module calls the SMS module according to the automatic deduction results, and passes in different SMS template numbers and customer mobile phone numbers. The SMS module obtains the corresponding text according to the template number, splices the SMS content, and sends it to the customer.
[0101] The file storage module mainly provides a shared file storage function. The present invention uses NAS as a shared file storage. The batch task platform generates files and stores them in NAS. The batch business platform can read them through the corresponding path and file name.
[0102] In one embodiment, see Figure 3 , showing the preliminary screening flow chart of the automatic liquidation method of the present invention, the batch task module preliminarily screens the first liquidation list, the batch task module queries in the early morning whether the current day is the customer liquidation day or the current period has passed the liquidation day but has not been liquidated, the customer IOU information that needs to be liquidated is the first liquidation list, and generates a file and stores it in the shared file storage system. Through scheduled task scheduling, the task is started in the early morning every day to avoid business peak periods, reduce the impact of tasks on system performance, improve task processing efficiency, perform business-level verification on the IOUs of the liquidation day, filter out IOUs that do not need to be automatically liquidated in the product configuration, and only retain IOUs that meet the automatic liquidation standards into files. After the task processing is completed, a .ok file with the same file name as the corresponding business file is generated. The task execution results are notified to the corresponding business personnel and developers via SMS. If a failure occurs, the corresponding developers need to investigate the cause and restart the task.
[0103] Among them, developers and business personnel can obtain the success or failure of task execution results through springAOP aspect strategies. After execution failure, the system's built-in exception retry strategy will be triggered. If database exceptions or network exceptions occur, the task will be automatically retried to improve the robustness of the system. If the system exception is not within the built-in exception range, the task execution is considered abnormal, and an SMS or email will be sent to alert developers and business personnel for investigation and manual retry. If the execution is successful, the results will also be notified to developers and business personnel via SMS or email.
[0104] See also Figure 4 , Figure 4 The following is a flow chart of the automatic liquidation logic of the present invention:
[0105] Configure the scheduled task scheduling of the batch task platform and batch business platform through the XXL-JOB platform. Schedule tasks at the configured time point.
[0106] The customer loan information that needs to be cleared, that is, the first clearing list, is initially screened out for those whose current day is the customer's clearing day or whose clearing day has passed but has not been cleared, and a .ok file with the same file name as the corresponding business file is generated.
[0107] The corresponding business personnel and developers are notified of the task execution results via SMS. If a failure occurs, the corresponding developers need to investigate the cause and restart the task.
[0108] Determine whether the .ok file corresponding to the business file that needs to be automatically cleared on that day exists. If so, read the file, integrate the corresponding data and retain it in the database.
[0109] Based on the scheduled task, automatic clearing at the IOU level is triggered in the morning. The corresponding IOU database level is locked before processing to prevent customers from initiating active clearing operations during the processing process, causing secondary clearing or leading to automatic clearing anomalies.
[0110] The list to be liquidated, i.e., the second liquidation list, is screened again through multi-threaded processing technology.
[0111] Call the automatic clearing trial calculation function of the transaction module to perform a trial calculation. Since automatic clearing is the current period clearing at the IOU level, the trial calculation message must specify the clearing type, corresponding period and IOU number. After the trial calculation succeeds, obtain the current amount payable for the IOU. If the trial calculation fails or the trial calculation amount is 0, it means that the customer has actively cleared before the automatic deduction, unlocked the IOU, and abandoned the subsequent operations of the IOU. Since automatic clearing is different from active clearing, the trial calculation interface is adapted, and the amount payable is divided into the total amount payable, the principal payable, the interest payable, the penalty interest payable, and the fees payable.
[0112] Call the customer module to obtain the clearing card corresponding to the IOU and the other bound cards corresponding to the customer. If the call fails or the clearing card information is empty, it is assumed that the automatic clearing has failed and the IOU is unlocked.
[0113] The clearing request message is assembled according to the trial amount and clearing card information, and the automatic clearing interface of the transaction module is called for clearing. The difference between the automatic clearing interface and the active clearing interface is that deductions are made based on different dimensions.
[0114] If the deduction fails, the customer will be sent an automatic settlement failure SMS. If the deduction amount is less than the total amount to be repaid in the current period, the customer will be sent a partial settlement SMS. Both SMS templates will remind the customer to recharge or actively settle. If the deduction amount is equal to the total amount to be settled in the current period, an automatic settlement success SMS will be sent. Regardless of whether the settlement succeeds or fails, the IOU will be unlocked and the automatic settlement result database will be retained, so that the customer can actively settle later.
[0115] The scheduled task will be retriggered in the afternoon, and the IOUs that failed to be automatically cleared or partially cleared in the morning will be automatically cleared. The process is the same as the scheduled task process in the morning. The purpose of the two scheduled tasks is to deduct money twice on the clearing day to maximize the success rate of automatic clearing, while preventing customers from forgetting to recharge and causing overdue payments, which affects credit. The scheduled task uses multi-threading technology, and one thread processes an IOU, which can greatly reduce the task processing time.
[0116] For IOUs that have failed to be deducted twice on the same day, the overdue days will be recorded in the early morning of the next day, and overdue text messages will be sent to remind customers to settle within the specified overdue days according to the product configuration rules. After a certain number of days of overdue, the relevant data will be pushed to the collection department for processing. At the same time, the IOU data will be retrieved during the subsequent automatic settlement and re-added to the automatic settlement process.
[0117] The protection scope of the automatic liquidation method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0119] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0120] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0122] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0123] The memory is used to store computer programs.
[0124] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0125] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned automatic liquidation method.
[0126] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0127] like Figure 5As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 51, a memory 52, and a bus 53 connecting different system components (including the memory 52 and the processing unit 51).
[0128] Bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0129] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0130] The memory 52 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 523 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0131] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in the memory 52, such program modules 5241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 5241 generally perform the functions and / or methods of the embodiments described herein.
[0132] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 5 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0133] An embodiment of the present invention further provides an automatic clearing system, which can implement the automatic clearing method described in the present invention. However, the implementation device of the automatic clearing system described in the present invention includes but is not limited to the structure of the automatic clearing system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0134] like Figure 6 As shown, in one embodiment, the automatic clearing system of the present invention includes a task configuration module 61 , a data screening module 62 , and an automatic deduction module 63 .
[0135] The configuration task module 61 is used to configure the scheduled clearing tasks based on the XXL-JOB platform.
[0136] The data screening module 62 is connected to the task configuration module 61 and is used to screen the loan data that meets the scheduled settlement task and generate corresponding business files.
[0137] The automatic deduction module 63 is connected to the data screening module 62 and is used to perform automatic deduction operations based on the scheduled settlement task and the business file.
[0138] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An automatic liquidation method, characterized in that: The method comprises the following steps: Configure scheduled liquidation tasks based on the XXL-JOB platform; Obtain user loan data, filter loan data that meets the scheduled settlement task and generate corresponding business files; Automatic deduction operation is performed based on the scheduled settlement task and the business file.
2. The automatic liquidation method according to claim 1, characterized in that: The following steps are included after obtaining user loan data, screening loan data that meets the scheduled settlement task and generating corresponding business files: Preliminarily screening the first liquidation list based on the user loan data; The first liquidation note list is screened again using multi-threading technology to obtain a second liquidation list.
3. The automatic liquidation method according to claim 2, characterized in that: Using multi-threading technology to screen the first liquidation list again to obtain a second liquidation list includes the following steps: Dividing the first liquidation list into a preset number of partitions and assigning the partitions to corresponding threads; Each thread performs business logic verification on the first clearing list partition to generate corresponding processing results and summarizes them to form a second clearing list.
4. The automatic liquidation method according to claim 3, characterized in that: Each thread performs business logic verification on the first clearing list partition, including the following steps: Determining whether the first liquidation list partition meets the preset conditions of the scheduled liquidation task; If yes, continue to verify whether the account status of the user in the first liquidation list has the liquidation capability; If the liquidation capability is available, the process continues to check whether the user in the first liquidation list meets the conditions for preventing automatic liquidation.
5. The automatic liquidation method according to claim 4, characterized in that: Using multi-threading technology to screen the first liquidation loan list again to obtain a second liquidation list includes the following steps: Each thread performs a trial calculation function on the corresponding user in the first clearing list to obtain the amount that the user should repay; The order of deductions is determined based on preset settlement rules and the amount due.
6. The automatic liquidation method according to claim 5, characterized in that: The amount to be repaid includes the total amount to be repaid, the principal to be repaid, the interest to be repaid, the penalty interest to be repaid and the fees to be repaid.
7. The automatic liquidation method according to claim 1, characterized in that: After performing the automatic deduction operation based on the scheduled settlement task and the business file, it also includes: collecting deduction result data and providing the deduction result data notification to the user, wherein the deduction result data includes: the amount of successful deduction, the reason for failed deduction and user feedback information.
8. An automatic clearing system, characterized in that: The system includes a configuration task module, a data screening module and an automatic deduction module; The configuration task module is used to configure the scheduled clearing tasks based on the XXL-JOB platform; The data screening module is used to obtain user loan data, screen loan data that meets the scheduled settlement task and generate corresponding business files; The automatic deduction module is used to perform automatic deduction operations based on the scheduled settlement task and the business file.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic device executes the automatic liquidation method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the automatic liquidation method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Repayment method and device, electronic equipment and computer readable storage medium
CN112435118A
Distributed fragmentation processing method, system and equipment for deducting money in batches
CN113888276A
Clearing task processing method and device, equipment and storage medium
CN115496572A
Automatic money deduction method and device, electronic equipment and storage medium
CN115601139A
Automatic loan repayment method, system and device and storage medium
WO2019205218A1
