|
@@ -283,8 +283,13 @@ public class TaskController extends BaseController {
|
|
|
public void updateVipGroupToFinishedStatus() {
|
|
|
//更新vip课程状态
|
|
|
vipGroupService.updateVipGroupStatusToFinished();
|
|
|
- //更新直播课状态
|
|
|
- vipGroupService.createLiveCourse();
|
|
|
+ List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
|
+ if(tenantInfos != null && tenantInfos.size() > 0){
|
|
|
+ for (TenantInfo tenantInfo : tenantInfos) {
|
|
|
+ //更新直播课状态
|
|
|
+ vipGroupService.createLiveCourse();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@GetMapping("/stopVipGroupWithNoCreate")
|
|
@@ -298,7 +303,9 @@ public class TaskController extends BaseController {
|
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
|
+ TenantContextHolder.setTenantId(tenantInfo.getId());
|
|
|
teacherAttendanceService.pushNoSignOutMessage(tenantInfo.getId());
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
|
}
|
|
|
}
|
|
|
}
|