From 633119aaf98d7e0165f91f905a9868039b6efc94 Mon Sep 17 00:00:00 2001 From: limingyu Date: Thu, 23 May 2024 16:11:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=81=AB=E4=BD=9C=E4=B8=9A=E5=BB=B6?= =?UTF-8?q?=E6=97=B6=E7=9B=91=E7=81=AB=E5=88=97=E8=A1=A8sql=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../highriskwork/HotWorkApplicationMapper.xml | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) 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 -