From 6d238d6cc1b484898510907fcbd359c45a3f4245 Mon Sep 17 00:00:00 2001
From: dearlin <1261008090@qq.com>
Date: Wed, 22 Nov 2023 16:56:33 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B?=
=?UTF-8?q?=E5=A4=84=E7=BD=9A=E7=AE=A1=E7=90=86=20=E9=87=8C=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E9=9A=90=E6=82=A3=E6=B2=A1=E6=9C=89=E5=8C=BA=E5=88=86?=
=?UTF-8?q?=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B=E9=A1=B9=E7=9B=AE=20?=
=?UTF-8?q?=E6=AF=8F=E4=B8=AA=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B=E7=82=B9?=
=?UTF-8?q?=E8=BF=9B=E5=8E=BB=E9=83=BD=E4=B8=80=E6=A0=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../datasource/keyProjects/KeyprojectPunishMapper.xml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml
index 31345755..86f09deb 100644
--- a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml
+++ b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml
@@ -168,11 +168,12 @@
u.UNITS_NAME,
p.NAME AS PERSON_NAME
from
- f
+ BUS_KEYPROJECTPUNISH f
+ LEFT JOIN `qa-gwj-prevention`.bus_keyprojectcheck k ON f.KEYPROJECTCHECK_ID = k.KEYPROJECTCHECK_ID
left join `qa-gwj-prevention`.vi_user_all cr on cr.USER_ID = f.CREATOR
left join `qa-gwj-regulatory`.sys_user cre on cre.USER_ID = f.CREATOR
left join `qa-gwj-regulatory`.BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
- left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.UNITS_ID = u.UNITS_ID
+ left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.OUTSOURCED_ID = k.OUTSOURCED_ID
left join `qa-gwj-regulatory`.BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
where f.ISDELETE = '0'
@@ -184,7 +185,7 @@
)
- and o.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
+ and k.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
and f.HANDLED = 0