AND (b.ticketno LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR c.supplier_name LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR d.supplier_nm LIKE CONCAT('%',#{poundlistPagination.keyword},'%'))
</if>
<iftest="poundlistPagination.startDate != null and poundlistPagination.endDate != null">
AND a.POUND_DATE > #{poundlistPagination.startDate} AND a.POUND_DATE<= #{poundlistPagination.endDate}
AND a.pound_date > #{poundlistPagination.startDate} AND a.pound_date<= #{poundlistPagination.endDate}
</if>
<iftest="poundlistPagination.poundlistNo != null and poundlistPagination.poundlistNo != ''">
AND a.POUNDLIST_NO LIKE CONCAT('%',#{poundlistPagination.poundlistNo},'%')
AND a.poundlist_no LIKE CONCAT('%',#{poundlistPagination.poundlistNo},'%')
</if>
<iftest="poundlistPagination.businessId != null and poundlistPagination.businessId != ''">
AND h.F_RealName LIKE CONCAT('%',#{poundlistPagination.businessId},'%')
@ -100,6 +100,12 @@ WHERE a.delete_mark = 0 and
<iftest="poundlistPagination.isExpense != null and poundlistPagination.isExpense != ''">
AND a.is_expense = #{poundlistPagination.isExpense}
</if>
<iftest="poundlistPagination.purchaseStatus != null and poundlistPagination.purchaseStatus != ''">
AND a.purchase_status = #{poundlistPagination.purchaseStatus}
</if>
<iftest="poundlistPagination.salesStatus != null and poundlistPagination.salesStatus != ''">
AND a.sales_status = #{poundlistPagination.salesStatus}
</if>
<iftest="poundlistPagination.materialName != null and poundlistPagination.materialName != ''">
AND e.item_name LIKE CONCAT('%',#{poundlistPagination.materialName},'%')