learshaw преди 5 месеца
родител
ревизия
c3a0ed1e4d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ems/ems-core/src/main/resources/mapper/ems/EmsObjAttrEnumMapper.xml

+ 1 - 1
ems/ems-core/src/main/resources/mapper/ems/EmsObjAttrEnumMapper.xml

@@ -22,6 +22,7 @@
         <where>
             <if test="modelCode != null  and modelCode != ''">and model_code = #{modelCode}</if>
             <if test="attrKey != null  and attrKey != ''">and attr_key = #{attrKey}</if>
+            <if test="attrValue != null  and attrValue != ''">and attr_value = #{attrValue}</if>
         </where>
     </select>
 
@@ -30,7 +31,6 @@
         <where>
             <if test="modelCode != null  and modelCode != ''">and model_code = #{modelCode}</if>
             <if test="attrKey != null  and attrKey != ''">and attr_key = #{attrKey}</if>
-            <if test="attrValue != null  and attrValue != ''">and attr_value = #{attrValue}</if>
         </where>
     </select>