修改动火作业数据延时监火审核人显示
parent
e29300756e
commit
990ea8814d
|
@ -827,13 +827,18 @@ public class AppHotWorkApplicationController extends BaseController {
|
|||
return map;
|
||||
}
|
||||
} else {
|
||||
hotUserList = hotWorkApplicationUserService.listByDepartment(hotUserPd); // 找到这一笔的审批人们
|
||||
//先判断延时监火是否为选择部门
|
||||
hotUserList = hotWorkApplicationUserService.listByDepartment(hotUserPd); // 找到这一笔的审批人们(选择部门)
|
||||
if (hotUserList.size() < 1) {
|
||||
//如果查询部门查不到就根据人查询
|
||||
hotUserList = hotWorkApplicationUserService.listAll(hotUserPd); // 找到这一笔的审批人(选择人)
|
||||
if (hotUserList.size() != 1) {
|
||||
map.put("result", "error");
|
||||
map.put("msg", "获取审批人意见失败!请联系管理员");
|
||||
return map;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PageData hotUser = hotUserList.get(0);
|
||||
|
|
|
@ -134,21 +134,23 @@
|
|||
<select id="listAll" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
,dept.NAME as deptName
|
||||
,if(dept.NAME is null,dept1.NAME,dept.NAME) as deptName
|
||||
,u.NAME as userName
|
||||
,su.USERNAME as userName2
|
||||
, u.USERNAME as userPhone
|
||||
,dept.DEPARTMENT_ID DEPARTMENT_ID
|
||||
,if(dept.DEPARTMENT_ID is null,dept1.DEPARTMENT_ID,dept.DEPARTMENT_ID) as DEPARTMENT_ID
|
||||
,su.USER_TYPE USER_TYPE
|
||||
,reuser.NAME as REGULATORY_USER_NAME
|
||||
,redept.NAME as REGULATORY_DEPT_NAME
|
||||
,if(redept.NAME is null,redept1.NAME,redept.NAME) as REGULATORY_DEPT_NAME
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join SYS_USER u on u.USER_ID = f.USER_ID
|
||||
left join bus_specialuser su on su.SPECIALUSER_ID = f.USER_ID
|
||||
left join oa_department dept on dept.DEPARTMENT_ID = u.DEPARTMENT_ID
|
||||
left join oa_department dept1 on dept1.DEPARTMENT_ID = f.USER_ID
|
||||
left join `qa-gwj-regulatory`.SYS_USER reuser on reuser.USER_ID = f.USER_ID and reuser.USERNAME != 'admin'
|
||||
left join `qa-gwj-regulatory`.SYS_DEPARTMENT redept on redept.DEPARTMENT_ID = reuser.DEPARTMENT_ID
|
||||
left join `qa-gwj-regulatory`.SYS_DEPARTMENT redept1 on redept1.DEPARTMENT_ID = f.USER_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="hotIds != null and hotIds.size>0"> <!-- 关键词检索 -->
|
||||
and(f.FOREIGN_KEY in
|
||||
|
@ -216,7 +218,7 @@
|
|||
f.OPERATTIME,
|
||||
s.NAME,
|
||||
f.TYPE,
|
||||
u.NAME as USER_NAME,
|
||||
if(u.NAME is null,od.NAME,u.NAME) as USER_NAME,
|
||||
su.USERNAME as SPECIAL_USER_NAME,
|
||||
reuser.NAME as REGULATORY_USER_NAME
|
||||
FROM
|
||||
|
@ -225,6 +227,8 @@
|
|||
left join SYS_USER u on u.USER_ID = f.USER_ID
|
||||
left join bus_specialuser su on su.SPECIALUSER_ID = f.USER_ID
|
||||
left join `qa-gwj-regulatory`.SYS_USER reuser on reuser.USER_ID = f.USER_ID and reuser.USERNAME != 'admin'
|
||||
left join oa_department od on od.DEPARTMENT_ID = f.USER_ID
|
||||
left join `qa-gwj-regulatory`.SYS_DEPARTMENT rd on rd.DEPARTMENT_ID = f.USER_ID
|
||||
WHERE
|
||||
f.FOREIGN_KEY = #{FOREIGN_KEY}
|
||||
AND f.ISDELETE = '0'
|
||||
|
|
Loading…
Reference in New Issue