<iftest="makeStatus != null and makeStatus != ''"> and make_status = #{makeStatus}</if>
<iftest="makeStatus != null and makeStatus != ''"> and a.make_status = #{makeStatus}</if>
<iftest="eceiptStatus != null and eceiptStatus != ''"> and eceipt_status = #{eceiptStatus}</if>
<iftest="eceiptStatus != null and eceiptStatus != ''"> and a.eceipt_status = #{eceiptStatus}</if>
<iftest="qualityStatus != null and qualityStatus != ''"> and quality_status = #{qualityStatus}</if>
<iftest="qualityStatus != null and qualityStatus != ''"> and a.quality_status = #{qualityStatus}</if>
<iftest="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if>
<iftest="useStatus != null and useStatus != ''"> and a.use_status = #{useStatus}</if>
<iftest="makeNo != null and makeNo != ''"> and makeNo = #{makeNo}</if>
<iftest="makeNo != null and makeNo != ''"> and a.makeNo = #{makeNo}</if>
<iftest="saleNo != null and saleNo != ''"> and saleNo = #{saleNo}</if>
<iftest="saleNo != null and saleNo != ''"> and a.saleNo = #{saleNo}</if>
<iftest="Salesman != null and Salesman != ''"> and Salesman = #{Salesman}</if>
<iftest="Salesman != null and Salesman != ''"> and a.Salesman = #{Salesman}</if>
<iftest="customerId != null and customerId != ''"> and customerId = #{customerId}</if>
<iftest="customerId != null and customerId != ''"> and a.customerId = #{customerId}</if>
<iftest="customerName != null and customerName != ''"> and customerName like concat('%', #{customerName}, '%')</if>
<iftest="customerName != null and customerName != ''"> and a.customerName like concat('%', #{customerName}, '%')</if>
<iftest="customerOderCode != null and customerOderCode != ''"> and customerOderCode = #{customerOderCode}</if>
<iftest="customerOderCode != null and customerOderCode != ''"> and a.customerOderCode = #{customerOderCode}</if>
<iftest="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<iftest="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and a.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>