fix copy bug
This commit is contained in:
@@ -43,8 +43,8 @@ public class CopyLessonTask {
|
||||
@Scheduled(cron = "0 */1 * * * ?")
|
||||
public void execute(){
|
||||
logger.info("开始执行拷贝课程批处理");
|
||||
LocalTime time = LocalTime.now();
|
||||
LocalDate date = LocalDate.now();
|
||||
LocalTime time = LocalTime.parse("09:00");
|
||||
LocalDate date = LocalDate.parse("2022-02-21");
|
||||
logger.info(time.toString());
|
||||
logger.info(date.toString());
|
||||
int cWeek = date.getDayOfWeek().getValue();
|
||||
@@ -59,7 +59,7 @@ public class CopyLessonTask {
|
||||
LocalDate endDate = date.plusDays(-1);
|
||||
String startTime = dtf.format(startDate);
|
||||
String endTime = dtf.format(endDate);
|
||||
List<VenueLesson> allForCopy = venueLessonService.findAllForCopy(startTime, endTime);
|
||||
List<VenueLesson> allForCopy = venueLessonService.findAllForCopy(startTime, endTime,venue.getId());
|
||||
if (allForCopy!= null && allForCopy.size()>0){
|
||||
logger.info("需要操作的课程数为:" + allForCopy.size());
|
||||
Integer copyTarget = venue.getCopyTarget();
|
||||
|
||||
Reference in New Issue
Block a user