| | |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and FIND_IN_SET(fc.technology_number , #{technologyNumber}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <!-- 当 landingSequence != 1 且 flashback != 1 时,按 landing_sequence 倒序 --> |
| | |
| | | from sd.order_detail as od |
| | | left join flow_card as fc on od.order_id = fc.order_id and od.order_number = fc.order_number |
| | | where fc.process_id = #{processId} |
| | | and POSITION(fc.technology_number in #{technologyNumber}) |
| | | and FIND_IN_SET(fc.technology_number , #{technologyNumber}) |
| | | GROUP BY other_columns |
| | | order by IF(fc.sort != NULL or fc.sort != '', fc.sort, fc.order_number) |
| | | </select> |
| | |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and FIND_IN_SET(fc.technology_number , #{technologyNumber}) |
| | | group by fc.process_id, fc.order_number, fc.technology_number |
| | | <choose> |
| | | <when test="landingSequence != 1 and flashback != 1"> |
| | |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | and position(fc.technology_number in #{compound}) |
| | | and |
| | | FIND_IN_SET(fc.technology_number , #{compound}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <when test="landingSequence != 1 and flashback != 1"> |
| | |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | and position(fc.technology_number in #{compound}) |
| | | and FIND_IN_SET(fc.technology_number , #{compound}) |
| | | group by fc.process_id, fc.order_number |
| | | <choose> |
| | | <when test="landingSequence != 1 and flashback != 1"> |