diff --git a/src/main/resources/mybatis/datasource/highriskwork/HotWorkApplicationMapper.xml b/src/main/resources/mybatis/datasource/highriskwork/HotWorkApplicationMapper.xml
index 1f51a337..7758c8da 100644
--- a/src/main/resources/mybatis/datasource/highriskwork/HotWorkApplicationMapper.xml
+++ b/src/main/resources/mybatis/datasource/highriskwork/HotWorkApplicationMapper.xml
@@ -231,7 +231,16 @@
and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu LEFT JOIN vi_user_all bhuuser ON bhuuser.USER_ID = hu.USER_ID where bhuuser.DEPARTMENT_ID in (${pd.supDeparIds}) or u.DEPARTMENT_ID in (${pd.supDeparIds}) )
- and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = #{pd.loginUserId}
+
+
+
+ and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = uu.DEPARTMENT_ID
+
+
+ and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = #{pd.loginUserId}
+
+
+
@@ -253,7 +262,16 @@
- and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = #{pd.myApprove}
+
+
+
+ and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = uu.DEPARTMENT_ID
+
+
+ and f.HOTWORKAPPLICATION_ID in (select hu.FOREIGN_KEY from bus_hotworkapplicationuser hu where hu.USER_ID = #{pd.loginUserId}
+
+
+
@@ -279,18 +297,6 @@
and (u.NAME LIKE CONCAT(CONCAT('%', #{pd.applicantName}),'%'))
-
-
-
-
-
-
-
-
-
-
-
-
and f.STATE = #{pd.keyState}
@@ -326,7 +332,7 @@
and (f.STATE != '11')
- ) or (uu.USER_ID is not null and f.ISDELETE = '0')
+ ) and (uu.USER_ID is not null and f.ISDELETE = '0')
and (f.STATE = #{pd.STATE})
@@ -335,7 +341,6 @@
group by f.HOTWORKAPPLICATION_ID
ORDER BY f.CREATTIME desc
-