| | |
| | | <result column="complete_quantity" property="completeQuantity" /> |
| | | <result column="start_time" property="startTime" /> |
| | | <result column="end_time" property="endTime" /> |
| | | <result column="sale_ledger_product_id" property="saleLedgerProductId" /> |
| | | <result column="sales_ledger_product_id" property="salesLedgerProductId" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="dept_id" property="deptId" /> |
| | | <result column="plan_complete_time" property="planCompleteTime" /> |
| | |
| | | po.complete_quantity, |
| | | po.start_time, |
| | | po.end_time, |
| | | po.sale_ledger_product_id, |
| | | po.sales_ledger_product_id, |
| | | po.create_user, |
| | | po.dept_id, |
| | | po.plan_complete_time, |
| | |
| | | sl.customer_name as customerName, |
| | | p.product_name as productName, |
| | | pm.model as model, |
| | | tr.process_route_code as processRouteCode |
| | | tr.process_route_code as processRouteCode, |
| | | tb.bom_no as bomNo |
| | | </sql> |
| | | |
| | | <sql id="ProductionOrderVoFrom"> |
| | |
| | | left join product_model pm on po.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | left join technology_routing tr on po.technology_routing_id = tr.id |
| | | left join technology_bom tb on tb.id = tr.bom_id |
| | | </sql> |
| | | |
| | | <sql id="ProductionOrderWhere"> |
| | |
| | | <if test="c.technologyRoutingId != null"> |
| | | and po.technology_routing_id = #{c.technologyRoutingId} |
| | | </if> |
| | | <if test="c.saleLedgerProductId != null"> |
| | | and po.sale_ledger_product_id = #{c.saleLedgerProductId} |
| | | <if test="c.salesLedgerProductId != null"> |
| | | and po.sales_ledger_product_id = #{c.salesLedgerProductId} |
| | | </if> |
| | | <if test="c.status != null"> |
| | | and po.status = #{c.status} |