liujc 1 月之前
父節點
當前提交
fd908d19fc

+ 5 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseGroupServiceImpl.java

@@ -20,6 +20,7 @@ import com.yonge.cooleshow.biz.dal.dto.req.OrderReq;
 import com.yonge.cooleshow.biz.dal.dto.search.*;
 import com.yonge.cooleshow.biz.dal.entity.*;
 import com.yonge.cooleshow.biz.dal.enums.*;
+import com.yonge.cooleshow.biz.dal.mapper.SysUserMapper;
 import com.yonge.cooleshow.biz.dal.service.*;
 import com.yonge.cooleshow.biz.dal.support.WrapperUtil;
 import com.yonge.cooleshow.biz.dal.vo.*;
@@ -119,6 +120,9 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
     @Autowired
     private RedisCacheService redisCacheService;
 
+    @Autowired
+    private SysUserMapper sysUserMapper;
+
     @Override
     public CourseGroupDao getDao() {
         return this.baseMapper;
@@ -1066,7 +1070,7 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
 
     private SysUser getSysUser(Long userId) {
         return Optional.ofNullable(userId)
-                .map(sysUserFeignService::queryUserById)
+                .map(sysUserMapper::getByUserId)
                 .orElseThrow(() -> new BizException("用户不存在"));
     }