|
@@ -7,15 +7,12 @@ import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.domain.model.LoginUser;
|
|
import com.fs.common.core.domain.model.LoginUser;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
import com.fs.course.config.CourseConfig;
|
|
import com.fs.course.config.CourseConfig;
|
|
|
-import com.fs.course.domain.FsUserCoursePeriod;
|
|
|
|
|
import com.fs.course.mapper.FsUserCourseMapper;
|
|
import com.fs.course.mapper.FsUserCourseMapper;
|
|
|
import com.fs.course.mapper.FsUserCourseVideoMapper;
|
|
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.vo.FsCourseRedPacketLogListPVO;
|
|
import com.fs.course.vo.FsCourseRedPacketLogListPVO;
|
|
|
import com.fs.course.vo.FsCourseRedPacketLogListVO;
|
|
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.vo.OptionsVO;
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
@@ -30,7 +27,6 @@ import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.course.domain.FsCourseRedPacketLog;
|
|
import com.fs.course.domain.FsCourseRedPacketLog;
|
|
|
import com.fs.course.service.IFsCourseRedPacketLogService;
|
|
import com.fs.course.service.IFsCourseRedPacketLogService;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
-import com.fs.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
|
import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
|
|
|
|
@@ -47,8 +43,6 @@ public class FsCourseRedPacketLogController extends BaseController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsCourseRedPacketLogService fsCourseRedPacketLogService;
|
|
private IFsCourseRedPacketLogService fsCourseRedPacketLogService;
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private IFsUserCoursePeriodService fsUserCoursePeriodService;
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
FsUserCourseMapper fsUserCourseMapper;
|
|
FsUserCourseMapper fsUserCourseMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -111,14 +105,20 @@ public class FsCourseRedPacketLogController extends BaseController
|
|
|
if (fsCourseRedPacketLog.getPhoneMk()!=null&&fsCourseRedPacketLog.getPhoneMk()!=""){
|
|
if (fsCourseRedPacketLog.getPhoneMk()!=null&&fsCourseRedPacketLog.getPhoneMk()!=""){
|
|
|
fsCourseRedPacketLog.setPhone(encryptPhone(fsCourseRedPacketLog.getPhoneMk()));
|
|
fsCourseRedPacketLog.setPhone(encryptPhone(fsCourseRedPacketLog.getPhoneMk()));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 先查询符合条件的总数量
|
|
|
|
|
+ long totalCount = fsCourseRedPacketLogService.selectFsCourseRedPacketLogListVOCount(fsCourseRedPacketLog);
|
|
|
|
|
+
|
|
|
|
|
+ // 设置最大导出数量限制
|
|
|
|
|
+ int maxExportCount = 10000;
|
|
|
|
|
+ if (totalCount > maxExportCount) {
|
|
|
|
|
+ return AjaxResult.error("导出数据量过大,当前共有 " + totalCount + " 条记录,超过最大限制 " + maxExportCount + " 条。请缩小查询范围后重试。");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
List<FsCourseRedPacketLogListPVO> list = fsCourseRedPacketLogService.selectFsCourseRedPacketLogListVO(fsCourseRedPacketLog);
|
|
List<FsCourseRedPacketLogListPVO> list = fsCourseRedPacketLogService.selectFsCourseRedPacketLogListVO(fsCourseRedPacketLog);
|
|
|
-// for (FsCourseRedPacketLogListPVO fsCourseRedPacketLogListPVO : list) {
|
|
|
|
|
-// if (ObjectUtil.isNotEmpty(fsCourseRedPacketLogListPVO.getPeriodId())){
|
|
|
|
|
-// FsUserCoursePeriod fsUserCoursePeriod = fsUserCoursePeriodService.selectFsUserCoursePeriodById(fsCourseRedPacketLogListPVO.getPeriodId().longValue());
|
|
|
|
|
-// fsCourseRedPacketLogListPVO.setPeriodName(fsUserCoursePeriod.getPeriodName());
|
|
|
|
|
-// }
|
|
|
|
|
-// fsCourseRedPacketLogListPVO.setPhone(PhoneUtil.decryptAutoPhoneMk(fsCourseRedPacketLogListPVO.getPhone()));
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 手机号解密已在 Service 层批量处理
|
|
|
|
|
+
|
|
|
ExcelUtil<FsCourseRedPacketLogListPVO> util = new ExcelUtil<FsCourseRedPacketLogListPVO>(FsCourseRedPacketLogListPVO.class);
|
|
ExcelUtil<FsCourseRedPacketLogListPVO> util = new ExcelUtil<FsCourseRedPacketLogListPVO>(FsCourseRedPacketLogListPVO.class);
|
|
|
return util.exportExcel(list, "短链课程看课记录数据");
|
|
return util.exportExcel(list, "短链课程看课记录数据");
|
|
|
}
|
|
}
|