|
@@ -148,10 +148,26 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public List<QwWatchLogStatisticsListVO> selectQwWatchLogStatisticsListVOExport(FsCourseWatchLogListParam param) {
|
|
public List<QwWatchLogStatisticsListVO> selectQwWatchLogStatisticsListVOExport(FsCourseWatchLogListParam param) {
|
|
|
- CompanyDept companyDept = companyDeptMapper.selectCompanyDeptById(param.getDeptId());
|
|
|
|
|
- if (ObjectUtils.isNotEmpty(companyDept)&&companyDept.getParentId()==0L){
|
|
|
|
|
- param.setDeptId(null);
|
|
|
|
|
|
|
+ List<Long> deptIds = param.getDeptIds();
|
|
|
|
|
+ if (deptIds !=null && !deptIds.isEmpty()){
|
|
|
|
|
+ List<CompanyDept> companyDeptList = companyDeptMapper.selectCompanyDeptByIds(deptIds);
|
|
|
|
|
+ if (companyDeptList!=null && !companyDeptList.isEmpty()){
|
|
|
|
|
+ for (CompanyDept c : companyDeptList) {
|
|
|
|
|
+ if (c.getParentId() == 0L) {
|
|
|
|
|
+ param.setDeptId(null);
|
|
|
|
|
+ param.setDeptIds(null);
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ CompanyDept companyDept = companyDeptMapper.selectCompanyDeptById(param.getDeptId());
|
|
|
|
|
+ if (ObjectUtils.isNotEmpty(companyDept)&&companyDept.getParentId()==0L){
|
|
|
|
|
+ param.setDeptId(null);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (param.getCompanyUserId()!=null){
|
|
if (param.getCompanyUserId()!=null){
|
|
|
param.setIds(companyUserMapper.selectQwUserIdsByCompany(param.getCompanyUserId()));
|
|
param.setIds(companyUserMapper.selectQwUserIdsByCompany(param.getCompanyUserId()));
|
|
|
}
|
|
}
|
|
@@ -170,9 +186,23 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public TableDataInfo selectQwWatchLogStatisticsListVO(QwWatchLogStatisticsListParam param) {
|
|
public TableDataInfo selectQwWatchLogStatisticsListVO(QwWatchLogStatisticsListParam param) {
|
|
|
- CompanyDept companyDept = companyDeptMapper.selectCompanyDeptById(param.getDeptId());
|
|
|
|
|
- if (ObjectUtils.isNotEmpty(companyDept)&&companyDept.getParentId()==0L){
|
|
|
|
|
- param.setDeptId(null);
|
|
|
|
|
|
|
+ List<Long> deptIds = param.getDeptIds();
|
|
|
|
|
+ if (deptIds !=null && !deptIds.isEmpty()){
|
|
|
|
|
+ List<CompanyDept> companyDeptList = companyDeptMapper.selectCompanyDeptByIds(deptIds);
|
|
|
|
|
+ if (companyDeptList!=null && !companyDeptList.isEmpty()){
|
|
|
|
|
+ for (CompanyDept c : companyDeptList) {
|
|
|
|
|
+ if (c.getParentId() == 0L) {
|
|
|
|
|
+ param.setDeptId(null);
|
|
|
|
|
+ param.setDeptIds(null);
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ CompanyDept companyDept = companyDeptMapper.selectCompanyDeptById(param.getDeptId());
|
|
|
|
|
+ if (ObjectUtils.isNotEmpty(companyDept)&&companyDept.getParentId()==0L){
|
|
|
|
|
+ param.setDeptId(null);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
|
rspData.setCode(HttpStatus.SUCCESS);
|
|
rspData.setCode(HttpStatus.SUCCESS);
|