From 5a0f1dfce0b77b4c202c63de6254effcfff13238 Mon Sep 17 00:00:00 2001 From: wangchao Date: Mon, 13 Apr 2020 14:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B6=E4=BF=A1=E6=81=AF=E6=AC=8A?= =?UTF-8?q?=E9=99=90=E6=9F=A5=E8=A9=A2sql=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0gridId=E6=A0=A1=E9=A9=97=EF=BC=8C=E7=86=B1?= =?UTF-8?q?=E5=BF=83=E5=B1=85=E6=B0=91=EF=BC=9A=E7=B6=B2=E6=A0=BC=E7=B4=9A?= =?UTF-8?q?=E5=88=A5=EF=BC=8C=E6=B3=A8=E5=86=8A=E5=B1=85=E6=B0=91=E8=88=87?= =?UTF-8?q?=E9=BB=A8=E5=93=A1=EF=BC=9A=E5=AE=A2=E6=88=B6=E7=B4=9A=E5=88=A5?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/UserRoleDao.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml index e33db2134f..c41c2685f2 100644 --- a/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml +++ b/epmet-user/epmet-user-server/src/main/resources/mapper/UserRoleDao.xml @@ -41,6 +41,14 @@ AND ur.CUSTOMER_ID = #{customerId} + + AND + ( ur.GRID_ID = #{gridId} OR ur.GRID_ID = 'all' ) + + + AND + ur.GRID_ID = 'all' +