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

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

@@ -1065,6 +1065,8 @@
         RC.MATERIAL_NAME "text",
         RC.MATERIAL_NAME "text",
         'materialName' "prop"
         'materialName' "prop"
         from RMS_MATERIAL RC
         from RMS_MATERIAL RC
+        left join rms_material_map t
+        on t.prod_code_l = b.material_code
         <where>
         <where>
             DELETED = 0
             DELETED = 0
             <if test="index!=null and index!=''">
             <if test="index!=null and index!=''">
@@ -1080,6 +1082,10 @@
             <if test="materialId!=null and materialId!=''">
             <if test="materialId!=null and materialId!=''">
                 AND RC.MATERIAL_ID = #{materialId}
                 AND RC.MATERIAL_ID = #{materialId}
             </if>
             </if>
+            <if test="prodCode!=null and prodCode!=''">
+                AND ( REGEXP_LIKE(t.prod_code, #{prodCode})
+                OR REGEXP_LIKE(RC.MATERIAL_CODE, #{prodCode}) )
+            </if>
         </where>
         </where>
         FETCH NEXT 10 ROWS ONLY
         FETCH NEXT 10 ROWS ONLY
         )
         )