Преглед изворни кода

2023-3-1 修改楼栋楼层小程序调用的时候,传入的是parent_id参数。

chaiyunlong пре 2 година
родитељ
комит
d54d71e934

+ 1 - 1
zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabBuildFloorMapper.xml

@@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <where>
                 (s.admin_id = #{adminId} or find_in_set(#{adminId}, s.safe_user_id))
                 <if test="id != null "> and t.id = #{id}</if>
-                <if test="parentId != null "> and t.id = #{parentId}</if>
+                <if test="parentId != null "> and t.parent_id = #{parentId}</if>
                 <if test="type != null "> and t.`type` = #{type}</if>
             </where>
         </if>