CN111339743B - Account number generation method and device - Google Patents

Account number generation method and device Download PDF

Info

Publication number
CN111339743B
CN111339743B CN202010102328.XA CN202010102328A CN111339743B CN 111339743 B CN111339743 B CN 111339743B CN 202010102328 A CN202010102328 A CN 202010102328A CN 111339743 B CN111339743 B CN 111339743B
Authority
CN
China
Prior art keywords
account
rule
service
template
configuration table
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
CN202010102328.XA
Other languages
Chinese (zh)
Other versions
CN111339743A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010102328.XA priority Critical patent/CN111339743B/en
Publication of CN111339743A publication Critical patent/CN111339743A/en
Application granted granted Critical
Publication of CN111339743B publication Critical patent/CN111339743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for generating an account, and relates to the technical field of computers. One embodiment of the method comprises the following steps: determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; and calling a unified account generation interface to generate an account according to the account template. According to the embodiment, the account rules can be loosely coupled with the service, and the high reusability of the account template can be realized; the condition that logic of a plurality of account rules is solidified in codes is avoided, when new business demands are needed to be met, only development of a new account template is needed to be realized, the work of influence analysis, development and testing is greatly reduced, and standardized access specifications can be provided for users.

Description

Account number generation method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating an account.
Background
The account number is a unique identifier for setting and recording account information for the client to transact banking business or the banking business to solve the business such as clearing and the like. Such as a private savings account number, bond account number, public account number, internal account number, etc. At present, all banks operate domestic and overseas business at the same time, so that account numbers are various. Moreover, when overseas business branches are oriented to different countries, account rules of the overseas branches are different so as to adapt to flexible business requirements and local supervision policy requirements.
In the current account management system, the generation process of the account is as follows: firstly, classifying account numbers according to different services (policy requirements need to be considered in the services) to form different account types, for example, classification into a public period type, a public loan type, a private period one-book pass and the like; secondly, respectively corresponding account rules are induced according to the account types; and finally, solidifying different account rule control logics in the service codes to generate accounts.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
in the existing account generation method, control logic of a large number of account generation rules is solidified in codes, however, as the service is developed and popularized, service coverage is larger and larger, different services are different, and therefore account rules are different. The method for realizing the control logic solidification of the account number generation rule in the service code can lead the service code to be more and more huge, the classification is unclear, the adjustment cannot be flexibly carried out at the later stage, and the maintenance is complex.
Disclosure of Invention
In view of this, the embodiment of the invention provides a method and a device for generating an account, which can loosely couple an account rule with a service and can realize high reusability of an account template; the condition that logic of a plurality of account rules is solidified in codes is avoided, when new business demands are needed to be met, only development of a new account template is needed to be realized, the work of influence analysis, development and testing is greatly reduced, and standardized access specifications can be provided for users.
In order to achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for generating an account.
A method of account generation, comprising: determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; and calling a unified account generation interface to generate an account according to the account template.
Optionally, determining the account rule corresponding to the service according to the service requirement and the account rule set stored in the account configuration table includes: comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement; and generating an account rule corresponding to the service requirement according to the first account rule.
Optionally, the account configuration table further includes a legal identifier and an account type, and the step of calling a unified account generation interface to generate an account according to the account template includes: calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type; searching a corresponding account template from the account configuration table according to the legal person identifier; acquiring an account rule according to the account type and the account template; and generating an account according to the acquired account rule.
Optionally, the account number type includes: for public periods, for public loans, for private periods, and for private loans.
Optionally, the account configuration table further includes a logical province number, and after the account is generated, the account is stored in the database with the logical province number as a database partition identifier.
According to another aspect of the embodiment of the invention, an account generation device is provided.
An account generation apparatus, comprising: the rule determining module is used for determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table; the template generation module is used for generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; and the account generation module is used for calling a unified account generation interface to generate an account according to the account template.
Optionally, the rule determining module is further configured to: comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement; and generating an account rule corresponding to the service requirement according to the first account rule.
Optionally, the account configuration table further includes a legal identifier and an account type, and the account generation module is further configured to: calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type; searching a corresponding account template from the account configuration table according to the legal person identifier; acquiring an account rule according to the account type and the account template; and generating an account according to the acquired account rule.
Optionally, the account number type includes: for public periods, for public loans, for private periods, and for private loans.
Optionally, the account configuration table further includes a logical province number, and after the account is generated, the account is stored in the database with the logical province number as a database partition identifier.
According to still another aspect of the embodiment of the invention, an electronic device for generating an account is provided.
An electronic device for account generation, comprising: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the account generation method provided by the embodiment of the invention.
According to yet another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer readable medium having stored thereon a computer program which when executed by a processor implements a method for account generation provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; the unified account generation interface is called to generate an account according to the account template, so that account rules and services are loosely coupled, and high reusability of the account template can be realized; the account template is stored through the account configuration table, so that the situation that logic of a plurality of account rules is solidified in codes is avoided, the account configuration table can be flexibly added and expanded, and the existing account template is not affected; when a new business requirement needs to be met, only the development of a new account template is needed to be realized, and the online test can be performed, so that the work of influence analysis, development and test is greatly reduced; the unified account generation interface is called to generate the account, so that standardized access specifications can be provided for users.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of main steps of a method for generating an account according to an embodiment of the present invention;
fig. 2 is a schematic diagram of main modules of an apparatus for generating an account according to an embodiment of the present invention;
FIG. 3 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 4 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the existing account generation system, the account composition includes service elements, such as fields with various service meanings, such as organization numbers, account books, coin types, account types, and seed storage, in the account. This causes the system using the account number to establish translation correspondence rules, and once the business rules change, the respective systems need to change at the same time. Meanwhile, if the business elements are changed, the account number itself may be changed accordingly. The account number coding rule tightly coupled with the service elements is not beneficial to the maintenance of the account number during service expansion.
Along with the development of banking business, the coupling degree of account rules and business elements is gradually reduced, and account code contents are more prone to using mechanism numbers of front three digits and branch numbers which are helpful for partition, account types of distinguishable types, expandable sequence numbers and the like. Such encoding rules improve the situation that the rules of the association system and the content of the account itself are modified once the service requirement changes in the previous account generation system. However, when the account is generated, the account is still required to be classified according to the service, then account rules corresponding to various accounts are summarized, and the account rule control logic is solidified in the code to generate the account. The method has the advantages of huge account number generation codes, unclear classification and inflexible adjustment.
At present, when each large bank system generates an account, a large number of application programs need to be developed in order to support various functions and supervision requirements of the overseas branch accounts of the banks, and the key technical problem is, on one hand, how to flexibly abstract account rules so that the account can meet the continuously changing business requirements of the banks to the greatest extent and the change of the codes of the account cannot be caused by business change; on the other hand, how to realize efficient account generation, storage and acquisition, so that banking business response is quick, customer experience is satisfactory and the like.
Accordingly, the invention provides a method for generating the account, which on one hand reserves the original classification mode according to the account types; on the other hand, abstract classification is carried out from account code rules to form a multi-dimensional configuration table, so that when the account generation function program is developed, the unified account rule configuration table can be complied, the existing rule examples can be flexibly reused, meanwhile, complex rule logic is not required to be solidified in the program, the configuration is convenient, the adjustment is flexible, the generation logic of the whole account is clear, and the response speed is improved.
Fig. 1 is a schematic diagram of main steps of a method for generating an account according to an embodiment of the present invention. As shown in fig. 1, the method for generating an account according to the embodiment of the present invention mainly includes the following steps S101 to S103.
Step S101: determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table;
step S102: generating an account template corresponding to the service according to the account type and the account rule corresponding to the service;
step S103: and calling a unified account generation interface to generate an account according to the account template.
According to the technical scheme of the invention, when a service proposes a new account rule, only local policy supervision requirements and service requirements are generally considered. The invention needs to participate in the determination of account number codes, so that the invention needs to communicate with the service, and the code rule of the account number is close to the existing template in the account number configuration table to achieve the multiplexing purpose while meeting the service requirement as much as possible.
Accordingly, according to the embodiment of the invention, when a new service requirement is proposed, the account rule corresponding to the service is determined according to the service requirement and the account rule set stored in the account configuration table. Specifically, in one embodiment of the present invention, when determining an account rule corresponding to a service according to a service requirement and an account rule set stored in an account configuration table, the method may specifically be executed according to the following steps:
comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement;
and generating an account rule corresponding to the service requirement according to the first account rule.
When a new service requirement is proposed, a service rule corresponding to the service requirement can be obtained by carrying out semantic analysis on the service requirement, and then the service rule is compared with each account rule in the account rule set to obtain a first account rule closest to the service rule, namely: and acquiring a first account rule matched with the service requirement.
In one embodiment of the invention, it is assumed that there is some branching that proposes the following new traffic demands: the length of the required account number is 13 bits; the business personnel can identify the account number which is the current line from the account number; and under this line the customer account number is not repeatable. After obtaining the service requirement, each account rule in the account configuration table is analyzed to find that the account rule '3 (branch number) +8 (sequence number) +1 (check bit)' is highly matched with the service requirement, wherein the 3-bit branch number can distinguish which branch is; an 8-bit sequence number can ensure that customer accounts containing 0 to 99999999 and not repeated can be established; the check bit can check the account number input by the service; 1 bit in length, will typically be replaced with a fixed number. Therefore, the account rule which is matched with the service requirement can be used as a first account rule which is matched with the service requirement, and the account rule corresponding to the service requirement is generated by modifying the first account rule, for example: a fixed value is added before the check bit, or 8 is changed into 9, and so on. The specific modification method can be set according to the service requirement, and the invention is not limited to this.
According to an embodiment of the invention, the account configuration table is designed by analyzing a large number of original account rules. And collecting account rules of different branches and account types, and analyzing to summarize and obtain an account configuration table. In the embodiment of the present invention, the account types include, for example, the following six types: for public periods, public loans, private periods, and private loans; accordingly, account rules for different account types may include rules for public liveness, rules for public periods, rules for public loans, rules for private liveness, rules for private periods, and rules for private loans. It should be noted that, not every branch corresponds to these six types of accounts, and the account type of one branch may only include one or more of the six types of accounts depending on the service provided by the branch.
Business rules such as city codes, province numbers, network point numbers, categories, seed storage, mechanism numbers and the like are embodied in the original account numbers, different account types have different account lengths, and different customer account segments have different meanings. Please refer to table 1 below.
TABLE 1
New account rules can be designed through analysis of the original account, and specific analysis steps are as follows:
1. the account numbers of different types and the service content used by the account numbers are listed;
2. classifying by business meaning, such as dividing province line number, organization number and network point number into one class; classification, seed storage, currency and the like are divided into one class; sequence numbers, custom, etc. are classified into one class;
3. and merging the business rules with similar business meanings, and extracting the substitutable unified rules. For example, the province line number, the organization number, the network point and the like are finally replaced by the branch line number;
4. removing the content of the currency and the seed storage which are closely related to the service, thereby reducing the coupling degree of the account number and the service;
5. the serial number and other contents are reserved, so that the expandability of the account is ensured;
6. and the check bit is added, so that the correctness of the service input account is ensured.
According to the steps, the content which can be reserved in the proposal account, such as a division number, a sequence number, a check bit and the like, can be obtained. And collecting account demands corresponding to different account types of each branch, and finally abstracting different account rules according to the demands and contents reserved by the suggested accounts. According to an embodiment of the present invention, the account rules are, for example, ten types. For each branch, each type of account it relates to corresponds to one of the ten types of account rules.
According to one embodiment of the present invention, an account configuration table obtained by analyzing and abstracting a primary account includes, for example, the following parts:
1) Legal ID (legal identification): uniquely identifying a branch;
2) Line number: the content commonly contained in the account is used for distinguishing different branches, the content is contained in the account and used for meeting the requirement of distinguishing different branches through the account, and the branch number can be changed according to the requirement of the branches;
3) Logical province line number: in the configuration table, a logical line number is assigned to each line. The logic province is not a province and city according to the national standard, but is a region divided inside a bank; the logical province number is a virtual code corresponding to the area divided in the bank one by one and is used as a database partition identifier for account partition storage, and no business meaning exists. When the account is stored after the account is generated, the system can automatically use the logical province number as the partition information of the database so as to meet the partition storage of the database. Therefore, the number of database operation access data during account maintenance is reduced, the database access efficiency is improved, and the service response time and the customer satisfaction are finally improved;
4) The reading mode of the line dividing number is as follows: the acquisition mode of the branch number can be divided into two types, namely specific solidified content and specified database, and the method can be flexibly adjusted by service personnel to realize loose coupling on service and a system, wherein the service change does not affect the background program content (in an account configuration table shown in the following table 2, a value of 0 refers to the solidified content, and 1 refers to reading from the database);
5) Account template: abstract results of account rules. In the embodiment of the invention, the existing account type classification mode is reserved. By communicating with multiple branches, account types are currently categorized into six major categories. In addition, account rules provided by each branch business are synthesized, and ten general account rules are abstracted from the contents such as the coding mode of the account rules. The rules are an account rule set of the current business, and have cohesiveness (the account rule and the business are not hooked, and the functions are single) and reusability. Meanwhile, the account template is synthesized by the account type and the account rule. The account number type and account number rule can be newly added without affecting the existing content. If the existing content cannot accept new business requirements, new account types and rules can be additionally inserted. This approach ensures that the configuration table structure is unchanged, and only the development of a new template is required to be completed. The contents of the account configuration table are exemplified in table 2 below.
TABLE 2
Legal person ID Line number Logical line number Line number reading mode Account template
DC010 “689” “662” “0” 123GGG
DB009 “696” “504” “0” 62268G
DC004 “” “509” “1” 12318G
In an embodiment of the invention, the account template is synthesized from account types and account rules together. In table 2, a column of "account templates" corresponds to a string of six-bit strings, and six bits represent six general account types that are currently generalized: for public periods, for public loans, for private periods, and for private loans. The number of each bit represents the account rule that each account type corresponds to. Currently, the account rules we summarise ten broad categories identified by 1 to 9 and a. For example, "1" indicates an account rule "3+8+1 (3-digit branch number+8-digit sequence number+1-digit check bit)", "2" indicates an account rule "20-digit new generation pair public account (first 3 digits+1-digit new account number+2 digits account type+6 digits after the mechanism number+2 digits+6 digits of the reserved bit)", "3" indicates an account rule "3+2+9" (3-digit branch number+2 digits account type+9 digits sequence number) ", and the like, wherein" G "in the account template indicates that the branch does not have an account of the account type. Taking the account template "123GGG" as an example, specific meanings are described in Table 3 below.
TABLE 3 Table 3
From the contents contained in the account configuration tables described in the foregoing tables 2 and 3, it can be seen that the account rules contain little service information. Thus, a unified account generation interface can be provided for account generation. The account generation interface only needs to include information related to the attribute of the branch and the attribute of the account, and does not need to include other business information such as currency, account book and the like. The account generation interface in the embodiment of the invention only needs to generate the mechanism code, the account type and the sequence number of the account opening, so that different branches can use a unified interface to generate the account.
According to the embodiment of the invention, the step of calling the unified account generation interface to generate the account according to the account template specifically comprises the following steps:
calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type;
searching a corresponding account template from an account configuration table according to the legal person identification;
acquiring an account rule according to the account type and the account template;
and generating an account according to the acquired account rule.
Specifically, in one embodiment of the present invention, the specific process of account generation is as follows:
1) The system finds out the corresponding legal person identification ID according to the organization code of account opening;
2) And acquiring an account rule corresponding to the account type from an account configuration table according to the legal person identification ID and the account type received by the interface. Specifically, an account template corresponding to the legal identification ID can be obtained from an account configuration table through the legal identification ID, and then a corresponding account rule can be obtained according to the account type and the account template;
3) And acquiring the components of the account in the account rule according to the specific account rule. For example, the account rule is "3-bit line number+8-bit sequence number+1-bit check bit", the line number is obtained according to the line number reading mode in the configuration table, then the 8-bit sequence number is obtained from the sequence number document according to the line number, and then the 1-bit check bit is generated according to the check rule logic. Finally, the three parts of the dividing number, the sequence number and the check bit are combined together to form the 12-bit account. When the account is stored, the logical province number is obtained from the account configuration table and used as the partition information of the database, the generated account partition is stored in the database, and finally the generation and maintenance of the account are completed. The sequence numbers in the sequence number documents need to be guaranteed to be globally unique, and can be generated in a sequential increasing mode; the value of the check bit can be calculated by a certain algorithm through the numbers except the check bit in the account number. And when the background generates an account, the check bit generation algorithm is consistent with the check bit generation algorithm used when the front end judges the correctness of the account. Therefore, if the business personnel have careless error in the input account, the account can be identified to have error in output through the check bit. These verification rules are uniformly determined with the business communication. The background and front end algorithms are consistent, for example, common algorithms have mode ten and no carry, etc.
According to the embodiment of the invention, the account configuration table consists of a legal person identification ID, a line number, a logic provincial line number, a line number reading mode and an account template. The logical province line number is used as the partition information of the database, so that the number of data accessed by database operation during the maintenance of the account is reduced, and the efficiency of data storage of the account is improved to a certain extent. The account type and account rules together form an account template. The account types and account rules can be newly added without affecting the existing account templates. If the existing account template cannot accept new business requirements, the method can be carried out by additionally inserting brand new account types and account rules. The method can ensure that the structure of the account configuration table is unchanged, and the account configuration table can be online only by completing development test of a new template.
Because the account template and the service coupling degree are reduced, the account generation interface has uniformity, different branch accounts are generated, the uniform interface can be used for generating the account in a background system, and the method is simple and convenient to use and standard.
Fig. 2 is a schematic diagram of main modules of an apparatus for generating an account according to an embodiment of the present invention. As shown in fig. 2, the device 200 for generating an account according to the embodiment of the present invention mainly includes a rule determining module 201, a template generating module 202, and an account generating module 203.
The rule determining module 201 is configured to determine an account rule corresponding to the service according to a service requirement and an account rule set stored in an account configuration table;
the template generating module 202 is configured to generate an account template corresponding to the service according to the account type and the account rule corresponding to the service;
and the account generation module 203 is configured to invoke a unified account generation interface to generate an account according to the account template.
According to one embodiment of the invention, the rule determination module 201 may also be configured to:
comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement;
and generating an account rule corresponding to the service requirement according to the first account rule.
According to another embodiment of the present invention, the account configuration table further includes a legal person identifier and an account type, and the account generation module 203 may be further configured to:
calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type;
searching a corresponding account template from the account configuration table according to the legal person identifier;
acquiring an account rule according to the account type and the account template;
and generating an account according to the acquired account rule.
According to yet another embodiment of the invention, account types include, for example: for public periods, for public loans, for private periods, and for private loans.
According to a further embodiment of the present invention, the account configuration table may further include a logical province number, and after the account is generated, the account is stored in the database with the logical province number as a database partition identifier.
According to the technical scheme of the embodiment of the invention, the account rules corresponding to the service are determined according to the service requirements and the account rule set stored in the account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; the unified account generation interface is called to generate an account according to the account template, so that account rules and services are loosely coupled, and high reusability of the account template can be realized; the account template is stored through the account configuration table, so that the situation that logic of a plurality of account rules is solidified in codes is avoided, the account configuration table can be flexibly added and expanded, and the existing account template is not affected; when a new business requirement needs to be met, only the development of a new account template is needed to be realized, and the online test can be performed, so that the work of influence analysis, development and test is greatly reduced; the unified account generation interface is called to generate the account, so that standardized access specifications can be provided for users.
According to the account generation method provided by the embodiment of the invention, the account coding rule is loosely coupled with the service, and the high reusability of the account template can be realized through the analysis and participation determined by the early account coding rule; the overseas branch numbers can be flexibly obtained through the configuration of the branch number obtaining mode in the account configuration table, and if the business is modified on the branch numbers, the business personnel can apply for modifying the database content storing the branch numbers by themselves without influencing the logics and the like of account generation; the account configuration table contains the database partition information stored by the account, so that the maintenance efficiency of the account database is improved, the service response time is improved, and the customer satisfaction is improved.
Fig. 3 illustrates an exemplary system architecture 300 of a device or method of account generation to which embodiments of the present invention may be applied.
As shown in fig. 3, the system architecture 300 may include terminal devices 301, 302, 303, a network 304, and a server 305. The network 304 is used as a medium to provide communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 305 via the network 304 using the terminal devices 301, 302, 303 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 301, 302, 303, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 301, 302, 303 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 305 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 301, 302, 303. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for generating an account provided in the embodiment of the present invention is generally executed by the server 305, and accordingly, the device for generating an account is generally disposed in the server 305.
It should be understood that the number of terminal devices, networks and servers in fig. 3 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 4, there is illustrated a schematic diagram of a computer system 400 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 4 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 401.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described units or modules may also be provided in a processor, for example, as: a processor includes a rule determination module, a template generation module, and an account generation module. The names of these units or modules do not in some cases limit the units or modules themselves, for example, the rule determining module may also be described as "a module for determining an account rule corresponding to a service according to a service requirement and an account rule set stored in an account configuration table".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; and calling a unified account generation interface to generate an account according to the account template.
According to the technical scheme of the embodiment of the invention, the account rules corresponding to the service are determined according to the service requirements and the account rule set stored in the account configuration table; generating an account template corresponding to the service according to the account type and the account rule corresponding to the service; the unified account generation interface is called to generate an account according to the account template, so that account rules and services are loosely coupled, and high reusability of the account template can be realized; the account template is stored through the account configuration table, so that the situation that logic of a plurality of account rules is solidified in codes is avoided, the account configuration table can be flexibly added and expanded, and the existing account template is not affected; when a new business requirement needs to be met, only the development of a new account template is needed to be realized, and the online test can be performed, so that the work of influence analysis, development and test is greatly reduced; the unified account generation interface is called to generate the account, so that standardized access specifications can be provided for users.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method for generating an account number, comprising:
determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table, wherein the account configuration table further comprises legal identifications and account types, and the account configuration table is obtained by analyzing and summarizing a large number of original account rules of different account types;
generating an account template corresponding to the service according to the account type and the account rule corresponding to the service;
and calling a unified account generation interface to generate an account according to the account template, wherein the method comprises the following steps: calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type; searching a corresponding account template from the account configuration table according to the legal person identifier; acquiring an account rule according to the account type and the searched account template; generating an account according to the acquired account rule;
the method for determining the account rules corresponding to the service according to the service requirements and the account rule set stored in the account configuration table comprises the following steps: comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement; and generating an account rule corresponding to the service requirement according to the first account rule.
2. The method of claim 1, wherein the account type comprises: for public periods, for public loans, for private periods, and for private loans.
3. The method of claim 1, wherein the account configuration table further comprises a logical province number, and wherein after generating the account, the account is stored in a database with the logical province number as a database partition identification.
4. An apparatus for generating an account, comprising:
the rule determining module is used for determining account rules corresponding to the service according to the service requirements and an account rule set stored in an account configuration table, wherein the account configuration table further comprises legal identifications and account types, and the account configuration table is obtained by analyzing and summarizing a large number of original account rules of different account types;
the template generation module is used for generating an account template corresponding to the service according to the account type and the account rule corresponding to the service;
the account generation module is used for calling a unified account generation interface to generate an account according to the account template;
the account generation module is further configured to: calling a unified account generation interface to receive an account generation request, wherein the account generation request comprises a legal person identifier and an account type; searching a corresponding account template from the account configuration table according to the legal person identifier; acquiring an account rule according to the account type and the searched account template; generating an account according to the acquired account rule;
the rule determination module is further configured to: comparing the service requirement with each account rule in the account rule set to obtain a first account rule matched with the service requirement; and generating an account rule corresponding to the service requirement according to the first account rule.
5. The apparatus of claim 4, wherein the account type comprises: for public periods, for public loans, for private periods, and for private loans.
6. The apparatus of claim 4, wherein the account configuration table further comprises a logical province number, and wherein after the account is generated, the account is stored in the database with the logical province number as a database partition identification.
7. An electronic device for generating an account number, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-3.
8. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-3.
CN202010102328.XA 2020-02-19 2020-02-19 Account number generation method and device Active CN111339743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102328.XA CN111339743B (en) 2020-02-19 2020-02-19 Account number generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102328.XA CN111339743B (en) 2020-02-19 2020-02-19 Account number generation method and device

