hdy
2025-03-29 1717a12c83db01e3b31ea9ed913e5bacaf9edbf3
billion-main/src/main/resources/mapper/om/OmProductionOrderInfoMapper.xml
@@ -33,7 +33,10 @@
    </resultMap>
    <sql id="selectOmProductionOrderInfoVo">
        select id,body_status,head_status,pre_status,body_qty,head_qty,pre_qty,work_order_no, sales_order_code, product_code, line_code, plan_qty, plan_start_time, plan_end_time, order_status, create_time, update_time, create_by, update_by, remarks, del_flag from om_production_order_info
        select id,body_status,head_status,pre_status,body_qty,head_qty,pre_qty,
               work_order_no, sales_order_code, product_code, line_code, plan_qty,
               plan_start_time, plan_end_time, order_status, create_time, update_time, create_by,
               update_by, remarks, del_flag,engine_type,engine_name,flag from om_production_order_info
    </sql>
    <!-- 查询 order_status 为 1 且 plan_start_time 最早的一条记录 -->
@@ -128,6 +131,7 @@
            <if test="salesOrderCode != null  and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if>
            <if test="productCode != null  and productCode != ''"> and product_code = #{productCode}</if>
            <if test="orderStatus != null  and orderStatus != ''"> and order_status = #{orderStatus}</if>
            <if test="engineName != null  and engineName != ''"> and engine_name = #{engineName}</if>
            and del_flag = 0
        </where>
    </select>