|
|
@@ -22,6 +22,7 @@ import com.fs.qw.vo.QwWatchLogAllStatisticsListVO;
|
|
|
import com.fs.qw.vo.QwWatchLogStatisticsListVO;
|
|
|
import com.fs.sop.mapper.SopUserLogsMapper;
|
|
|
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.*;
|
|
|
|
|
|
@@ -46,6 +47,9 @@ public class FsQwCourseWatchLogController extends BaseController
|
|
|
private SopUserLogsMapper sopUserLogsMapper;
|
|
|
@Autowired
|
|
|
private IQwWatchLogService qwWatchLogService;
|
|
|
+
|
|
|
+ @Value("${cloud_host.company_name}")
|
|
|
+ private String signProjectName;
|
|
|
/**
|
|
|
* 查询短链课程看课记录列表
|
|
|
*/
|
|
|
@@ -99,25 +103,34 @@ public class FsQwCourseWatchLogController extends BaseController
|
|
|
}
|
|
|
|
|
|
@GetMapping("/qwWatchLogStatisticsList")
|
|
|
- public TableDataInfo qwWatchLogStatisticsList(QwWatchLogStatisticsListParam param)
|
|
|
- {
|
|
|
+ public TableDataInfo qwWatchLogStatisticsList(QwWatchLogStatisticsListParam param) {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
- if (param.getSTime()==null||param.getETime()==null){
|
|
|
+ param.setCompanyId(loginUser.getCompany().getCompanyId());
|
|
|
+ if (param.getSTime() == null || param.getETime() == null) {
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- return qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
+ //济南联志健康 数据排除转接用户
|
|
|
+ if ("济南联志健康".equals(signProjectName)) {
|
|
|
+ return qwWatchLogService.selectQwWatchLogStatisticsListVOExcludeTransfer(param);
|
|
|
+ } else {
|
|
|
+ return qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
@GetMapping("/myQwWatchLogStatisticsList")
|
|
|
- public TableDataInfo myQwWatchLogStatisticsList(QwWatchLogStatisticsListParam param)
|
|
|
- {
|
|
|
+ public TableDataInfo myQwWatchLogStatisticsList(QwWatchLogStatisticsListParam param) {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
+ param.setCompanyId(loginUser.getCompany().getCompanyId());
|
|
|
param.setCompanyUserId(loginUser.getUser().getUserId());
|
|
|
- if (param.getSTime()==null||param.getETime()==null){
|
|
|
+ if (param.getSTime() == null || param.getETime() == null) {
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- return qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
+ //济南联志健康 数据排除转接用户
|
|
|
+ if ("济南联志健康".equals(signProjectName)) {
|
|
|
+ return qwWatchLogService.selectQwWatchLogStatisticsListVOExcludeTransfer(param);
|
|
|
+ } else {
|
|
|
+ return qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|