| | |
| | | <if test="host_id!=null and host_id!='' "> |
| | | and mo.host_id = #{host_id} |
| | | </if> |
| | | <if test="bill_no!=null and bill_no!='' "> |
| | | and mo.bill_no like '%' + #{bill_no} + '%' |
| | | <if test="order_no!=null and order_no!='' "> |
| | | and mo.order_no like '%' + #{order_no} + '%' |
| | | </if> |
| | | <if test="bill_type!=null and bill_type!='' "> |
| | | and bill_type like '%' + #{bill_type} + '%' |
| | | <if test="cstmr_name!=null and cstmr_name!='' "> |
| | | and mo.cstmr_name like '%' + #{cstmr_name} + '%' |
| | | </if> |
| | | <if test="mat_name!=null and mat_name!='' "> |
| | | and a.mat_name like '%' + #{mat_name} + '%' |
| | | <if test="doc_type!=null and doc_type!='' "> |
| | | and mo.doc_type like '%' + #{doc_type} + '%' |
| | | </if> |
| | | <if test="qty!=null and qty!='' "> |
| | | and a.qty = #{qty} |
| | | </if> |
| | | <if test="altme!=null and altme!='' "> |
| | | and a.unit like '%' + #{unit} + '%' |
| | | <if test="maktx!=null and maktx!='' "> |
| | | and mod.maktx like '%' + #{maktx} + '%' |
| | | </if> |
| | | <if test="startTime!=null and endTime!=null"> |
| | | and appe_time between #{startTime} and #{endTime} |
| | | and mo.create_time between #{startTime} and #{endTime} |
| | | </if> |
| | | </sql> |
| | | |