Explorar o código

增加租户标识

hym %!s(int64=4) %!d(string=hai) anos
pai
achega
f5adf83b06
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      user_center/src/main/resources/mapper/OrgMapper.xml

+ 3 - 3
user_center/src/main/resources/mapper/OrgMapper.xml

@@ -263,12 +263,12 @@
           select ID, TENANT_ID, PARENT_ORG_ID,ORG_NAME
            from uims_org
            <where>
-               status!=-1
+              and status!=-1
                <if test="tenantId!=null ">
-                   TENANT_ID=#{tenantId}
+                  and TENANT_ID=#{tenantId}
                </if>
                <if test="orgType=='company'">
-                   ORG_TYPE=#{orgType}
+                  and ORG_TYPE=#{orgType}
                </if>
            </where>