|
@@ -11,7 +11,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Sets;
|
|
|
-import com.microsvc.toolkit.common.spring.SpringContextHolder;
|
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
|
import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
import com.yonge.cooleshow.biz.dal.dao.*;
|
|
@@ -57,7 +56,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
-import java.text.MessageFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.time.Instant;
|
|
|
import java.time.LocalDate;
|
|
@@ -1957,13 +1955,12 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
* @Author: cy
|
|
|
* @Date: 2022/5/27
|
|
|
*/
|
|
|
- public void arrangeCourse(ArrangeCourseVo arrangeCourseVo, Long teacherId) {
|
|
|
+ public String arrangeCourse(ArrangeCourseVo arrangeCourseVo, Long teacherId) {
|
|
|
|
|
|
// 返回未加入群用户消息
|
|
|
- String message = DistributedLock.of(redissonClient)
|
|
|
+ return DistributedLock.of(redissonClient)
|
|
|
.runIfLockCanGet(CacheNameEnum.LOCK_EXECUTE_ORDER.getRedisKey("teacherId:" + teacherId)
|
|
|
- , () -> SpringContextHolder.getBean(CourseScheduleServiceImpl.class).checkArrangeCourse(arrangeCourseVo, teacherId),
|
|
|
- 60L, TimeUnit.SECONDS);
|
|
|
+ , () -> this.checkArrangeCourse(arrangeCourseVo, teacherId), 60L, TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
/**
|