LEFT JOIN jg_purchaseorder_item0 j on a.id = j.poundlist_id
LEFT JOIN jg_purchaseorder_item0 j on a.id = j.poundlist_id
LEFT JOIN jg_salesorder_item0 k on a.id = k.poundlist_id
LEFT JOIN jg_salesorder_item0 k on a.id = k.poundlist_id
where a.is_examine = '1' and a.delete_mark = 0 and b.delete_mark = 0 and c.delete_mark = 0 and d.delete_mark = 0 and e.delete_mark = 0 and f.delete_mark = 0 and g.delete_mark = 0
${ew.customSqlSegment} and a.is_examine = '1' and a.delete_mark = 0 and b.delete_mark = 0 and c.delete_mark = 0 and d.delete_mark = 0 and e.delete_mark = 0 and f.delete_mark = 0 and g.delete_mark = 0
<iftest="poundlistPagination.keyword != null and poundlistPagination.keyword != ''">
<iftest="poundlistPagination.keyword != null and poundlistPagination.keyword != ''">
AND (b.ticketno LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR c.supplier_name LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR d.supplier_nm LIKE CONCAT('%',#{poundlistPagination.keyword},'%'))
AND (b.ticketno LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR c.supplier_name LIKE CONCAT('%',#{poundlistPagination.keyword},'%') OR d.supplier_nm LIKE CONCAT('%',#{poundlistPagination.keyword},'%'))
</if>
</if>
@ -89,12 +89,12 @@ WHERE a.delete_mark = 0 and
AND a.is_pay = #{poundlistPagination.isPay}
AND a.is_pay = #{poundlistPagination.isPay}
</if>
</if>
/*modified by 巴卫*/
/*modified by 巴卫*/
<iftest="poundlistPagination.departmentId != null and poundlistPagination.departmentId != ''">
<!--<if test="poundlistPagination.departmentId != null and poundlistPagination.departmentId != ''">
AND a.department_id = #{poundlistPagination.departmentId}
AND a.department_id = #{poundlistPagination.departmentId}
</if>
</if>
<iftest="poundlistPagination.orgnizeId != null and poundlistPagination.orgnizeId != ''">
<iftest="poundlistPagination.orgnizeId != null and poundlistPagination.orgnizeId != ''">
AND a.orgnize_id = #{poundlistPagination.orgnizeId}
AND a.orgnize_id = #{poundlistPagination.orgnizeId}
</if>
</if>-->
<iftest="poundlistPagination.isCollection != null and poundlistPagination.isCollection != ''">
<iftest="poundlistPagination.isCollection != null and poundlistPagination.isCollection != ''">
AND a.is_collection = #{poundlistPagination.isCollection}
AND a.is_collection = #{poundlistPagination.isCollection}