|
@@ -18,6 +18,7 @@ import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.mapper.SysUserMapper;
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseCoursewareService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.MusicSheetService;
|
|
|
+import com.yonge.cooleshow.biz.dal.service.SysUserService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.TenantAlbumMusicService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CourseCoursewareVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.MusicSheetDetailVo;
|
|
@@ -30,6 +31,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Collection;
|
|
|
import java.util.Date;
|
|
@@ -45,22 +47,22 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
|
private final static Logger log = LoggerFactory.getLogger(CourseCoursewareServiceImpl.class);
|
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private SysUserMapper userMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private MusicSheetService musicSheetService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private SysUserFeignService sysUserFeignService;
|
|
|
+ @Resource
|
|
|
+ private SysUserService sysUserService;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private MusicSheetAccompanimentDao musicSheetAccompanimentDao;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private TeacherDao teacherDao;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private TenantAlbumMusicService tenantAlbumMusicService;
|
|
|
|
|
|
@Override
|
|
@@ -207,11 +209,8 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
|
public CourseCourseware submit(CourseCourseware courseCourseware) {
|
|
|
|
|
|
// 判断用户
|
|
|
- com.yonge.cooleshow.auth.api.entity.SysUser user = sysUserFeignService.queryUserById(
|
|
|
+ com.yonge.cooleshow.auth.api.entity.SysUser user = sysUserService.getByUserId(
|
|
|
courseCourseware.getUserId());
|
|
|
- if (user == null) {
|
|
|
- throw new BizException("用户信息未找到");
|
|
|
- }
|
|
|
|
|
|
// 判断是否已经添加到附件
|
|
|
Integer count = this.lambdaQuery()
|