Redeem 2 лет назад
Родитель
Сommit
b2f26a0759
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

+ 3 - 0
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -661,6 +661,9 @@
             <if test="index!=null and index!=''">
             <if test="index!=null and index!=''">
                 AND REGEXP_LIKE(RC.MATERIAL_NAME, #{index})
                 AND REGEXP_LIKE(RC.MATERIAL_NAME, #{index})
             </if>
             </if>
+            <if test="materialId!=null and materialId!=''">
+                AND RC.MATERIAL_ID = #{materialId}
+            </if>
         </where>
         </where>
         FETCH NEXT 10 ROWS ONLY
         FETCH NEXT 10 ROWS ONLY
         )
         )