| | |
| | | </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 最早的一条记录 --> |
| | |
| | | <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> |