<iftest="param.orderCode != null and param.orderCode != ''">and order_code like concat('%',#{param.orderCode },'%') </if>
<iftest="param.categoryName != null and param.categoryName != ''">and category_name like concat('%',#{param.categoryName },'%') </if>
<iftest="param.materialCode != null and param.materialCode != ''">and material_code like concat('%',#{param.materialCode },'%') </if>
<iftest="param.trayCode != null and param.trayCode != ''">and tray_code like concat('%',#{param.trayCode },'%') </if>
<iftest="param.trayName != null and param.trayName != ''">and tray_name like concat('%',#{param.trayName },'%') </if>
<iftest="param.brandName != null and param.brandName != ''">and brand_name like concat('%',#{param.brandName },'%') </if>
<iftest="param.orderCode != null and param.orderCode != ''">and order_code like concat(#{param.orderCode },'%') </if>
<iftest="param.categoryName != null and param.categoryName != ''">and category_name like concat(#{param.categoryName },'%') </if>
<iftest="param.materialCode != null and param.materialCode != ''">and material_code like concat(#{param.materialCode },'%') </if>
<iftest="param.trayCode != null and param.trayCode != ''">and tray_code like concat(#{param.trayCode },'%') </if>
<iftest="param.trayName != null and param.trayName != ''">and tray_name like concat(#{param.trayName },'%') </if>
<iftest="param.brandName != null and param.brandName != ''">and brand_name like concat(#{param.brandName },'%') </if>
<iftest="param.marketName != null and param.marketName != ''">and market_name like concat('%',#{param.marketName},'%') </if>
<iftest="param.materialName != null and param.materialName != ''">and material_name like concat('%',#{param.materialName},'%') </if>
<iftest="param.positionCode != null and param.positionCode != ''">and position_code like concat('%',#{param.positionCode},'%') </if>
<iftest="param.positionCode != null and param.positionCode != ''">and (position_code like concat('%',#{param.positionCode},'%') or grounding_position_code like concat('%',#{param.positionCode},'%')) </if>