| | |
| | | s.update_user, |
| | | s.tenant_id, |
| | | sl.sales_contract_no, |
| | | sl.master_contract_no, |
| | | s.outbound_batches, |
| | | pm.model as specification_model, |
| | | pm.unit, |
| | |
| | | WHERE 1=1 |
| | | <if test="req.salesContractNo != null and req.salesContractNo != ''"> |
| | | AND sl.sales_contract_no LIKE CONCAT('%',#{req.salesContractNo},'%') |
| | | </if> |
| | | <if test="req.masterContractNo != null and req.masterContractNo != ''"> |
| | | AND sl.master_contract_no LIKE CONCAT('%',#{req.masterContractNo},'%') |
| | | </if> |
| | | <if test="req.shippingCarNumber != null and req.shippingCarNumber != ''"> |
| | | AND s.shipping_car_number LIKE CONCAT('%',#{req.shippingCarNumber},'%') |
| | |
| | | si.id AS shippingId, |
| | | si.shipping_no AS shippingNo, |
| | | sl.sales_contract_no AS salesContractNo, |
| | | sl.master_contract_no AS masterContractNo, |
| | | sl.customer_name AS customerName, |
| | | IFNULL(p.product_name, slp.product_category) AS productName, |
| | | IFNULL(pm.model, slp.specification_model) AS model, |