Browse Source

解决admin岗位管理显示所有租户岗位

xuezizhuo 1 năm trước cách đây
mục cha
commit
7607322589

+ 3 - 0
zkqy-system/src/main/resources/mapper/system/SysPostMapper.xml

@@ -38,6 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="tenantId != null">
 				AND tenant_id = #{tenantId}
 			</if>
+			<if test="tenantId == null">
+				and tenant_id is null
+			</if>
 		</where>
 	</select>