瀏覽代碼

埋点完善

honorfire 7 月之前
父節點
當前提交
bf0e8e7b62

+ 2 - 0
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/controller/CourseStudentBurialpointController.java

@@ -92,6 +92,8 @@ public class CourseStudentBurialpointController {
         //进度不能覆盖,查询该学生该课程上一次的学习进度,如果本次进度不大于最高的进度,就只存最高的进度
         param.put("userId", userId);
         param.put("hourId", courseStudentBurialpoint.getHourId());
+        param.put("funcType", courseStudentBurialpoint.getFuncType());
+        param.put("type", courseStudentBurialpoint.getType());
         List<CourseStudentBurialpoint> alreadyList= courseStudentBurialpointService.wrapperList(param);
         List<String> alreadyProgressList=CollStreamUtil.toList(alreadyList, CourseStudentBurialpoint::getProgress);
         //将String转为Long

+ 2 - 0
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/param/coursestudentprogress/CourseStudentProgressAddParam.java

@@ -56,10 +56,12 @@ public class CourseStudentProgressAddParam {
 
     /** 功能类型 */
     @ApiModelProperty(value = "功能类型", position = 5)
+    @NotBlank(message = "功能类型不能为空")
     private String funcType;
 
     /** 功能用途 */
     @ApiModelProperty(value = "功能用途", position = 5)
+    @NotBlank(message = "功能用途不能为空")
     private String type;
 
     /** 本次停留时间 */