Method for realizing batch sale and card-selling

文档序号:1964628 发布日期:2021-12-14 浏览:18次 中文

阅读说明:本技术 实现批量销户销卡的方法 (Method for realizing batch sale and card-selling ) 是由 王泽� 于 2021-09-17 设计创作,主要内容包括:本发明提供了一种实现批量销户销卡的方法,包括以下步骤:将客户的销卡请求存储到销卡文件中;读取销卡文件中的每条销卡请求,校验每条销卡请求的合法性,未通过校验的销卡请求销卡失败,通过校验的销卡请求进入下一步;判断每条销卡请求的账户所具有的未销卡的卡片数量,若未销卡的卡片数量大于1,则直接进行销卡,若未销卡的卡片数量为1,则判断该卡片是否设置了强制销户,若是则进行销卡并销户,若否则增强校验该卡片判断是否可以销户,若是则进行销卡并销户,若否则该销卡请求销卡失败;编辑短信;对于未进行销户的账户重新设置账户级;更新销卡记录;根据所执行操作发送短信或执行其它操作,本发明能够简化银行客服工作人员的工作量。(The invention provides a method for realizing batch account sales and card distribution, which comprises the following steps: storing a card selling request of a client into a card selling file; reading each card canceling request in the card canceling file, checking the legality of each card canceling request, and entering the next step when the card canceling request which does not pass the checking fails; judging the number of cards which are not sold in each account with each card selling request, directly selling the cards if the number of the cards which are not sold is greater than 1, judging whether the card is provided with a forced account selling if the number of the cards which are not sold is 1, selling the cards and selling the accounts if the card is provided with the forced account selling, if the card is not sold, strengthening and verifying the card to judge whether the card can be sold, if the card is sold and sold, and otherwise, the card selling request fails; editing the short message; resetting the account level for accounts which are not subjected to account sales; updating a card selling record; according to the executed operation, the invention can simplify the workload of the bank customer service staff by sending the short message or executing other operations.)

1. A method for realizing batch account sales and card distribution is characterized by comprising the following steps:

step 1, storing a card selling request of a client into a card selling file;

step 2, reading each card canceling request in the card canceling file, checking the legality of each card canceling request, and entering step 3 if the card canceling request fails to pass the check;

step 3, judging the number of the cards which are not sold and are in the account of each card selling request verified in the step 2, if the number of the cards which are not sold is larger than 1, entering the step 4, if the number of the cards which are not sold is 1, judging whether the card is provided with a forced sales counter, if so, entering the step 4, if not, strengthening and verifying the card to judge whether the card can be sold, if so, entering the step 4, otherwise, failing to sell the card request;

step 4, carrying out card selling operation on the card corresponding to each card selling request in the step 3;

step 5, carrying out a card-cancelling operation on the account of which the card for executing the card-cancelling operation is only one card;

step 6, editing short messages for all accounts with the card-selling request by using corresponding short message templates according to the executed operation;

step 7, for accounts which are not subjected to account cancellation, obtaining all cards of the accounts, sorting the cards in an ascending order according to the card product grade, the creation date and the card number, and setting the product grade of the first card to the account grade;

step 8, the user is finished selling the card, the card selling record is updated, and the object file is returned;

and 9, sending a corresponding short message or executing other operations according to the returned object file.

2. The method for realizing batch sales of cards according to claim 1, wherein:

and (3) after timing or reaching a preset number of card-selling requests, entering a step 2 and starting to execute card-selling.

3. The method for realizing batch sales of cards according to claim 1, wherein:

the verification of the legality of each card sales request comprises the following steps: and checking the legality of system parameters, the legality of card information and whether an ETC binding relationship exists, and if any one of the parameters fails to pass the checking, the card selling request fails to check.

4. The method for realizing batch sales of cards according to claim 3, wherein:

the legality of the card information includes whether the card number is in compliance, whether the card exists, and whether the card has been sold.

5. The method for realizing batch sales of cards according to claim 1, wherein:

the method for enhancing and verifying the card to judge whether the card can be sold in the step 3 comprises the following steps: and after all the cards executing the operation are executed, the recorded cards are subjected to account cancellation, and meanwhile, card cancellation records are generated and stored in a data table.

