Commit 17dd553c by 涂亚平

没有看视频的人也要写登录登出数据

1 parent 2308be45
...@@ -140,7 +140,7 @@ public class RenSheJuJob { ...@@ -140,7 +140,7 @@ public class RenSheJuJob {
} }
@Scheduled(cron = "0 50 23 * * ?") @Scheduled(cron = "0 40 23 * * ?")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void cancelLogin() { public void cancelLogin() {
......
...@@ -41,7 +41,7 @@ public class WarningJob { ...@@ -41,7 +41,7 @@ public class WarningJob {
/** /**
* POST-2:班级基本信息信息采集接口 * POST-2:班级基本信息信息采集接口
*/ */
@Scheduled(cron = "0 0 21 * * ?") @Scheduled(cron = "0 0 23 * * ?")
public void classBaseInfo() throws IOException { public void classBaseInfo() throws IOException {
if ("prod".equals(env)) { if ("prod".equals(env)) {
......
...@@ -115,7 +115,7 @@ public class CourseContentServiceImpl extends ServiceImpl<CourseContentMapper, C ...@@ -115,7 +115,7 @@ public class CourseContentServiceImpl extends ServiceImpl<CourseContentMapper, C
String totalLengthTmp = MathUtil.secToTime(totalLength); String totalLengthTmp = MathUtil.secToTime(totalLength);
//总时长(分钟) //总时长(分钟)
String totalMinute = MathUtil.ceilSecond(totalLength); String totalMinute = MathUtil.floorSecond(totalLength);
exportClassContentVOS.stream().forEach(x -> { exportClassContentVOS.stream().forEach(x -> {
x.setTotalLength(totalLengthTmp); x.setTotalLength(totalLengthTmp);
x.setTotalMinute(totalMinute); x.setTotalMinute(totalMinute);
......
...@@ -189,8 +189,8 @@ public class RenSheJuServiceImpl implements RenSheJuService { ...@@ -189,8 +189,8 @@ public class RenSheJuServiceImpl implements RenSheJuService {
List<ChapterList3> chapterList3s = renSheJuMapper.dailyStudyRecords(dailyStudyInfoVO.getMemberId(), dailyStudyInfoVO.getDownCode(), loginRecords.get(i).getCreateDate().toString().replace("T", " "), loginOutRecords.get(i).getCreateDate().toString().replace("T", " ")); List<ChapterList3> chapterList3s = renSheJuMapper.dailyStudyRecords(dailyStudyInfoVO.getMemberId(), dailyStudyInfoVO.getDownCode(), loginRecords.get(i).getCreateDate().toString().replace("T", " "), loginOutRecords.get(i).getCreateDate().toString().replace("T", " "));
if (chapterList3s.size() > 0) { if (chapterList3s.size() > 0) {
loginList.setChapterList(chapterList3s); loginList.setChapterList(chapterList3s);
loginLists.add(loginList);
} }
loginLists.add(loginList);
} }
classHourBasic.setLoginList(loginLists); classHourBasic.setLoginList(loginLists);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!