qinhouyu 1 год назад
Родитель
Сommit
9c2d375a34

+ 1 - 4
ruoyi-zdsz/src/main/resources/mapper/zdsz/zdsz/ZComprehensiveMapper.xml

@@ -45,11 +45,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="p.unitId != null  and p.unitId != ''">
                 and zc.unit_id = #{p.unitId}
             </if>
-            <if test="p.unitId != null  and p.unitId != ''">
-                and zc.unit_id = #{p.unitId}
-            </if>
             <if test="p.houseId != null  and p.houseId != ''">
-                and zc.house_id = #{houseId}
+                and zc.house_id = #{p.houseId}
             </if>
     </select>