Pārlūkot izejas kodu

修复基地地块树形数据查询错误的bug

liuyaowen 10 mēneši atpakaļ
vecāks
revīzija
cc484eac85

+ 1 - 1
src/main/resources/mapper/FmsBlockMapper.xml

@@ -52,7 +52,7 @@
             <if test="blockLngrange != null  and blockLngrange != ''"> and blockLngrange = #{blockLngrange}</if>
             <if test="blockColor != null  and blockColor != ''"> and blockColor = #{blockColor}</if>
             <if test="blockRemark != null  and blockRemark != ''"> and blockRemark = #{blockRemark}</if>
-            <if test="dataFilter == true and blockIds !=null and blockIds.size()>0">
+            <if test="blockIds !=null and blockIds.size()>0">
                 and b.blockId in
                 <foreach collection="blockIds" item="blockId" index="index" open="(" close=")" separator=",">
                     #{blockId}

+ 1 - 1
src/main/resources/mapper/FmsLandMapper.xml

@@ -48,7 +48,7 @@
             <if test="landTel != null  and landTel != ''">and landTel = #{landTel}</if>
             <if test="landLocation != null  and landLocation != ''">and landLocation = #{landLocation}</if>
             <if test="landRemark != null  and landRemark != ''">and landRemark = #{landRemark}</if>
-            <if test="dataFilter == true and landIds !=null and landIds.size()>0">
+            <if test="landIds !=null and landIds.size()>0">
                 and l.landId in
                 <foreach collection="landIds" item="landId" index="index" open="(" close=")" separator=",">
                     #{landId}