|
@@ -1335,6 +1335,9 @@
|
|
|
<if test="prodCode != null and prodCode != ''">
|
|
<if test="prodCode != null and prodCode != ''">
|
|
|
and REGEXP_LIKE(t.prod_code, #{prodCode})
|
|
and REGEXP_LIKE(t.prod_code, #{prodCode})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="prodName != null and prodName != ''">
|
|
|
|
|
+ and REGEXP_LIKE(b.material_name, #{prodName})
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
union all
|
|
union all
|
|
|
select '' as "prodCodePk",
|
|
select '' as "prodCodePk",
|
|
@@ -1366,6 +1369,9 @@
|
|
|
<if test="prodCode != null and prodCode != ''">
|
|
<if test="prodCode != null and prodCode != ''">
|
|
|
and REGEXP_LIKE(b.material_code, #{prodCode})
|
|
and REGEXP_LIKE(b.material_code, #{prodCode})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="prodName != null and prodName != ''">
|
|
|
|
|
+ and REGEXP_LIKE(b.material_name, #{prodName})
|
|
|
|
|
+ </if>
|
|
|
<if test="materialId != null and materialId != ''">
|
|
<if test="materialId != null and materialId != ''">
|
|
|
and REGEXP_LIKE(b.material_id, #{materialId})
|
|
and REGEXP_LIKE(b.material_id, #{materialId})
|
|
|
</if>
|
|
</if>
|