|
|
|
@ -1,13 +1,12 @@
|
|
|
|
|
package com.sztzjy.bank.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.sztzjy.bank.config.exception.handler.ServiceException;
|
|
|
|
|
import com.sztzjy.bank.entity.*;
|
|
|
|
|
|
|
|
|
|
import com.sztzjy.bank.entity.dto.BankCardInformationAnswerDTO;
|
|
|
|
|
import com.sztzjy.bank.entity.dto.PersonSavingInfoAnswerDTO;
|
|
|
|
|
import com.sztzjy.bank.entity.dto.PersonTakeOutInfoAnswerDTO;
|
|
|
|
|
import com.sztzjy.bank.entity.dto.PersonTransferToInfoDTO;
|
|
|
|
|
import com.sztzjy.bank.entity.dto.*;
|
|
|
|
|
import com.sztzjy.bank.mapper.*;
|
|
|
|
|
|
|
|
|
|
import com.sztzjy.bank.service.PersonalDepositWithdrawalService;
|
|
|
|
@ -49,6 +48,37 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
@Autowired
|
|
|
|
|
private PersonTransferToInfoMapper personTransferToInfoMapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private OperationProcessMapper operationProcessMapper;
|
|
|
|
|
/* 下面为此类公共方法
|
|
|
|
|
* @author xcj
|
|
|
|
|
* @Date 2025/3/13
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//判断用户操作流程
|
|
|
|
|
public boolean ProcessJudgment(Integer number, String userId, String largeModule) {
|
|
|
|
|
OperationProcessExample example = new OperationProcessExample();
|
|
|
|
|
example.createCriteria().andUserIdEqualTo(userId).andLargeModuleEqualTo(largeModule);
|
|
|
|
|
List<OperationProcess> operationProcesses = operationProcessMapper.selectByExample(example);
|
|
|
|
|
|
|
|
|
|
if (operationProcesses.isEmpty()) {
|
|
|
|
|
OperationProcess operationProcess = new OperationProcess(userId, largeModule);
|
|
|
|
|
operationProcessMapper.insert(operationProcess);
|
|
|
|
|
|
|
|
|
|
operationProcesses.add(operationProcess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
OperationProcess operationProcess = operationProcesses.get(0);
|
|
|
|
|
|
|
|
|
|
if (number == operationProcess.getCompletedStepsNumber() + 1) { //需要进行更新操作
|
|
|
|
|
operationProcess.setCompletedStepsNumber(number);
|
|
|
|
|
|
|
|
|
|
operationProcessMapper.updateByPrimaryKey(operationProcess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return number <= operationProcess.getCompletedStepsNumber() + 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//刷卡查询户名-余额
|
|
|
|
|
@Override
|
|
|
|
|
public ResultEntity getNameInfoByUserId(String bankCardNumber, String withdrawalPwd, String userId, Integer number) {
|
|
|
|
@ -66,9 +96,11 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
if (!bankCardInformation.getWithdrawalPwd().equals(withdrawalPwd)) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.ACCEPTED, "密码错误!");
|
|
|
|
|
}
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人银行卡业务" + "-录入客户信息"+"-"+number);
|
|
|
|
|
// 解析 JSON 字符串
|
|
|
|
|
CustomerInformationAnswerDTO answerDTO = JSON.parseObject(answer, CustomerInformationAnswerDTO.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,bankCardInformation.getChName());
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, answerDTO.getChName(),0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -87,6 +119,12 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
if (personSavingInfo.getSubState()==1)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(1, personSavingInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
personSavingInfo = submitByDepositWithdrawalCaculate(personSavingInfo);
|
|
|
|
|
personSavingInfo.setHandlingAgency("0000100");
|
|
|
|
|
personSavingInfo.setSerialNumber("000000013201501230019");
|
|
|
|
@ -109,6 +147,10 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
if (personSavingInfo.getSubState()==1)
|
|
|
|
|
{
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(1, personSavingInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
personSavingInfo = submitByDepositWithdrawalCaculate(personSavingInfo);
|
|
|
|
|
personSavingInfo.setHandlingAgency("0000100");
|
|
|
|
|
personSavingInfo.setSerialNumber("000000013201501230019");
|
|
|
|
@ -183,6 +225,10 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
if (personTakeOutInfo.getSubState()==1)
|
|
|
|
|
{
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(2, personTakeOutInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
personTakeOutInfo = submitTakeOutCaculate(personTakeOutInfo);
|
|
|
|
|
personTakeOutInfo.setHandlingAgency("0000100");
|
|
|
|
|
personTakeOutInfo.setSerialNumber("000000013201501230021");
|
|
|
|
@ -205,6 +251,10 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
if (personTakeOutInfo.getSubState()==1)
|
|
|
|
|
{
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(2, personTakeOutInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
personTakeOutInfo = submitTakeOutCaculate(personTakeOutInfo);
|
|
|
|
|
personTakeOutInfo.setHandlingAgency("0000100");
|
|
|
|
|
personTakeOutInfo.setSerialNumber("000000013201501230021");
|
|
|
|
@ -252,11 +302,25 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
personTransferToInfo.setId(IdUtil.simpleUUID());
|
|
|
|
|
|
|
|
|
|
if (personTransferToInfo.getSubState() == 1) {
|
|
|
|
|
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(3, personTransferToInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
personTransferToInfo = submitTransferToCaculate(personTransferToInfo);
|
|
|
|
|
personTransferToInfo.setHandlingAgency("0000100");
|
|
|
|
|
personTransferToInfo.setSerialNumber("000000013201501230021");
|
|
|
|
|
personTransferToInfo.setHandlingTeller("000000013");
|
|
|
|
|
personTransferToInfo.setAccountBalance("398994");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer anInt = Convert.toInt(personTransferToInfo.getAccountBalance());
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务"+"-"+personTransferToInfo.getNumber());
|
|
|
|
|
// 解析 JSON 字符串
|
|
|
|
|
PersonTransferToInfoDTO answerDTO = JSON.parseObject(answer, PersonTransferToInfoDTO.class);
|
|
|
|
|
Integer anInt1 = Convert.toInt(answerDTO.getTransferAccountsAmount());
|
|
|
|
|
|
|
|
|
|
personTransferToInfo.setAccountBalance(Convert.toStr(anInt-anInt1));
|
|
|
|
|
}
|
|
|
|
|
//数据保存
|
|
|
|
|
personTransferToInfoMapper.insertSelective(personTransferToInfo);
|
|
|
|
@ -272,11 +336,23 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (personTransferToInfo.getSubState() == 1) {
|
|
|
|
|
//判断用户是否完成上一个流程,并更新操作步骤序号
|
|
|
|
|
if (!ProcessJudgment(3, personTransferToInfo.getUserId(), "个人存款业务")) {
|
|
|
|
|
throw new ServiceException(HttpStatus.ACCEPTED, "请先完成上一流程");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
personTransferToInfo = submitTransferToCaculate(personTransferToInfo);
|
|
|
|
|
personTransferToInfo.setHandlingAgency("0000100");
|
|
|
|
|
personTransferToInfo.setSerialNumber("000000013201501230021");
|
|
|
|
|
personTransferToInfo.setHandlingTeller("000000013");
|
|
|
|
|
personTransferToInfo.setAccountBalance("398994");
|
|
|
|
|
|
|
|
|
|
Integer anInt = Convert.toInt(personTransferToInfo.getAccountBalance());
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务"+"-"+personTransferToInfo.getNumber());
|
|
|
|
|
// 解析 JSON 字符串
|
|
|
|
|
PersonTransferToInfoDTO answerDTO = JSON.parseObject(answer, PersonTransferToInfoDTO.class);
|
|
|
|
|
Integer anInt1 = Convert.toInt(answerDTO.getTransferAccountsAmount());
|
|
|
|
|
|
|
|
|
|
personTransferToInfo.setAccountBalance(Convert.toStr(anInt-anInt1));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -302,7 +378,6 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(informationList)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultDataEntity<>(HttpStatus.OK);
|
|
|
|
|
}else {
|
|
|
|
|
return new ResultDataEntity<>(HttpStatus.OK,informationList.get(0));
|
|
|
|
@ -312,16 +387,31 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ResultEntity getTransferToBalance(String bankCardNumber, String withdrawalPwd, String userId, Integer number) {
|
|
|
|
|
|
|
|
|
|
PersonTakeOutInfoExample example = new PersonTakeOutInfoExample();
|
|
|
|
|
example.createCriteria().andUserIdEqualTo(userId).andNumberEqualTo(number);
|
|
|
|
|
List<PersonTakeOutInfo> informationList = personTakeOutInfoMapper.selectByExample(example);
|
|
|
|
|
return null;
|
|
|
|
|
if (CollectionUtils.isEmpty(informationList)) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK);
|
|
|
|
|
}else {
|
|
|
|
|
PersonTakeOutInfo personTakeOutInfo = informationList.get(0);
|
|
|
|
|
if (!personTakeOutInfo.getCardNumber().equals(bankCardNumber)){
|
|
|
|
|
return new ResultEntity<>(HttpStatus.ACCEPTED,"卡号有误!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!personTakeOutInfo.getCardPwd().equals(withdrawalPwd)){
|
|
|
|
|
return new ResultEntity<>(HttpStatus.ACCEPTED,"密码有误!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,personTakeOutInfo.getUserName(),personTakeOutInfo.getAccountBalance());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//个人转账业务-提交算分
|
|
|
|
|
private PersonTransferToInfo submitTransferToCaculate(PersonTransferToInfo personTransferToInfo) {
|
|
|
|
|
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务");
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务"+"-"+personTransferToInfo.getNumber());
|
|
|
|
|
if (answer == null) {
|
|
|
|
|
CaseInfoExample caseInfoExample = new CaseInfoExample();
|
|
|
|
|
caseInfoExample.createCriteria().andLargeModuleEqualTo("个人存取款业务").andModuleEqualTo("个人转账业务").andNumberEqualTo(personTransferToInfo.getNumber());
|
|
|
|
@ -333,8 +423,8 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
List<CaseAnswerInfo> answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample);
|
|
|
|
|
if (!CollectionUtils.isEmpty(answerInfoList)) {
|
|
|
|
|
String info = answerInfoList.get(0).getAnswer();
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人转账业务",info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务");
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人转账业务"+"-"+personTransferToInfo.getNumber(),info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人转账业务"+"-"+personTransferToInfo.getNumber());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -348,15 +438,15 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int errorNumber = personTransferToInfo.getErrorNumber();
|
|
|
|
|
//卡号
|
|
|
|
|
if (!answerDTO.getCardNumber().equals(personTransferToInfo.getCardNumber())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//刷卡密码
|
|
|
|
|
if (!answerDTO.getCardPwd().equals(personTransferToInfo.getCardPwd())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
// //卡号
|
|
|
|
|
// if (!answerDTO.getCardNumber().equals(personTransferToInfo.getCardNumber())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //刷卡密码
|
|
|
|
|
// if (!answerDTO.getCardPwd().equals(personTransferToInfo.getCardPwd())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//币种
|
|
|
|
|
if (!answerDTO.getCurrency().equals(personTransferToInfo.getCurrency())) {
|
|
|
|
@ -367,32 +457,32 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
if (!answerDTO.getCurrencyExchSymbol().equals(personTransferToInfo.getCurrencyExchSymbol())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//转入卡号
|
|
|
|
|
if (!answerDTO.getTransferCardNumber().equals(personTransferToInfo.getTransferCardNumber())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//转账金额
|
|
|
|
|
if (!answerDTO.getTransferAccountsAmount().equals(personTransferToInfo.getTransferAccountsAmount())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//转入开户银行
|
|
|
|
|
if (!answerDTO.getTransferToAccountOpenBank().equals(personTransferToInfo.getTransferToAccountOpenBank())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//转入户名
|
|
|
|
|
if (!answerDTO.getTransferToUserName().equals(personTransferToInfo.getTransferToUserName())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//手续费
|
|
|
|
|
if (!answerDTO.getCommission().equals(personTransferToInfo.getCommission())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
// //转入卡号
|
|
|
|
|
// if (!answerDTO.getTransferCardNumber().equals(personTransferToInfo.getTransferCardNumber())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// //转入开户银行
|
|
|
|
|
// if (!answerDTO.getTransferToAccountOpenBank().equals(personTransferToInfo.getTransferToAccountOpenBank())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //转入户名
|
|
|
|
|
// if (!answerDTO.getTransferToUserName().equals(personTransferToInfo.getTransferToUserName())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //手续费
|
|
|
|
|
// if (!answerDTO.getCommission().equals(personTransferToInfo.getCommission())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//收费状态
|
|
|
|
@ -412,7 +502,7 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
//个人取款业务-提交算分
|
|
|
|
|
private PersonTakeOutInfo submitTakeOutCaculate(PersonTakeOutInfo personTakeOutInfo) {
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人取款业务");
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人取款业务"+"-"+personTakeOutInfo.getNumber());
|
|
|
|
|
if (answer == null) {
|
|
|
|
|
CaseInfoExample caseInfoExample = new CaseInfoExample();
|
|
|
|
|
caseInfoExample.createCriteria().andLargeModuleEqualTo("个人存取款业务").andModuleEqualTo("个人取款业务").andNumberEqualTo(personTakeOutInfo.getNumber());
|
|
|
|
@ -424,8 +514,8 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
List<CaseAnswerInfo> answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample);
|
|
|
|
|
if (!CollectionUtils.isEmpty(answerInfoList)) {
|
|
|
|
|
String info = answerInfoList.get(0).getAnswer();
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人取款业务",info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人取款业务");
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人取款业务"+"-"+personTakeOutInfo.getNumber(),info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人取款业务"+"-"+personTakeOutInfo.getNumber());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -439,15 +529,15 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int errorNumber = personTakeOutInfo.getErrorNumber();
|
|
|
|
|
//卡号
|
|
|
|
|
if (!answerDTO.getCardNumber().equals(personTakeOutInfo.getCardNumber())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//刷卡密码
|
|
|
|
|
if (!answerDTO.getCardPwd().equals(personTakeOutInfo.getCardPwd())) {
|
|
|
|
|
errorNumber++;
|
|
|
|
|
}
|
|
|
|
|
// //卡号
|
|
|
|
|
// if (!answerDTO.getCardNumber().equals(personTakeOutInfo.getCardNumber())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //刷卡密码
|
|
|
|
|
// if (!answerDTO.getCardPwd().equals(personTakeOutInfo.getCardPwd())) {
|
|
|
|
|
// errorNumber++;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//币种
|
|
|
|
|
if (!answerDTO.getCurrency().equals(personTakeOutInfo.getCurrency())) {
|
|
|
|
@ -485,7 +575,7 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
|
|
|
|
|
//个人存款业务-提交算分
|
|
|
|
|
private PersonSavingInfo submitByDepositWithdrawalCaculate(PersonSavingInfo personSavingInfo) {
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人存款业务");
|
|
|
|
|
String answer = redisUtil.get("bank" + "-个人存取款业务" + "-个人存款业务"+"-"+personSavingInfo.getNumber());
|
|
|
|
|
if (answer == null) {
|
|
|
|
|
CaseInfoExample caseInfoExample = new CaseInfoExample();
|
|
|
|
|
caseInfoExample.createCriteria().andLargeModuleEqualTo("个人存取款业务").andModuleEqualTo("个人存款业务").andNumberEqualTo(personSavingInfo.getNumber());
|
|
|
|
@ -497,8 +587,8 @@ public class PersonalDepositWithdrawalServiceImpl implements PersonalDepositWith
|
|
|
|
|
List<CaseAnswerInfo> answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample);
|
|
|
|
|
if (!CollectionUtils.isEmpty(answerInfoList)) {
|
|
|
|
|
String info = answerInfoList.get(0).getAnswer();
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人存款业务",info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人存款业务");
|
|
|
|
|
redisUtil.set("bank" + "-个人存取款业务" + "-个人存款业务"+"-"+personSavingInfo.getNumber(),info,3600);
|
|
|
|
|
answer=redisUtil.get("bank" + "-个人存取款业务" + "-个人存款业务"+"-"+personSavingInfo.getNumber());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|