From 0be06cc80d5a649aaa0e43890a96415b7fea4cca Mon Sep 17 00:00:00 2001 From: HAHA Date: Wed, 11 May 2022 10:15:02 +0800 Subject: [PATCH] =?UTF-8?q?message:=20=E4=BF=AE=E6=94=B9=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E7=9A=84sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/poweraxis/PowerAxisStructDao.xml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml index a3e9c5e..7dc6687 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml @@ -151,13 +151,13 @@ SELECT count(*) FROM - pli_power_service_station + pli_power_service_station h + LEFT JOIN pli_power_axis_struct s ON h.STRUCT_REFERENCE_ID = s.ID + AND s.DEL_FLAG = '0' WHERE - del_flag = '0' - AND - AGENCY_ID = #{customerId} - AND - CUSTOMER_ID = #{customerId} + h.del_flag = '0' + AND s.AGENCY_ID = #{agencyId} + AND h.CUSTOMER_ID = #{customerId}