| | |
| | | <result column="qty_required" property="qtyRequired"/> |
| | | <result column="issued" property="issued"/> |
| | | <result column="source" property="source"/> |
| | | <result column="is_audit" property="isAudit"/> |
| | | <result column="promised_delivery_date" property="promisedDeliveryDate"/> |
| | | </resultMap> |
| | | |
| | |
| | | pm.model, |
| | | p.id as productId, |
| | | p.product_name AS productName, |
| | | pm.unit |
| | | pm.unit, |
| | | sl.sales_contract_no, |
| | | sl.customer_name, |
| | | sl.project_name |
| | | FROM production_plan pp |
| | | left join product_model pm on pp.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | left join sales_ledger sl on pp.sales_ledger_id = sl.id |
| | | <where> |
| | | <if test="c != null"> |
| | | <if test="c.id != null"> |