|
|
@@ -86,8 +86,8 @@ public class CaseServiceImpl extends ServiceImpl<ICaseMapper, CaseEntity> implem
|
|
|
deptIds.add(deptId);
|
|
|
}
|
|
|
if(param.getSearchType() == 1){ //下级共享给上级场景
|
|
|
- List<Integer> fusionIds = sceneDeptShareService.getFusionIdsListByDeptId(deptId);
|
|
|
- param.setFusionIds(fusionIds);
|
|
|
+ List<Integer> caseIds = sceneDeptShareService.getCaseIdsListByDeptId(deptId);
|
|
|
+ param.setCaseIds(caseIds);
|
|
|
}
|
|
|
if(param.getSearchType() == 2){ //当前组织及下级组织的数据
|
|
|
List<TmDepartment> sonByDeptId = tmDepartmentService.getSonByDeptId(deptId);
|
|
|
@@ -102,6 +102,9 @@ public class CaseServiceImpl extends ServiceImpl<ICaseMapper, CaseEntity> implem
|
|
|
if(!deptIds.isEmpty()){
|
|
|
wrapper.in(CaseEntity::getDeptId,deptIds);
|
|
|
}
|
|
|
+ if(param.getCaseIds().isEmpty()){
|
|
|
+ wrapper.in(CaseEntity::getCaseId,param.getCaseIds());
|
|
|
+ }
|
|
|
wrapper.eq(CaseEntity::getType,0);
|
|
|
wrapper.orderByDesc(CaseEntity::getCreateTime);
|
|
|
Page<CaseEntity> page = this.page( new Page<>(param.getPageNum(), param.getPageSize()), wrapper);
|