|
|
@@ -512,7 +512,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
userPeriodQueryBo2.setGoodsId(bo.getGoodsId());
|
|
|
userPeriodQueryBo2.setUserId(bo.getUserId());
|
|
|
userPeriodQueryBo2.setChapterId(courseModuleChapterVo.getChapterId());
|
|
|
- userPeriodQueryBo2.setModuleId(0L);
|
|
|
+ userPeriodQueryBo2.setModuleId(courseMenuVo.getMenuId());
|
|
|
userPeriodQueryBo2.setGradeId(bo.getGradeId());
|
|
|
List<UserPeriodStatusVo> userPeriodStatusVos2 = userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo2);
|
|
|
if (!CollectionUtils.isEmpty(userPeriodStatusVos2)) {
|
|
|
@@ -523,7 +523,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
List<UserStudyRecordPhoto> videoPhoto2 = userStudyRecordPhotoService.list(lqw);
|
|
|
syncUserStudyRec.setCreateTime(DateUtils.timestampToDateFormat(userPeriodStatusVo.getRecordStartTime(),DateUtils.YYYY_MM_DD_HH_MM_SS));
|
|
|
syncUserStudyRec.setEndTime(DateUtils.timestampToDateFormat(userPeriodStatusVo.getRecordEndTime(),DateUtils.YYYY_MM_DD_HH_MM_SS));
|
|
|
- syncUserChapterItem.setStudyIP(userPeriodStatusVo.getIp());
|
|
|
+ syncUserStudyRec.setStudyIP(userPeriodStatusVo.getIp());
|
|
|
List<SyncUserImageRc> ImgList = new ArrayList<>();
|
|
|
for (UserStudyRecordPhoto videoPhoto : videoPhoto2) {
|
|
|
SyncUserImageRc imageRc = new SyncUserImageRc();
|
|
|
@@ -532,6 +532,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
imageRc.setMatchData(Validator.isNotEmpty(videoPhoto.getSimilarity())?videoPhoto.getSimilarity().toString():null);
|
|
|
ImgList.add(imageRc);
|
|
|
}
|
|
|
+ syncUserStudyRec.setImgList(ImgList);
|
|
|
}
|
|
|
RecList.add(syncUserStudyRec);
|
|
|
}
|
|
|
@@ -550,6 +551,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
params.put("stamp", nowTime.toString());
|
|
|
params.put("sign", sign);
|
|
|
params.put("jsonstr", JSONObject.toJSONString(studyRec));
|
|
|
+ System.out.println(params);
|
|
|
String respone = "";
|
|
|
try {
|
|
|
respone = HttpUtils.postFormBody(SYNC_PATH, params);
|