|
@@ -13,6 +13,7 @@ import com.fs.course.mapper.FsUserCourseVideoMapper;
|
|
|
import com.fs.course.param.FsCourseRedPacketLogParam;
|
|
import com.fs.course.param.FsCourseRedPacketLogParam;
|
|
|
import com.fs.course.service.IFsUserCoursePeriodService;
|
|
import com.fs.course.service.IFsUserCoursePeriodService;
|
|
|
import com.fs.course.vo.FsCourseRedPacketLogListPVO;
|
|
import com.fs.course.vo.FsCourseRedPacketLogListPVO;
|
|
|
|
|
+import com.fs.course.vo.FsCourseRedPacketLogListVO;
|
|
|
import com.fs.framework.web.service.TokenService;
|
|
import com.fs.framework.web.service.TokenService;
|
|
|
import com.fs.his.utils.PhoneUtil;
|
|
import com.fs.his.utils.PhoneUtil;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
import com.fs.his.vo.OptionsVO;
|
|
@@ -209,4 +210,37 @@ public class FsCourseRedPacketLogController extends BaseController
|
|
|
List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectFsUserCourseVodeAllList(id);
|
|
List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectFsUserCourseVodeAllList(id);
|
|
|
return R.ok().put("list", optionsVOS);
|
|
return R.ok().put("list", optionsVOS);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 红包消耗统计
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('course:courseRedPacketLog:countList')")
|
|
|
|
|
+ @PostMapping("/getRedPacketLogCount")
|
|
|
|
|
+ public R getRedPacketLogCount(@RequestBody FsCourseRedPacketLogParam fsCourseRedPacketLog){
|
|
|
|
|
+
|
|
|
|
|
+ PageHelper.startPage(fsCourseRedPacketLog.getPageNum(), fsCourseRedPacketLog.getPageSize());
|
|
|
|
|
+
|
|
|
|
|
+ List<FsCourseRedPacketLogListVO> list = fsCourseRedPacketLogService.selectFsCourseRedPacketLogListCountVO(fsCourseRedPacketLog);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return R.ok().put("data", new PageInfo<>(list));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出短链课程看课记录列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('course:courseRedPacketLog:countExport')")
|
|
|
|
|
+ @Log(title = "红包消耗统计导出", businessType = BusinessType.EXPORT)
|
|
|
|
|
+ @PostMapping("/countExport")
|
|
|
|
|
+ public AjaxResult countExport(@RequestBody FsCourseRedPacketLogParam fsCourseRedPacketLog)
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ List<FsCourseRedPacketLogListVO> list = fsCourseRedPacketLogService.selectFsCourseRedPacketLogListCountVO(fsCourseRedPacketLog);
|
|
|
|
|
+
|
|
|
|
|
+ ExcelUtil<FsCourseRedPacketLogListVO> util = new ExcelUtil<FsCourseRedPacketLogListVO>(FsCourseRedPacketLogListVO.class);
|
|
|
|
|
+ return util.exportExcel(list, "红包消耗统计导出");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|