| | |
| | | left join sd.order_detail as od on od.order_id = SUBSTRING(fc.process_id,1,10) and od.order_number = fc.order_sort |
| | | left join sd.`order` as o on o.order_id = SUBSTRING(fc.process_id,1,10) |
| | | left join pp.`flow_card` as fcd on fcd.process_id=fc.process_id and fcd.technology_number=ogd.technology_number and fcd.order_number=od.order_number |
| | | where fc.project_no = #{printProject} |
| | | where fc.project_no = #{printProject} and fc.process_id is not null and fc.process_id!="" |
| | | GROUP BY fc.process_id, ogd.technology_number |
| | | order by fc.process_id, ogd.technology_number |
| | | </select> |
| | |
| | | <select id="getOrderIdByProcessId"> |
| | | select order_id from pp.flow_card where process_id = #{processId} limit 1; |
| | | </select> |
| | | |
| | | <select id="flowCardDetailMergeMp"> |
| | | select merge from pp.flow_card where process_id = #{processId} group by id ORDER BY merge desc LIMIT 1 |
| | | </select> |
| | | |
| | | <update id="updateFlowCardIsMerge"> |
| | | update pp.flow_card fc set fc.merge=0 |
| | | where fc.process_id = #{processId} |
| | | </update> |
| | | </mapper> |