|
|
@@ -22,13 +22,18 @@ import com.fs.course.vo.FsCourseWatchLogStatisticsListVO;
|
|
|
import com.fs.qw.param.QwWatchLogStatisticsListParam;
|
|
|
import com.fs.qw.service.IQwWatchLogService;
|
|
|
import com.fs.qw.vo.QwWatchLogAllStatisticsListVO;
|
|
|
+import com.fs.sop.domain.QwSop;
|
|
|
+import com.fs.sop.service.IQwSopService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 短链课程看课记录Controller
|
|
|
@@ -48,6 +53,9 @@ public class QwFsCourseWatchLogController extends BaseController
|
|
|
|
|
|
@Autowired
|
|
|
private IQwWatchLogService qwWatchLogService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IQwSopService qwSopService;
|
|
|
/**
|
|
|
* 查询短链课程看课记录列表
|
|
|
*/
|
|
|
@@ -217,4 +225,19 @@ public class QwFsCourseWatchLogController extends BaseController
|
|
|
List<FsCourseOverVO> list = fsCourseWatchLogService.selectFsCourseWatchLogOverStatisticsListVO(param);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询档期列表
|
|
|
+ */
|
|
|
+ @GetMapping("/fetchScheduleList")
|
|
|
+ public R fetchScheduleList(String sopName) {
|
|
|
+ List<QwSop> list = qwSopService.fetchScheduleList(sopName);
|
|
|
+ List<Map<String, Object>> result = list.stream().map(sop -> {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("qwSopId", sop.getId()); // 重命名id为qwSopId
|
|
|
+ map.put("qwSopName", sop.getName());
|
|
|
+ return map;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ return R.ok().put("rows", result);
|
|
|
+ }
|
|
|
}
|