diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/common/mapper/SelectMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/common/mapper/SelectMapper.java index 088fa79a..b8867f54 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/common/mapper/SelectMapper.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/common/mapper/SelectMapper.java @@ -315,4 +315,11 @@ public interface SelectMapper { * @return */ List getDeviceTypeTreeThree(SelectDto dto); + + /** + * 根据部门id查询所有工程信息 + * @param departId + * @return + */ + List getAllProjectList(String departId); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/materialStation/service/impl/ProAuthorizeServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/materialStation/service/impl/ProAuthorizeServiceImpl.java index a4756d17..6daf508b 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/materialStation/service/impl/ProAuthorizeServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/materialStation/service/impl/ProAuthorizeServiceImpl.java @@ -72,7 +72,7 @@ public class ProAuthorizeServiceImpl implements ProAuthorizeService { String departId = selectMapper.getDepartId(username); // 根据项目部id查询工程信息 if (StringUtils.isNotBlank(departId)) { - List projectIdList = selectMapper.getProjectId(departId); + List projectIdList = selectMapper.getAllProjectList(departId); if (!CollectionUtils.isEmpty(projectIdList)) { leaseApplyInfo.setProjectIdList(projectIdList); } diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/common/SelectMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/common/SelectMapper.xml index 0ff4678f..a69b83ae 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/common/SelectMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/common/SelectMapper.xml @@ -605,7 +605,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM `data_center`.dx_fb_son WHERE - 1 = 1 + project_status = '在建' AND project_dept_id = #{departId} @@ -1004,4 +1004,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" WHERE level BETWEEN 1 AND 3 ORDER BY level, type_id + +