dcs 5 months ago
parent
commit
1de0d8f060
1 changed files with 2 additions and 2 deletions
  1. 2 2
      virgo.api/src/main/resources/mapper/OperateDeviceModelMapper.xml

+ 2 - 2
virgo.api/src/main/resources/mapper/OperateDeviceModelMapper.xml

@@ -33,10 +33,10 @@
                 and name = #{name}
             </if>
             <if test="levelId != 0">
-                and levelId = #{levelId}
+                or levelId = #{levelId}
             </if>
             <if test="modelLevelId != 0">
-                and modelLevelId = #{modelLevelId}
+                or modelLevelId = #{modelLevelId}
             </if>
             <if test="type != 0">
                 and type = #{type}