| | |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <!-- landingSequence != 1 时,优先按 landing_sequence 倒序 --> |
| | | <when test="landingSequence != 1"> |
| | | ORDER BY landing_sequence DESC |
| | | </when> |
| | | <!-- flashback = 1 时正序 --> |
| | | <when test="flashback == 1"> |
| | | ORDER BY |
| | |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | group by fc.process_id, fc.order_number, fc.technology_number |
| | | <choose> |
| | | <!-- landingSequence != 1 时,优先按 landing_sequence 倒序 --> |
| | | <when test="landingSequence != 1"> |
| | | ORDER BY landing_sequence DESC |
| | | </when> |
| | | <!-- flashback = 1 时正序 --> |
| | | <when test="flashback == 1"> |
| | | ORDER BY |
| | |
| | | where fc.process_id = #{processId} and fc.`merge`=1 |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <!-- landingSequence != 1 时,优先按 landing_sequence 倒序 --> |
| | | <when test="landingSequence != 1"> |
| | | ORDER BY landing_sequence DESC |
| | | </when> |
| | | <!-- flashback = 1 时正序 --> |
| | | <when test="flashback == 1"> |
| | | ORDER BY |
| | |
| | | and position(fc.technology_number in #{compound}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <!-- landingSequence != 1 时,优先按 landing_sequence 倒序 --> |
| | | <when test="landingSequence != 1"> |
| | | ORDER BY landing_sequence DESC |
| | | </when> |
| | | <!-- flashback = 1 时正序 --> |
| | | <when test="flashback == 1"> |
| | | ORDER BY |
| | |
| | | and position(fc.technology_number in #{compound}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <!-- landingSequence != 1 时,优先按 landing_sequence 倒序 --> |
| | | <when test="landingSequence != 1"> |
| | | ORDER BY landing_sequence DESC |
| | | </when> |
| | | <!-- flashback = 1 时正序 --> |
| | | <when test="flashback == 1"> |
| | | ORDER BY |