|
@@ -13,6 +13,7 @@ import com.ozs.base.domain.vo.BaseExpertVo;
|
|
import com.ozs.base.mapper.BaseExpertMapper;
|
|
import com.ozs.base.mapper.BaseExpertMapper;
|
|
import com.ozs.base.service.BaseExpertService;
|
|
import com.ozs.base.service.BaseExpertService;
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
|
|
+import com.ozs.common.core.domain.entity.SysUser;
|
|
import com.ozs.common.core.domain.model.LoginUser;
|
|
import com.ozs.common.core.domain.model.LoginUser;
|
|
import com.ozs.common.enums.*;
|
|
import com.ozs.common.enums.*;
|
|
import com.ozs.common.utils.PageUtils;
|
|
import com.ozs.common.utils.PageUtils;
|
|
@@ -106,11 +107,9 @@ public class BaseExpertServiceImpl extends ServiceImpl<BaseExpertMapper, BaseExp
|
|
//PmDemandExpertRef项目专家关联表
|
|
//PmDemandExpertRef项目专家关联表
|
|
List<PmDemandExpertRef> list1 = expertRefMapper.selectList(new LambdaQueryWrapper<>());
|
|
List<PmDemandExpertRef> list1 = expertRefMapper.selectList(new LambdaQueryWrapper<>());
|
|
List<Long> collect = list1.stream().map(PmDemandExpertRef::getDemandId).collect(Collectors.toList());
|
|
List<Long> collect = list1.stream().map(PmDemandExpertRef::getDemandId).collect(Collectors.toList());
|
|
- if (loginUser.getUsername().equals("admin")) {
|
|
|
|
- dp.in(PmDemand::getDemandId, collect);
|
|
|
|
- } else {
|
|
|
|
- dp.in(PmDemand::getDemandId, collect);
|
|
|
|
- dp.eq(PmDemand::getPurchaseDeptId, loginUser.getDeptId());
|
|
|
|
|
|
+ if (!SysUser.isAdmin(loginUser.getUserId())) {
|
|
|
|
+ //指定部门--以及子单位的超额数据
|
|
|
|
+ dp.in(PmDemand::getDemandId, pmDemandService.isQueryZD(Math.toIntExact(loginUser.getDeptId())));
|
|
}
|
|
}
|
|
// 查询抽取过专家的项目列表
|
|
// 查询抽取过专家的项目列表
|
|
List<PmDemand> pmDemandList = pmDemandService.list(dp);
|
|
List<PmDemand> pmDemandList = pmDemandService.list(dp);
|