|
@@ -456,15 +456,17 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
|
|
|
BocomBasicInfo bocomBasicInfo = bocomBasicInfoService.get(vipAccountBasicInfo.getBocomBasicInfoId());
|
|
|
if ("bocomCustomerStatus_success".equals(bocomBasicInfo.getCustomerStatus())) {
|
|
|
BocomVipAccountBasicInfo newVipAccountInfo = autoQueryVipRequest(vipAccountBasicInfo);
|
|
|
+ BocomVipAccountBasicInfo oldVipAccountBasicInfo = getById(id);
|
|
|
+
|
|
|
//新旧对比 如果之前状态不是客户授权中 现在是客户授权中 则重置二维码及二维码的生效时间
|
|
|
- if (0 == newVipAccountInfo.getAuthorizationStatus() && !newVipAccountInfo.getAuthorizationStatus().equals(vipAccountBasicInfo.getAuthorizationStatus())) {
|
|
|
+ if (0 == newVipAccountInfo.getAuthorizationStatus() && !newVipAccountInfo.getAuthorizationStatus().equals(oldVipAccountBasicInfo.getAuthorizationStatus())) {
|
|
|
resetUrl(newVipAccountInfo.getId());
|
|
|
}
|
|
|
- if (1 == newVipAccountInfo.getAccountStatus() && !newVipAccountInfo.getAccountStatus().equals(vipAccountBasicInfo.getAccountStatus())) {
|
|
|
+ if (1 == newVipAccountInfo.getAccountStatus() && !newVipAccountInfo.getAccountStatus().equals(oldVipAccountBasicInfo.getAccountStatus())) {
|
|
|
newVipAccountInfo.setOpenTime(new Date());
|
|
|
}
|
|
|
|
|
|
- if (3 == newVipAccountInfo.getAccountStatus() && !newVipAccountInfo.getAccountStatus().equals(vipAccountBasicInfo.getAccountStatus())) {
|
|
|
+ if (3 == newVipAccountInfo.getAccountStatus() && !newVipAccountInfo.getAccountStatus().equals(oldVipAccountBasicInfo.getAccountStatus())) {
|
|
|
newVipAccountInfo.setExpiringDate(new Date());
|
|
|
|
|
|
}
|