Browse Source

修改用户email bug修改

wangPH 1 year ago
parent
commit
17e70a48b2

+ 1 - 1
background-user/src/main/java/cn/kdan/compdf/service/impl/UserBillingInformationServiceImpl.java

@@ -130,11 +130,11 @@ public class UserBillingInformationServiceImpl extends ServiceImpl<UserBillingIn
         UserBillingInformation userBillingInformation = new UserBillingInformation();
         userBillingInformation.setEmail(email);
         if (BeanUtil.isNotEmpty(this.getUserBillingInfo(compdfKitId))) {
-            userBillingInformation.setCreatedAt(new Date());
             userBillingInformation.setUpdatedAt(new Date());
             this.baseMapper.update(userBillingInformation, new LambdaQueryWrapper<UserBillingInformation>().eq(UserBillingInformation::getUserId, compdfKitId));
         } else {
             userBillingInformation.setUpdatedAt(new Date());
+            userBillingInformation.setCreatedAt(new Date());
             userBillingInformation.setUserId(compdfKitId);
             this.baseMapper.insert(userBillingInformation);
         }