he2802 1 年之前
父节点
当前提交
f7b560392c

+ 1 - 1
zhongzheng-admin/src/main/resources/application-dev.yml

@@ -4,7 +4,7 @@ spring:
         type: com.alibaba.druid.pool.DruidDataSource
         driverClassName: com.mysql.cj.jdbc.Driver
         druid:
-            url: jdbc:mysql://192.168.1.222:3306/zz_edu_saas?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
+            url: jdbc:mysql://192.168.1.222:3306/zz_edu_saas_pre?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
             username: root
             password: zhongzheng2021
             # 初始连接数

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -157,7 +157,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
             throw new CustomException("用户信息获取有误!");
         }
         UserProfile profile = getOne(new LambdaQueryWrapper<UserProfile>()
-                .eq(UserProfile::getUserId, bo.getUserId())
+                .eq(UserProfile::getUserId, user.getUserId())
                 .eq(UserProfile::getGoodsId, bo.getGoodsId())
                 .eq(UserProfile::getTypeStatus, 1)
                 .eq(UserProfile::getCurrentStatus, 1)