Publications (2)

Publication Number Publication Date
CN111339743A CN111339743A (en) 2020-06-26
CN111339743B true CN111339743B (en) 2023-07-18

Family

ID=71185434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102328.XA Active CN111339743B (en) 2020-02-19 2020-02-19 Account number generation method and device

Country Status (1)

Country Link
CN (1) CN111339743B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001789B (en) * 2020-08-24 2023-08-18 中国银行股份有限公司 Bank account generation method and device
CN112884098B (en) * 2021-01-25 2024-05-28 中国建设银行股份有限公司 Card number generation method and device
CN114841794A (en) * 2022-04-20 2022-08-02 中国银行股份有限公司 Account processing method and device, electronic equipment and storage medium
CN115757413B (en) * 2022-11-23 2024-01-19 中电金信软件有限公司 Data coding method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9741036B1 (en) * 2016-06-30 2017-08-22 Square, Inc. Provisioning account numbers and cryptographic tokens
CN107644328A (en) * 2017-09-28 2018-01-30 泰康保险集团股份有限公司 Generation method, device, medium and the electronic equipment of accounting voucher
CN108829650A (en) * 2018-06-01 2018-11-16 腾讯科技(北京)有限公司 A kind of generation method of card number, device, server and storage medium
CN109408043A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 A kind of program creating method and device
CN109493025A (en) * 2018-10-23 2019-03-19 中国银行股份有限公司 A kind of account generation method and device
CN109542398A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 A kind of operation system generation method, device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015106206A1 (en) * 2014-01-13 2015-07-16 Patricia Lee System and method for financial management

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9741036B1 (en) * 2016-06-30 2017-08-22 Square, Inc. Provisioning account numbers and cryptographic tokens
CN107644328A (en) * 2017-09-28 2018-01-30 泰康保险集团股份有限公司 Generation method, device, medium and the electronic equipment of accounting voucher
CN108829650A (en) * 2018-06-01 2018-11-16 腾讯科技(北京)有限公司 A kind of generation method of card number, device, server and storage medium
CN109408043A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 A kind of program creating method and device
CN109493025A (en) * 2018-10-23 2019-03-19 中国银行股份有限公司 A kind of account generation method and device
CN109542398A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 A kind of operation system generation method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN111339743A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111339743B (en) Account number generation method and device
CN109034988B (en) Accounting entry generation method and device
CN108846753B (en) Method and apparatus for processing data
CN110472207A (en) List generation method and device
CN105530272A (en) Method and device for application data synchronization
CN111444077A (en) Method and device for generating flow node test data
CN110928594A (en) Service development method and platform
CN110851343A (en) Test method and device based on decision tree
CN110852057A (en) Method and device for calculating text similarity
CN109754295A (en) Method and apparatus for output information
CN116204428A (en) Test case generation method and device
CN112990991A (en) Method and device for merging invoices
CN115495658A (en) Data processing method and device
CN108664535B (en) Information output method and device
CN115563942A (en) Contract generation method and device, electronic equipment and computer readable medium
CN115330540A (en) Method and device for processing transaction data
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN113487411A (en) Method, device, equipment and computer readable medium for information interaction
CN109656519B (en) Method and device for automatically accessing service data
CN112256566A (en) Test case preservation method and device
CN113283991A (en) Processing method and device for transaction data on block chain
CN111127077A (en) Recommendation method and device based on stream computing
CN112181817A (en) Test method and test device for SOA (service oriented architecture) platform
CN110895564A (en) Potential customer data processing method and device
CN113066479A (en) Method and device for evaluating model

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220930

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant