|
|
|
@ -85,9 +85,14 @@ |
|
|
|
<if test="orderRef1 != '' and orderRef1 != null "> |
|
|
|
and order_ref1 = #{orderRef1} |
|
|
|
</if> |
|
|
|
<if test="orderRef2 != '' and orderRef2 != null "> |
|
|
|
<choose> |
|
|
|
<when test="orderRef2 != '' and orderRef2 != null and partNo != '' and partNo != null"> |
|
|
|
and order_ref2 in (#{orderRef2}, #{partNo}) |
|
|
|
</when> |
|
|
|
<when test="orderRef2 != '' and orderRef2 != null"> |
|
|
|
and order_ref2 = #{orderRef2} |
|
|
|
</if> |
|
|
|
</when> |
|
|
|
</choose> |
|
|
|
<if test="orderRef3 != '' and orderRef3 != null "> |
|
|
|
and order_ref3 = #{orderRef3} |
|
|
|
</if> |
|
|
|
|