Forráskód Böngészése

feat(会员登记簿):提交

Wangyafan 8 órája%!(EXTRA string=óta)
szülő
commit
cbc2f027c1

+ 5 - 3
src/main/java/com/sunxung/factoring/service/bocom/vipaccount/impl/BocomVipAccountBasicInfoServiceImpl.java

@@ -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());
 
                 }