|
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import java.io.File;
|
|
|
import java.net.URL;
|
|
|
import java.util.*;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@RequestMapping("task")
|
|
@@ -471,7 +472,12 @@ public class TaskController extends BaseController {
|
|
|
@ApiOperation("每天10点推送排课、续费提醒")
|
|
|
@GetMapping(value = "/musicSchoolTermPush")
|
|
|
public void musicSchoolTermPush() {
|
|
|
- musicGroupSchoolTermCourseDetailService.musicSchoolTermPush();
|
|
|
+// Boolean success = redisCache.getRedisTemplate().opsForValue().setIfAbsent("musicSchoolTermPush","musicSchoolTermPush",
|
|
|
+// 23,
|
|
|
+// TimeUnit.HOURS);
|
|
|
+// if(success){
|
|
|
+ musicGroupSchoolTermCourseDetailService.musicSchoolTermPush();
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
@ApiOperation("会员到期后清空会员信息")
|