功能优化
This commit is contained in:
parent
52b43766aa
commit
1f98abc54a
|
|
@ -315,4 +315,11 @@ public interface SelectMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<TreeNode> getDeviceTypeTreeThree(SelectDto dto);
|
List<TreeNode> getDeviceTypeTreeThree(SelectDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据部门id查询所有工程信息
|
||||||
|
* @param departId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<String> getAllProjectList(String departId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ public class ProAuthorizeServiceImpl implements ProAuthorizeService {
|
||||||
String departId = selectMapper.getDepartId(username);
|
String departId = selectMapper.getDepartId(username);
|
||||||
// 根据项目部id查询工程信息
|
// 根据项目部id查询工程信息
|
||||||
if (StringUtils.isNotBlank(departId)) {
|
if (StringUtils.isNotBlank(departId)) {
|
||||||
List<String> projectIdList = selectMapper.getProjectId(departId);
|
List<String> projectIdList = selectMapper.getAllProjectList(departId);
|
||||||
if (!CollectionUtils.isEmpty(projectIdList)) {
|
if (!CollectionUtils.isEmpty(projectIdList)) {
|
||||||
leaseApplyInfo.setProjectIdList(projectIdList);
|
leaseApplyInfo.setProjectIdList(projectIdList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -605,7 +605,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
FROM
|
FROM
|
||||||
`data_center`.dx_fb_son
|
`data_center`.dx_fb_son
|
||||||
WHERE
|
WHERE
|
||||||
1 = 1
|
project_status = '在建'
|
||||||
<if test="departId != null and departId != ''">
|
<if test="departId != null and departId != ''">
|
||||||
AND project_dept_id = #{departId}
|
AND project_dept_id = #{departId}
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -1004,4 +1004,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE level BETWEEN 1 AND 3
|
WHERE level BETWEEN 1 AND 3
|
||||||
ORDER BY level, type_id
|
ORDER BY level, type_id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getAllProjectList" resultType="java.lang.String">
|
||||||
|
SELECT
|
||||||
|
id
|
||||||
|
FROM
|
||||||
|
`data_center`.dx_fb_son
|
||||||
|
WHERE
|
||||||
|
1 = 1
|
||||||
|
<if test="departId != null and departId != ''">
|
||||||
|
AND project_dept_id = #{departId}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue