|
|
|
@ -13,6 +13,8 @@ import com.jfinal.plugin.hikaricp.HikariCpPlugin;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.concurrent.*;
|
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
@ -329,7 +331,11 @@ public class YunXiao {
|
|
|
|
|
for (int m = 0; m < jsonArrSource.size(); m++) {
|
|
|
|
|
JSONObject jsonSource = jsonArrSource.getJSONObject(m);
|
|
|
|
|
|
|
|
|
|
LocalDate publishDate = LocalDate.parse(jsonSource.getString("publishTime"));
|
|
|
|
|
// 解析日期时间字符串
|
|
|
|
|
String publishTimeStr= jsonSource.getString("publishTime");
|
|
|
|
|
LocalDateTime dateTime = LocalDateTime.parse(publishTimeStr,
|
|
|
|
|
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
LocalDate date = dateTime.toLocalDate();
|
|
|
|
|
|
|
|
|
|
Record record = new Record()
|
|
|
|
|
.set("lesson_id", jsonSource.getString("lessonId"))
|
|
|
|
@ -343,7 +349,7 @@ public class YunXiao {
|
|
|
|
|
.set("scheme_id", editionName)
|
|
|
|
|
.set("subject_id", subjectCode)
|
|
|
|
|
.set("grade_code", jsonSource.getString("gradeCode"))
|
|
|
|
|
.set("publish_time", publishDate)
|
|
|
|
|
.set("publish_time", date)
|
|
|
|
|
.set("stage_id", key)
|
|
|
|
|
//增加学习次数
|
|
|
|
|
.set("preview_count", jsonSource.getIntValue("previewCount"))
|
|
|
|
|