|
@@ -89,6 +89,9 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
|
|
|
@Autowired
|
|
|
private IFinanceInvoiceService financeInvoiceService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private DepartmentMapper departmentMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 条件查询资产任务列表
|
|
|
*
|
|
@@ -100,9 +103,7 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
|
|
|
public Page<AssetsVO> selectPage(Page page, AssetsSelectDTO assetsSelectDTO) {
|
|
|
// 判断是否要根据部门id集合查询(部门待办查询)
|
|
|
if (ObjectUtil.isNotNull(assetsSelectDTO.getSelectByDepartment()) && assetsSelectDTO.getSelectByDepartment()){
|
|
|
- assetsSelectDTO.setDepartmentIdList(LoginContext.getLoginCacheUserBO().getDepartmentList().stream()
|
|
|
- .map(SimpleParentModel::getId)
|
|
|
- .collect(Collectors.toList()));
|
|
|
+ assetsSelectDTO.setDepartmentIdList(departmentMapper.getDepIdList(LoginContext.getLoginCacheUserBO().getDepartmentList().get(0).getId()));
|
|
|
}
|
|
|
// 此处判断handlerId是否为空只是为了确保前端查询条件有handlerId,并不直接信任
|
|
|
if (ObjectUtil.isNotNull(assetsSelectDTO) && ObjectUtil.isNotNull(assetsSelectDTO.getHandlerId())){
|