6. The method for realizing batch sales of cards according to claim 5, wherein:

the balance related information comprises checking points of stages, non-entry and interest; the amount information comprises: overflowed payment, dispute amount, unmatched cash-withdrawal/debit amount.

7. The method for realizing batch sales of cards according to claim 1, wherein:

the operation of pinning in the step 4 is as follows: setting a card selling state, a card selling time and a card selling reason for a card selling, simultaneously recording related changes by a log, storing a card selling record, and if the card is a main card, selling all corresponding auxiliary cards together.

8. The method for realizing batch sales of cards according to claim 1, wherein:

the method for canceling the user operation in the step 5 comprises the following steps: the method comprises the steps of firstly setting a pre-account-cancelling state and pre-account-cancelling time for an account, and after the pre-account-cancelling time is reached, cancelling an account and recording related changes in a log.

Technical Field

The invention belongs to the technical field of computers, and particularly relates to a method for realizing batch account sales and card sales.

Background

In an actual card using scene, a customer generally needs a customer service staff to enter a single request into a system through a background customer service system when applying for sales and card selling, so that certain redundant workload is caused.

Disclosure of Invention

The present invention has been made to solve the above problems, and an object of the present invention is to provide a method for realizing batch sales of cards by simplifying the workload of bank customer service staff and safely and efficiently selling the cards.

The invention provides a method for realizing batch account sales and card distribution, which is characterized by comprising the following steps of:

step 1, storing a card selling request of a client into a card selling file;

step 2, reading each card canceling request in the card canceling file, checking the legality of each card canceling request, and entering step 3 if the card canceling request fails to pass the check;

step 3, judging the number of the cards which are not sold and are in the account of each card selling request verified in the step 2, if the number of the cards which are not sold is larger than 1, entering the step 4, if the number of the cards which are not sold is 1, judging whether the card is provided with a forced sales counter, if so, entering the step 4, if not, strengthening and verifying the card to judge whether the card can be sold, if so, entering the step 4, otherwise, failing to sell the card request;

step 4, carrying out card selling operation on the card corresponding to each card selling request in the step 3;

step 5, carrying out a card-cancelling operation on the account of which the card for executing the card-cancelling operation is only one card;

step 6, editing short messages for all accounts with the card-selling request by using corresponding short message templates according to the executed operation;

step 7, for accounts which are not subjected to account cancellation, obtaining all cards of the accounts, sorting the cards in an ascending order according to the card product grade, the creation date and the card number, and setting the product grade of the first card to the account grade;

step 8, the user is finished selling the card, the card selling record is updated, and the object file is returned;

and 9, sending a corresponding short message or executing other operations according to the returned object file.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: and (3) after timing or reaching a preset number of card-selling requests, entering a step 2 and starting to execute card-selling.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the verification of the legality of each card sales request comprises the following steps: and checking the legality of system parameters, the legality of card information and whether an ETC binding relationship exists, and if any one of the parameters fails to pass the checking, the card selling request fails to check.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the legality of the card information includes whether the card number is in compliance, whether the card exists, and whether the card has been sold.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the method for enhancing and verifying the card to judge whether the card can be sold in the step 3 comprises the following steps: and after all the cards executing the operation are executed, the recorded cards are subjected to account cancellation, and meanwhile, card cancellation records are generated and stored in a data table.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the balance related information comprises checking points of stages, non-entry and interest; the amount information comprises: overflowed payment, dispute amount, unmatched cash-withdrawal/debit amount.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the operation of pinning in the step 4 is as follows: setting a card selling state, a card selling time and a card selling reason for a card selling, simultaneously recording related changes by a log, storing a card selling record, and if the card is a main card, selling all corresponding auxiliary cards together.

Further, in the method for realizing batch sales of cards provided by the invention, the method can also have the following characteristics: the method for canceling the user operation in the step 5 comprises the following steps: the method comprises the steps of firstly setting a pre-account-cancelling state and pre-account-cancelling time for an account, and after the pre-account-cancelling time is reached, cancelling an account and recording related changes in a log.

