|
@@ -243,12 +243,14 @@ public class BankInfoServiceImpl implements BankInfoService {
|
|
|
bankInfos = bankInfoDao.findByUseruuAndAccountTypeAndDissociativeAndStatusOrderByNumAsc(baInfo.getUseruu(), baInfo.getAccountType(), baInfo.getDissociative(), Status.ALLOW.value());
|
|
bankInfos = bankInfoDao.findByUseruuAndAccountTypeAndDissociativeAndStatusOrderByNumAsc(baInfo.getUseruu(), baInfo.getAccountType(), baInfo.getDissociative(), Status.ALLOW.value());
|
|
|
} else {
|
|
} else {
|
|
|
bankInfos = bankInfoDao.findSupBankList(baInfo.getEnuu(), baInfo.getDissociative(), baInfo.getAccountType(), statusList);
|
|
bankInfos = bankInfoDao.findSupBankList(baInfo.getEnuu(), baInfo.getDissociative(), baInfo.getAccountType(), statusList);
|
|
|
- BankInfo firstItem = bankInfos.get(0);
|
|
|
|
|
- if (firstItem.getStatus() == Status.ALLOW.value()){
|
|
|
|
|
- firstItem.setStatus(Status.EXPIRED.value());
|
|
|
|
|
|
|
+ if (AccountType.RECEIVE_TYPE.equals(baInfo.getAccountType())) {
|
|
|
|
|
+ BankInfo firstItem = bankInfos.get(0);
|
|
|
|
|
+ if (firstItem.getStatus() == Status.ALLOW.value()){
|
|
|
|
|
+ firstItem.setStatus(Status.EXPIRED.value());
|
|
|
|
|
+ }
|
|
|
|
|
+ baInfo.setStatus(Status.ALLOW.value());
|
|
|
|
|
+ bankInfoDao.save(baInfo);
|
|
|
}
|
|
}
|
|
|
- baInfo.setStatus(Status.ALLOW.value());
|
|
|
|
|
- bankInfoDao.save(baInfo);
|
|
|
|
|
}
|
|
}
|
|
|
setDefaultAccountAssist(bankInfos, id);
|
|
setDefaultAccountAssist(bankInfos, id);
|
|
|
}
|
|
}
|