| | |
| | | SELECT TOP 1 * |
| | | FROM om_production_order_info |
| | | WHERE body_status IN (0,1) |
| | | AND body_qty != plan_qty |
| | | ORDER BY plan_start_time ASC |
| | | </select> |
| | | <select id="updateBodyStatus1" resultType="OmProductionOrderInfo"> |
| | |
| | | SELECT TOP 1 * |
| | | FROM om_production_order_info |
| | | WHERE head_status IN (0,1) |
| | | AND head_qty != plan_qty |
| | | ORDER BY plan_start_time ASC |
| | | </select> |
| | | <select id="updateHeadStatus1" resultType="OmProductionOrderInfo"> |
| | |
| | | SELECT TOP 1 * |
| | | FROM om_production_order_info |
| | | WHERE pre_status IN (0,1) |
| | | AND pre_qty != plan_qty |
| | | ORDER BY plan_start_time ASC |
| | | </select> |
| | | <select id="updatePreStatus1" resultType="OmProductionOrderInfo"> |