The invention has the following advantages:

the method for realizing batch card canceling and canceling of the account number can simplify the workload of workers, optimize the service of canceling and canceling the account number and the account number, and safely and efficiently cancel and cancel the account number.

Drawings

Fig. 1 is a flow chart of a method for realizing batch sales card cancellation in the invention.

Detailed Description

In order to make the technical means, the creation features, the achievement purposes and the effects of the invention easy to understand, the following embodiments specifically describe the method for realizing the batch sales and sales of cards in combination with the accompanying drawings.

The method for realizing the batch sales card canceling is based on a batch processing system of a Spring batch framework, namely, each batch work definition and step definition are scheduled by the Spring batch, wherein each step is divided into reading, processing and writing.

The method for realizing batch sales and card distribution comprises the following steps:

in step S1, the customer' S card-selling request is stored in the card-selling file. The card selling request is initiated by a credit card holder and applied for a seller to sell the card in a self-service channel or a manual customer service page. This step is a Spring batch read operation.

In this embodiment, after timing or reaching a predetermined number of card-pinning requests, the process proceeds to step S2, and execution of card-pinning is started.

Step S2, reading each card selling request in the card selling file, checking the legality of each card selling request, failing to pass the check card selling request, and entering the step S3 through the check card selling request.

In this embodiment, verifying the validity of each card-sales request includes: and checking the legality of system parameters, the legality of card information and whether an ETC binding relationship exists, and if any one of the parameters fails to pass the checking, the card selling request fails to check. And if one card canceling request fails, directly returning to process the next card canceling request. The validity of the card information includes whether the card number is compliant, whether the card is present, and whether the card has been sold.

Step S3, determining the number of cards not sold in the account requested by each card-selling operation verified in step S2, and if the number of cards not sold is greater than 1, entering step S4; if the number of the cards which are not sold is 1, judging whether the card is provided with forced sales, if so, entering step S4, otherwise, carrying out enhanced verification on the card to judge whether the card can be sold, if so, entering step S4, otherwise, the card fails to request the card sales.

In this embodiment, the method for enhancing the verification of the card to determine whether the card can be sold is as follows: and after all the cards executing the operation are executed, the recorded cards are subjected to account cancellation, and meanwhile, card cancellation records are generated and stored in a data table. Specifically, the balance related information includes checking points of stages, non-accounts and interest types. The amount information comprises: overflowed payment, dispute amount, unmatched cash-withdrawal/debit amount.

In step S4, a card-pinning operation is performed for each card requested by the card-pinning request in step S3.

In this embodiment, the operation of pinning specifically includes: setting a card selling state, a card selling time and a card selling reason for a card selling, simultaneously recording related changes by a log, storing a card selling record, and if the card is a main card, selling all corresponding auxiliary cards together.

In step S5, a card-debit operation is performed on the account in which the card used to perform the card-debit operation is the only card in the account. That is, the card-canceling action is triggered only when the last card is used for card canceling.

In this embodiment, the method of the customer operation: the method comprises the steps of firstly setting a pre-account-cancelling state and pre-account-cancelling time for an account, and after the pre-account-cancelling time is reached, cancelling an account and recording related changes in a log. I.e., the customer is given a number of residency days when the sales is performed.

And step S6, editing short messages for all accounts with the card-selling request by using corresponding short message templates according to the executed operation.

Step S7, for accounts which do not have a sale account, all cards of the account are obtained, the cards are sorted in ascending order according to the card product grade, the creation date and the card number, and the product grade of the first card is set to the account grade.

And step S8, the user finishes selling the card, updates the card selling record, saves the updated card selling record and returns to the object file.

Steps S2-S8 are Spring batch processing operations.

And step S9, sending corresponding short messages or executing other operations according to the returned object file. Specifically, the returned file object is delivered to the spring batch for writing and generating the actual file, and a corresponding short message is sent or other operations are executed according to the generated file. Step S9 is a Spring batch write operation.

The above embodiments are preferred examples of the present invention, and are not intended to limit the scope of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:物料清单生成方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!