liding
2026-04-24 4c8144cc2785cdb8c5529c6c59a8901a33ec06bb
src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -16,7 +16,7 @@
        <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" />
@@ -44,7 +44,7 @@
        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,
@@ -53,7 +53,8 @@
        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">
@@ -62,6 +63,7 @@
                 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">
@@ -79,8 +81,8 @@
                <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}