CN115345728B - Method and device for settling and counting information - Google Patents

Method and device for settling and counting information Download PDF

Info

Publication number
CN115345728B
CN115345728B CN202211003925.2A CN202211003925A CN115345728B CN 115345728 B CN115345728 B CN 115345728B CN 202211003925 A CN202211003925 A CN 202211003925A CN 115345728 B CN115345728 B CN 115345728B
Authority
CN
China
Prior art keywords
grouping
loan data
registration service
job
settlement
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.)
Active
Application number
CN202211003925.2A
Other languages
Chinese (zh)
Other versions
CN115345728A (en
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.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software 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 Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202211003925.2A priority Critical patent/CN115345728B/en
Publication of CN115345728A publication Critical patent/CN115345728A/en
Application granted granted Critical
Publication of CN115345728B publication Critical patent/CN115345728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination

Landscapes

  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a method and a device for settling a settlement and a settlement, wherein the method for settling the settlement comprises the following steps: grouping the received loan data according to a preset grouping management strategy aiming at each piece of the received loan data; receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface; distributing each group contained in the job to be processed based on the load of the maintained registration service nodes according to the maintained registration service nodes, so that the registration service node receiving the group carries out the information settlement processing on the group; and combining the information settlement processing results of each group in each job to be processed aiming at each job to be processed. The loan data processing efficiency can be improved.

Description

Method and device for settling and counting information
Technical Field
The application relates to the technical field of financial data processing, in particular to a method and a device for settling a settlement.
Background
At present, when a bank performs the settlement of the interest of the loan data, the loan data is generally stored by adopting a high-performance commercial database such as DB2, oracle and the like, and the interest server such as a small computer or a large computer with higher hardware configuration is utilized to read the loan data from the commercial database, and the loan data is operated according to the interest rule corresponding to the loan data, so that the interest result is obtained. But the method for settling the settlement and settling the settlement, although the performance configuration of the interest bearing server is superior, but for large-batch loan data of banks, the operation processing time is longer, and the loan data processing efficiency is lower.
Disclosure of Invention
In view of the above, the present application is to provide a method and a device for settling a settlement of a settlement, so as to improve the loan data processing efficiency.
In a first aspect, an embodiment of the present application provides a method for settling a settlement of a settlement, including:
grouping the received loan data according to a preset grouping management strategy aiming at each piece of the received loan data;
receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface;
distributing each group contained in the job to be processed based on the load of the maintained registration service nodes according to the maintained registration service nodes, so that the registration service node receiving the group carries out the information settlement processing on the group;
and combining the information settlement processing results of each group in each job to be processed aiming at each job to be processed.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, where the grouping the received loan data according to a preset grouping management policy includes:
determining a target major class to which the received loan data belongs according to a preset major class;
determining a target organization to which the received loan data belongs according to a preset organization type;
querying a current group of the target mechanism under the target large class;
if the number of the loan data is smaller than the preset threshold value in the current grouping, placing the received loan data in the current grouping, otherwise, creating a grouping, placing the received loan data in the created grouping, and setting the created grouping as the current grouping.
With reference to the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect, where the distributing, based on a load of the maintenance-based registration service node, each packet included in the job to be processed includes:
acquiring the current load of the maintained registration service node;
calculating the occupation load of each packet occupation maintenance registration service node contained in the job to be processed;
distributing the packets for the maintained registration service node such that the sum of the occupancy load of the distributed packets and the current load of the maintained registration service node approaches a preset load threshold.
With reference to the first aspect, an embodiment of the present application provides a third possible implementation manner of the first aspect, where the distributing, based on a load of the maintenance-based registration service node, each packet included in the job to be processed includes:
sending a broadcast message containing the job to be processed to the maintained registration service node;
and receiving a packet pulling request sent by the registration service node, and sequentially sending the non-distributed packets to the registration service node sending the packet pulling request according to the non-distributed packets contained in the job to be processed.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present application provides a fourth possible implementation manner of the first aspect, where the method further includes:
the registration service node uses multithreading to read loan data from the received group for processing, wherein each thread correspondingly processes a loan data.
With reference to the first aspect and any one of the first possible implementation manner to the fourth possible implementation manner of the first aspect, the embodiment of the present application provides a fifth possible implementation manner of the first aspect, where the registering service node performs a message settlement process on the packet, and includes:
traversing each piece of loan data of the group, judging whether the piece of loan data needs to pay a rest or to get a rest, if not, jumping to the next piece of loan data;
if yes, creating a transaction preservation point for storing the information processing result of the loan data;
calling a rest component or a rest component to perform rest and rest processing on the loan data;
and submitting the information processing result of the number threshold to a database transaction after the number of loan data subjected to information processing reaches the preset number threshold so as to persist the data into the database.
In a second aspect, an embodiment of the present application further provides a device for settling a settlement of a settlement, including:
the grouping module is used for grouping the received loan data according to a preset grouping management strategy aiming at each piece of the received loan data;
the parameter setting module is used for receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface;
the packet distribution module is used for distributing each packet contained in the job to be processed based on the load of the maintained registration service node according to the maintained registration service nodes, so that the registration service node receiving the packet carries out the information counting and settlement processing on the packet;
and the information settlement module is used for combining information settlement processing results of each group in each job to be processed aiming at each job to be processed.
With reference to the second aspect, an embodiment of the present application provides a first possible implementation manner of the second aspect, where the grouping module includes:
a major category unit for determining a target major category to which the received loan data belongs according to a preset major category;
an organization unit for determining a target organization to which the received loan data belongs according to a preset organization type;
a query unit, configured to query a current group of the target mechanism under the target large class;
and the grouping unit is used for setting the received loan data into the current grouping if the number of the loan data is smaller than a preset threshold value, otherwise, creating a grouping, setting the received loan data into the newly created grouping, and setting the newly created grouping as the current grouping.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described above.
According to the method and the device for settling the settlement and the settlement of the interest, the received loan data are grouped according to the preset grouping management strategy aiming at each piece of the received loan data; receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface; distributing each group contained in the job to be processed based on the load of the maintained registration service nodes according to the maintained registration service nodes, so that the registration service node receiving the group carries out the information settlement processing on the group; and combining the information settlement processing results of each group in each job to be processed aiming at each job to be processed. In this way, the grouping parameters and the operation self-defining parameters are set, the operation to be processed including grouping is automatically generated according to the setting of the parameter setting interface, and the information of the loan data are realized in a distributed mode, so that the processing efficiency of the loan data is effectively improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows the embodiment of the application a flow diagram of a method for settling the settlement of the settlement;
FIG. 2 shows a schematic diagram of a packet provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a job to be processed according to an embodiment of the present application;
fig. 4 is a schematic diagram of a device for settling a settlement interest according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
At present, a method for settling accounts and settling the information, the loan data is processed by the information-taking and information-settling server, the processing efficiency of the large-batch loan data is lower; further, as different loan businesses may have different interest rules, when the loan businesses are newly added, new interest rules programs need to be developed or original interest rules programs need to be changed, so that the program change is larger and the expandability is weaker; in addition, when the bank performs batch operation on the daily interest-taking account, the bank needs to stop the service of the external loan business before the result of the interest-taking account is not obtained, so as to avoid interference with the result of the interest-taking account. In the embodiment of the application, the information and the interest of the loan data are realized in a distributed mode, and the processing efficiency of the loan data is improved in a distributed operation mode; further, by using distributed computation, the operation of large data volume can be completed based on a common PC Server and a conventional database, and a high-performance commercial database and a higher-hardware-configuration information-bearing Server are not required; in addition, through abstract induction of loan business, a general interest-bearing rule model is designed, and the expansibility and the customer experience of the model are improved; in addition, aiming at the problem that partial businesses cannot be developed simultaneously in the batch loan data processing process, the embodiment of the application carries out the information settlement processing by carrying out the modularized design on the information settlement rules and calling the modularized information settlement rules in real time without stopping the external loan business service.
The embodiment of the application provides a method and a device for settling a settlement of a settlement, and the method and the device are described below through the embodiment.
Fig. 1 shows a flow chart of a method for settling a settlement of a settlement.
As shown in fig. 1, the method includes:
step 101, grouping the received loan data according to a preset grouping management strategy for each piece of the received loan data;
in the embodiment of the present application, with a certain bank behavior example, the bank may include a plurality of branches, each branch performs a loan service, for example, issues a loan, receives repayment, and generates a piece of loan data after completing the loan issue, including but not limited to: loan date, loan period, loan branch, repayment date, grace period, loan interest rate, loan user, etc. After the loan data is generated, the loan data is uploaded to the dispatch server, so that the dispatch server groups the received loan data. Of course, in practical application, the branch lines may also group the loan data according to a preset grouping management policy, where each branch line stores a grouping management policy.
In an embodiment of the present application, as an optional embodiment, grouping the received loan data according to a preset grouping management policy includes:
determining a target major class to which the received loan data belongs according to a preset major class;
determining a target organization to which the received loan data belongs according to a preset organization type;
querying a current group of the target mechanism under the target large class;
if the number of the loan data is smaller than the preset threshold value in the current grouping, placing the received loan data in the current grouping, otherwise, creating a grouping, placing the received loan data in the created grouping, and setting the created grouping as the current grouping.
In the embodiment of the present application, as an optional embodiment, loans (granularity is borrowed, i.e., loan data) in a loan business are grouped and managed according to major categories, organizations, and groups. Wherein, the liquid crystal display device comprises a liquid crystal display device,
the major class can be customized according to loan business and actual data volume. For example, as an alternative embodiment, the broad categories include: the normal class, the pin class, as another alternative embodiment, the broad class includes: for the public class and for the private class. In a broad class: for example, if the loan user in the loan data is a person, the loan data can be determined to belong to the private class (determined by a preset flag field), and if the loan user in the loan data is a unit, organization, company, enterprise, etc., the loan data can be determined to belong to the public class.
An institution may be divided by an accounting institution or business institution, for example, for a certain bank, the institution includes: branch 1, branch 2, branch 3, etc.
A group consisting of a relatively fixed amount of loan data, e.g., 100, 200, etc.
Fig. 2 shows a schematic diagram of a packet provided by an embodiment of the present application. As shown in fig. 2, in the data table composed of major categories, major category a, major category B, major category C, and the like are included, for major category a, including organization 001, organization 002, organization …, and the like, for organization 001, including group 0001, group 0002, and the like, for organization 002, including group 1001, group 1002, and the like, for organization …, including group 2001, group 2002, and the like, and for group 2002, including loan borrow 1, loan borrow 2, …, and loan borrow n.
Step 102, receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and job custom parameters, and generating a job to be processed comprising grouping according to the setting of the parameter setting interface;
in the embodiment of the application, after receiving a loan data settlement request, grouping tasks (to-be-processed jobs) are generated for jobs needing grouping, such as a settlement job, a settlement job and the like, according to grouping parameters and job custom parameters. After generating the grouping tasks, the grouping tasks are distributed to each registration service node for operation.
In the embodiment of the present application, as an optional embodiment, the grouping parameters include: data table, organization ID, major class number, minor group borrowing number, etc., wherein as an alternative embodiment, the organization ID, major class number may be set by a drop down menu.
The job customization parameters include: the job number, the class of the job, the number of additional groups of the job, and the data table, wherein the job number and the class of the job can be set by a pull-down menu mode as an alternative embodiment.
In an embodiment of the present application, as an alternative embodiment, the operation includes, but is not limited to: daily, monthly, periodic, and the like. Taking the set operation number as daily information as an example, the generated operation to be processed is a group which needs to be processed for daily information.
Fig. 3 shows a schematic diagram of a job to be processed according to an embodiment of the present application. As shown in fig. 3, based on the grouping parameters displayed in the parameter setting interface and the job customization parameters, a plurality of jobs to be processed are obtained, each job to be processed includes one or more groupings, where the groupings are called tasks in the jobs to be processed, and a job-task structure mode is formed. Wherein for a job 01-task (daily information), it comprises: task 1 (mechanism 00001+ packet 1001), task 2 (mechanism 00001+ packet 1002), task 3 (mechanism 00001+ packet 2001), task 4 (mechanism 00002+ packet 1001), …; for job 02-task (periodic rest), including: task 1 (mechanism 00001+ packet 1001), task 2 (mechanism 00001+ packet 1002), task 3 (mechanism 00001+ packet 2001), task 4 (mechanism 00002+ packet 1001), …; for job 03-task (other job), including: ….
According to the embodiment of the application, the task can be automatically generated for the set job (to-be-processed job) according to the grouping parameter and the job custom parameter.
In the embodiment of the application, a plurality of jobs can be defined by utilizing the grouping parameters and the job custom parameters, so that the grouping parameters and the job custom parameters can be directly multiplexed without developing a grouping task function additionally when the job instance is newly added. The grouping task generating operation can be a single business operation or a batch of business operations, has good expansibility through a parameter customizing function, can provide task generation for the interest-bearing batch operation, can be used for similar banking/non-banking batch business operations, and has higher reusability.
Step 103, distributing each group included in the job to be processed based on the load of the maintained registration service node according to the maintained registration service nodes, so that the registration service node receiving the group carries out the information settlement processing on the group;
in the embodiment of the present application, as an alternative embodiment, the scheduling server distributes each packet (task) of the job to be processed to the service node registered in the zookeeper, for example, java virtual machine (JVM, java Virtual Machine) for execution.
In an embodiment of the present application, as an optional embodiment, the distributing each packet included in the job to be processed based on the load of the maintained registration service node includes:
acquiring the current load of the maintained registration service node;
calculating the occupation load of each packet occupation maintenance registration service node contained in the job to be processed;
distributing the packets for the maintained registration service node such that the sum of the occupancy load of the distributed packets and the current load of the maintained registration service node approaches a preset load threshold.
In the embodiment of the application, for the same group, the occupied load may be the same or different for different registration service nodes. As an alternative embodiment, approaching the preset load threshold value means that n packets are allocated to the registration service node, where the sum of the occupied load of the n packets and the current load of the registration service node is smaller than the load threshold value, and the sum of the occupied load of n+1 packets and the current load of the registration service node is greater than the load threshold value.
In an embodiment of the present application, as another optional embodiment, the distributing each packet included in the job to be processed based on the load of the maintained registration service node includes:
sending a broadcast message containing the job to be processed to the maintained registration service node;
and receiving a packet pulling request sent by the registration service node, and sequentially sending the non-distributed packets to the registration service node sending the packet pulling request according to the non-distributed packets contained in the job to be processed.
In the embodiment of the present application, as an optional embodiment, the registration service node may perform information processing according to the allocated packet, or may actively pull the packet from the job to be processed according to its own load for processing.
In an embodiment of the present application, as an optional embodiment, the method further includes:
the registration service node uses multithreading to read loan data from the received group for processing, wherein each thread correspondingly processes a loan data.
In the embodiment of the application, the registration service node can process each loan data in the received group in a multithreading concurrent mode.
In an embodiment of the present application, as an optional embodiment, the registration service node performs a message processing on the packet, including:
traversing each piece of loan data of the group, judging whether the piece of loan data needs to pay a rest or to get a rest, if not, jumping to the next piece of loan data;
if yes, creating a transaction preservation point for storing the information processing result of the loan data;
calling a rest component or a rest component to perform rest and rest processing on the loan data;
and submitting the information processing result of the number threshold to a database transaction after the number of loan data subjected to information processing reaches the preset number threshold so as to persist the data into the database.
In the embodiment of the application, whether the borrowing data needs to be borrowed or not can be determined by inquiring the borrowing detailed information of the loan data, such as a borrowing mark, a pre-borrowing mark, a borrowing date, a borrowing state, other conditions and the like.
In an embodiment of the present application, as an optional embodiment, the processing of the loan data for interest-bearing and interest-bearing includes:
if the loan data is abnormal during the information processing, the abnormal processing is performed according to the operation mode of the registration service node.
In an embodiment of the present application, as an optional embodiment, the operation modes include: unit test mode, integrated test mode, and production mode, wherein,
in the unit test mode, abnormal loan data is registered and skipped, and the operation is not interrupted;
in the integrated test mode, the preset abnormal types are registered and skipped, the operation is not interrupted, other types are thrown out abnormally, and the operation is interrupted;
in the production mode, any abnormal species are thrown out, interrupting the operation.
In an embodiment of the present application, as an optional embodiment, the interest-bearing processing is interest-bearing processing, and the processing of interest-bearing processing on the loan data includes:
determining that the loan data is provided in a normal period, and carrying out normal information and grace period information;
determining that the loan data is provided for overdue, and performing overdue fine information and grace period information;
determining that the loan data is provided for a verification period, and performing overdue penalty information and normal information;
calculating accrued interest of loan data;
calculating a interest of the loan data based on the interest of interest;
the updated loan data should be paid for each interest and revenue.
In the embodiment of the application, various information rule settings are supported, including but not limited to: standard rules of information, actual standard rules of information, month-to-month rules of information, etc.; for the segmented information rule, the change of each parameter is supported, the grace period information rule parameter setting is supported, the post-grace period information supplement rule parameter setting is supported, the interest rate limit rule parameter setting is supported, the interest rate granularity (day/month/year and the like) is supported, the information pasting information rule parameter setting is supported, the recovery information rule parameter setting is supported, and other information rule parameter setting is supported.
In an embodiment of the present application, as an optional embodiment, the interest-bearing processing is interest-bearing processing, and the processing of interest-bearing processing on the loan data includes:
calling a setting-up component to acquire setting-up, interest transfer and form transfer parameters according to loan data;
circulating treatment period supplies, and carrying out the following treatment on the period supplies: normal rotation overdue, normal/overdue interest rotation, accrued non-accrued treatment;
performing borrowing and overdue processing and borrowing and overdue processing;
and generating an accounting and column-turning file.
In the embodiment of the application, setting parameters of interest, interest transfer and form transfer in the interest setting component can be performed in advance:
1. supporting the regular setting of interest settlement period due to expiration or not due under different repayment modes;
2. supporting the setting of interest transfer-out rules and transfer-back rules;
3. support for turn overdue rule settings including whether to turn, grace period, holiday, etc.
4. Supporting the setting of a transfer stagnation rule, including whether to transfer, days and the like;
5. other parameter settings.
In the embodiment of the application, other transactions can be supported, for example, some business transactions can complete the information processing in real time by calling the information component, so that the transactions can run for 24 hours without concern about whether batch operation is executed or not. Taking the customer repayment transaction as an example, by calling the repayment component, whether the repayment is needed or not is automatically identified, and the repayment is automatically carried out, so that the repayment is completed, and after the repayment is completed, the customer repayment transaction is carried out.
Step 104, merging the information processing results of each group in each job to be processed.
In the implementation of the application, the information/information setting component processes each piece of loan data (borrowing data) in the grouping task to finish information/information setting business processing. Wherein the accounting/interest setting component uses the transaction preservation point to conduct fine-grained database transaction control by "database transaction number", i.e. the loan data bar number, to control the transaction size and the time of the database lock.
In the implementation of the application, the information counting/setting-up component can support the processing of each business scene by abstracting and summarizing various parameters, thereby realizing the unified information counting and setting-up processing flow. The accounting/interest-bearing component performs verification on the loan data logic in the process of realizing accounting/interest-bearing, and comprises the following steps: the validity of data logic before execution and the self-checking of the result after execution are improved, thereby improving the test efficiency and the stability of the system.
In the embodiment of the application, the distributed information settlement operation is supported to run on the distributed/relational database, so that the problem caused by low database performance can be solved. Further, through setting up multiple running mode, can satisfy the product customization in-process, the settlement needs of the settlement of different stages, and then promote test efficiency. Moreover, the information counting assembly can be called by scenes such as batch transaction, online transaction, internet transaction and the like, and can better support banking business developed in 24 hours, so that 24-hour business support is realized by information counting, and the information counting assembly can be called in various business transactions. In addition, after parameterization of the information counting/setting-up component, the component can be used by a bank to meet the requirement of developing most loan business, and the software development amount and maintenance amount can be effectively reduced. Meanwhile, in the life cycle of one loan data, each rule parameter can be modified, and the information-counting and information-settling program can be effectively supported.
Fig. 4 is a schematic diagram of a device for settling a settlement interest according to an embodiment of the present application.
As shown in fig. 4, the apparatus includes:
a grouping module 401, configured to group, for each piece of received loan data, the received loan data according to a preset grouping management policy;
in the embodiment of the present application, as an optional embodiment, the grouping module 401 includes:
a major category unit (not shown) for determining a target major category to which the received loan data belongs, based on a preset major category;
in the embodiment of the present application, as an alternative embodiment, the broad categories include: the normal class, the pin class, as another alternative embodiment, the broad class includes: for the public class and for the private class.
An organization unit for determining a target organization to which the received loan data belongs according to a preset organization type;
in the embodiment of the present application, as an optional embodiment, the institution adopts an accounting institution or a business institution for division.
A query unit, configured to query a current group of the target mechanism under the target large class;
and the grouping unit is used for setting the received loan data into the current grouping if the number of the loan data is smaller than a preset threshold value, otherwise, creating a grouping, setting the received loan data into the newly created grouping, and setting the newly created grouping as the current grouping.
The parameter setting module 402 is configured to receive a loan data settlement request, display a parameter setting interface including grouping parameters and job customization parameters, and generate a job to be processed including grouping according to the setting of the parameter setting interface;
in the embodiment of the present application, as an optional embodiment, the grouping parameters include: data table, organization ID, major class number, minor group borrowing data, etc., the operation custom parameters include: job number, class of job, number of job additional groups, data table.
The packet distribution module 403 is configured to distribute, according to each maintained registration service node, each packet included in the job to be processed based on a load of the maintained registration service node, so that the registration service node that receives the packet performs a message processing on the packet;
in the embodiment of the present application, as an optional embodiment, the scheduling server distributes each packet (task) of the job to be processed to a registration service node in the zookeeper, where the registration service node is a JVM.
In the embodiment of the present application, as an optional embodiment, the packet distribution module 403 includes:
a load maintenance unit (not shown in the figure) for acquiring the current load of the maintained registration service node;
the computing unit is used for computing the occupied load of each packet occupied and maintained registration service node contained in the job to be processed;
and the distribution unit is used for distributing the packets to the maintained registration service nodes so that the sum of the occupied load of the distributed packets and the current load of the maintained registration service nodes is close to a preset load threshold value.
In the embodiment of the present application, as another alternative embodiment, the packet distribution module 403 includes:
a broadcasting unit for transmitting a broadcasting message containing a job to be processed to the maintained registration service node;
and the pulling unit is used for receiving the packet pulling request sent by the registration service node, and sequentially sending the non-distributed packets to the registration service node sending the packet pulling request according to the non-distributed packets contained in the job to be processed.
In the embodiment of the application, after pulling the group, the registration service node adopts multiple threads to read loan data from the group for parallel processing, wherein each thread correspondingly processes the loan data.
In the embodiment of the application, the registration service node traverses each piece of loan data of the group, judges whether the piece of loan data needs to pay a rest or to play a rest, and if not, jumps to the next piece of loan data; if yes, creating a transaction preservation point for storing the information processing result of the loan data; calling a rest component or a rest component to perform rest and rest processing on the loan data; and submitting the information processing result of the number threshold to a database transaction after the number of loan data subjected to information processing reaches the preset number threshold so as to persist the data into the database.
In an embodiment of the present application, as an optional embodiment, the processing of the loan data for interest-bearing and interest-bearing includes:
if the loan data is abnormal during the information processing, the abnormal processing is performed according to the operation mode of the registration service node.
In an embodiment of the present application, as an optional embodiment, the operation modes include: unit test mode, integrated test mode, and production mode.
In the embodiment of the present application, taking the information processing as an example, the information processing includes: determining that the loan data is provided in a normal period, and carrying out normal information and grace period information; determining that the loan data is provided for overdue, and performing overdue fine information and grace period information; determining that the loan data is provided for a verification period, and performing overdue penalty information and normal information; calculating accrued interest of loan data; calculating a interest of the loan data based on the interest of interest; the updated loan data should be paid for each interest and revenue.
The interest-bearing module 404 is configured to combine, for each job to be processed, the interest-bearing processing results of each group in the job to be processed.
As shown in fig. 5, an embodiment of the present application provides a computer device 500 for executing the method for settling a settlement of interest in fig. 1, the device including a memory 501, a processor 502 connected to the memory 501 through a bus, and a computer program stored on the memory 501 and executable on the processor 502, wherein the processor 502 implements the steps of the method for settling a settlement of interest when executing the computer program.
Specifically, the memory 501 and the processor 502 can be general-purpose memories and processors, and are not particularly limited herein, and the method for settling the interest and the rest can be performed when the processor 502 runs a computer program stored in the memory 501.
Corresponding to the method of settlement information in fig. 1, the embodiment of the application further provides a computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, performs the steps of the method of settlement information.
In particular, the storage medium can be a general-purpose storage medium, such as a mobile disk, a hard disk, or the like, and the computer program on the storage medium can execute the above-described method for settling the accounting information when executed.
In the embodiments provided herein, it should be understood that the disclosed systems and methods may be implemented in other ways. The system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions in actual implementation, and e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the corresponding technical solutions. Are intended to be encompassed within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method of settling a settlement of a settlement, comprising:
grouping the received loan data according to a preset grouping management strategy aiming at each piece of the received loan data;
receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface;
distributing each group contained in the job to be processed based on the load of the maintained registration service nodes according to the maintained registration service nodes, so that the registration service node receiving the group carries out the information settlement processing on the group;
combining the information settlement processing results of each group in each job to be processed aiming at each job to be processed;
the grouping the received loan data according to a preset grouping management strategy comprises the following steps:
determining a target major class to which the received loan data belongs according to a preset major class;
determining a target organization to which the received loan data belongs according to a preset organization type;
querying a current group of the target mechanism under the target large class;
if the number of the loan data is smaller than the preset threshold value in the current grouping, placing the received loan data in the current grouping, otherwise, creating a grouping, placing the received loan data in the created grouping, and setting the created grouping as the current grouping.
2. The method of claim 1, wherein the distributing packets contained in the job to be processed based on the load of the maintained registration service node comprises:
acquiring the current load of the maintained registration service node;
calculating the occupation load of each packet occupation maintenance registration service node contained in the job to be processed;
distributing the packets for the maintained registration service node such that the sum of the occupancy load of the distributed packets and the current load of the maintained registration service node approaches a preset load threshold.
3. The method of claim 1, wherein the distributing packets contained in the job to be processed based on the load of the maintained registration service node comprises:
sending a broadcast message containing the job to be processed to the maintained registration service node;
and receiving a packet pulling request sent by the registration service node, and sequentially sending the non-distributed packets to the registration service node sending the packet pulling request according to the non-distributed packets contained in the job to be processed.
4. A method according to claim 3, characterized in that the method further comprises:
the registration service node uses multithreading to read loan data from the received group for processing, wherein each thread correspondingly processes a loan data.
5. The method according to any one of claims 1 to 4, wherein the registering the service node performs a message settlement process on the packet, comprising:
traversing each piece of loan data of the group, judging whether the piece of loan data needs to pay a rest or to get a rest, if not, jumping to the next piece of loan data;
if yes, creating a transaction preservation point for storing the information processing result of the loan data;
calling a rest component or a rest component to perform rest and rest processing on the loan data;
and submitting the information processing result of the number threshold to a database transaction after the number of loan data subjected to information processing reaches the preset number threshold so as to persist the data into the database.
6. A device for settling a settlement of a settlement, comprising:
the grouping module is used for grouping the received loan data according to a preset grouping management strategy aiming at each piece of the received loan data;
the parameter setting module is used for receiving a loan data settlement request, displaying a parameter setting interface comprising grouping parameters and operation custom parameters, and generating a to-be-processed operation comprising grouping according to the setting of the parameter setting interface;
the packet distribution module is used for distributing each packet contained in the job to be processed based on the load of the maintained registration service node according to the maintained registration service nodes, so that the registration service node receiving the packet carries out the information counting and settlement processing on the packet;
the information settlement module is used for combining information settlement processing results of each group in each job to be processed aiming at each job to be processed;
the grouping module includes:
a major category unit for determining a target major category to which the received loan data belongs according to a preset major category;
an organization unit for determining a target organization to which the received loan data belongs according to a preset organization type;
a query unit, configured to query a current group of the target mechanism under the target large class;
and the grouping unit is used for setting the received loan data into the current grouping if the number of the loan data is smaller than a preset threshold value, otherwise, creating a grouping, setting the received loan data into the newly created grouping, and setting the newly created grouping as the current grouping.
7. A computer device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating via the bus when the computer device is running, said machine readable instructions when executed by said processor performing the steps of the method of settling a settlement information according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the method of settling a message according to any of claims 1 to 5.
CN202211003925.2A 2022-08-19 2022-08-19 Method and device for settling and counting information Active CN115345728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211003925.2A CN115345728B (en) 2022-08-19 2022-08-19 Method and device for settling and counting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211003925.2A CN115345728B (en) 2022-08-19 2022-08-19 Method and device for settling and counting information

Publications (2)

Publication Number Publication Date
CN115345728A CN115345728A (en) 2022-11-15
CN115345728B true CN115345728B (en) 2023-11-03

Family

ID=83953219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211003925.2A Active CN115345728B (en) 2022-08-19 2022-08-19 Method and device for settling and counting information

Country Status (1)

Country Link
CN (1) CN115345728B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073803A (en) * 2010-09-28 2012-04-12 Nec Corp Job management system, job management system control method and control program therefor
CN104580381A (en) * 2014-12-17 2015-04-29 北京可思云海科技有限公司 Method for performing job task in multi-node network
CN109886743A (en) * 2019-02-18 2019-06-14 多点生活(成都)科技有限公司 A kind of business accounting method and apparatus
CN111680080A (en) * 2020-04-16 2020-09-18 中邮消费金融有限公司 Data processing method and data processing system
CN112527402A (en) * 2019-08-27 2021-03-19 马上消费金融股份有限公司 Settlement method and related device
CN114625533A (en) * 2022-02-28 2022-06-14 中国农业银行股份有限公司 Distributed task scheduling method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073803A (en) * 2010-09-28 2012-04-12 Nec Corp Job management system, job management system control method and control program therefor
CN104580381A (en) * 2014-12-17 2015-04-29 北京可思云海科技有限公司 Method for performing job task in multi-node network
CN109886743A (en) * 2019-02-18 2019-06-14 多点生活(成都)科技有限公司 A kind of business accounting method and apparatus
CN112527402A (en) * 2019-08-27 2021-03-19 马上消费金融股份有限公司 Settlement method and related device
CN111680080A (en) * 2020-04-16 2020-09-18 中邮消费金融有限公司 Data processing method and data processing system
CN114625533A (en) * 2022-02-28 2022-06-14 中国农业银行股份有限公司 Distributed task scheduling method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115345728A (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US20190147471A1 (en) Exchanging consumption of advertisements for access to digital media decoupled in time, value, and location
US20150032620A1 (en) Communication network for collecting data and executing electronic transaction services
US20240029151A1 (en) Blockchain Digital Cryptocurrency Loan System
US11395094B1 (en) Network based resource management and allocation
CN111667360A (en) User limit information management method and device, electronic equipment and storage medium
CN112016914B (en) Resource control and fund control method, device and equipment
CN115345728B (en) Method and device for settling and counting information
US20150032600A1 (en) Communication network for collecting data and executing electronic transaction services
US8229833B2 (en) Simplified quote sharing calculation
US10121138B2 (en) Correctable pre-payment for database services
US20150032619A1 (en) Communication network for collecting data and executing electronic transaction services
JP6183867B1 (en) Notional pooling system and notional pooling method
CN112085461B (en) Cross-selling-oriented commission settlement method, device and storage medium
CN111708808A (en) Distributed service system and service summarizing and inquiring method, device and equipment thereof
KR20190090685A (en) Processing method and apparatus for financial instrument information
CN115187391B (en) Internet individual loan fund accounting system, accounting method and electronic equipment
CN113344698B (en) Asset securitization income segmentation method and system
CN115587883B (en) Cost pricing method and device
CN113076297A (en) Data processing method, device and storage medium
US20150032601A1 (en) Communication network for collecting data and executing electronic transaction services
CN115495453A (en) Method and device for generating message, computing equipment and storage medium
CN115170198A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN115760231A (en) Point data management method, electronic device, and storage medium
CN114677223A (en) Information acquisition method, apparatus, device, medium, and program product
CN113034261A (en) Periodic repayment method based on bill mode of borrowing

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
GR01 Patent grant
GR01 Patent grant