Sfoglia il codice sorgente

Revert "fix"

This reverts commit fd908d19fc48bbe3faaea3472ff2469d88872bcb.
liujc 1 mese fa
parent
commit
b8461f0437

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

@@ -20,7 +20,6 @@ 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.*;
@@ -120,9 +119,6 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
     @Autowired
     private RedisCacheService redisCacheService;
 
-    @Autowired
-    private SysUserMapper sysUserMapper;
-
     @Override
     public CourseGroupDao getDao() {
         return this.baseMapper;
@@ -1070,7 +1066,7 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
 
     private SysUser getSysUser(Long userId) {
         return Optional.ofNullable(userId)
-                .map(sysUserMapper::getByUserId)
+                .map(sysUserFeignService::queryUserById)
                 .orElseThrow(() -> new BizException("用户不存在"));
     }