按部门搜索展示部门所有数据
parent
b6688abcf3
commit
4cff68a7ab
|
@ -865,7 +865,19 @@ public class HiddenApiController extends BaseController {
|
||||||
}
|
}
|
||||||
pd.put("departmentIds",departmentIds);
|
pd.put("departmentIds",departmentIds);
|
||||||
}
|
}
|
||||||
// 增加隐患整改部门查询 结束
|
// 增加发现整改部门查询 开始
|
||||||
|
if(StringUtils.isNotBlank(pd.getString("creatorUserDept"))){
|
||||||
|
String url ="department_list.html?DEPARTMENT_ID=";
|
||||||
|
List<Department> departments = departmentService.listAllDepartment(pd.getString("creatorUserDept"), url);
|
||||||
|
List<String> departmentIds = new ArrayList<>();
|
||||||
|
departmentIds.add(pd.getString("creatorUserDept"));
|
||||||
|
for(Department department:departments){
|
||||||
|
departmentIds.add(department.getDEPARTMENT_ID());
|
||||||
|
}
|
||||||
|
pd.put("creatorUserDepts",departmentIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 增加隐患发现部门查询 结束
|
||||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
if (!Jurisdiction.getIS_MAIN().equals("1")) { //主账号
|
if (!Jurisdiction.getIS_MAIN().equals("1")) { //主账号
|
||||||
pd.put("queryUserId", Jurisdiction.getUSER_ID());
|
pd.put("queryUserId", Jurisdiction.getUSER_ID());
|
||||||
|
|
|
@ -408,7 +408,11 @@
|
||||||
<if test="pd.creatorUserDept != null and pd.creatorUserDept != ''"><!-- 隐患发现人 部门-->
|
<if test="pd.creatorUserDept != null and pd.creatorUserDept != ''"><!-- 隐患发现人 部门-->
|
||||||
and f.HIDDEN_ID in (select hfu.HIDDEN_ID from BUS_HIDDEN_USER
|
and f.HIDDEN_ID in (select hfu.HIDDEN_ID from BUS_HIDDEN_USER
|
||||||
hfu LEFT JOIN sys_user user on user.USER_ID = hfu.USER_ID
|
hfu LEFT JOIN sys_user user on user.USER_ID = hfu.USER_ID
|
||||||
where user.DEPARTMENT_ID = #{pd.creatorUserDept} )
|
where user.DEPARTMENT_ID in
|
||||||
|
<foreach item="item" index="index" collection="pd.creatorUserDepts" open="(" separator="," close=")">
|
||||||
|
#{pd.creatorUserDepts[${index}]}
|
||||||
|
</foreach>
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.creatorName != null and pd.creatorName != ''"><!-- 隐患发现人 -->
|
<if test="pd.creatorName != null and pd.creatorName != ''"><!-- 隐患发现人 -->
|
||||||
and f.HIDDEN_ID in (select hfu.HIDDEN_ID from BUS_HIDDEN_USER hfu LEFT JOIN sys_user user on user.USER_ID = hfu.USER_ID
|
and f.HIDDEN_ID in (select hfu.HIDDEN_ID from BUS_HIDDEN_USER hfu LEFT JOIN sys_user user on user.USER_ID = hfu.USER_ID
|
||||||
|
|
Loading…
Reference in New Issue