| | |
| | | left join reporting_work_detail as rwd on rw.reporting_work_id = rwd.reporting_work_id and rwd.technology_number=fc.technology_number |
| | | where fc.process_id = #{processIdStr} |
| | | and fc.technology_number = #{technologyStr} |
| | | and if(#{reportType}=1,o.order_type!='样品订单',o.order_id!='') |
| | | GROUP BY fc.process_id |
| | | </select> |
| | | |
| | |
| | | |
| | | <!-- 查询流程卡工艺流程--> |
| | | <select id="SelectTechnologicalProcess"> |
| | | select ogd.process |
| | | from sd.order_glass_detail as ogd |
| | | where ogd.production_id = LEFT(#{processIdStr}, 11) |
| | | and ogd.technology_number=#{technologyStr} |
| | | limit 1 |
| | | select ifnull((select ogd.process |
| | | from sd.order_glass_detail as ogd |
| | | where ogd.production_id = LEFT(#{processIdStr}, 11) |
| | | and ogd.technology_number=#{technologyStr} |
| | | limit 1),'') as process |
| | | |
| | | </select> |
| | | |
| | |
| | | on patch.process_id = fc.process_id |
| | | and patch.order_sort = fc.order_number |
| | | and patch.technology_number = fc.technology_number |
| | | left join sd.`order` as o on o.order_id=od.order_id |
| | | |
| | | WHERE |
| | | fc.process_id = #{processIdStr} |
| | | AND fc.technology_number = #{technologyStr} |
| | | AND odpd.process = #{process} |
| | | and if(#{reportType}=1,o.order_type!='样品订单',o.order_id!='') |
| | | order by fc.order_number |
| | | </select> |
| | | |
| | |
| | | LEFT JOIN sd.order_glass_detail AS ogd |
| | | ON od.order_id = ogd.order_id |
| | | AND od.order_number = ogd.order_number |
| | | <if test="process == '夹胶'"> |
| | | <if test="process == '夹胶' or (process == '打胶和粘框' and previousProcess=='夹胶')"> |
| | | AND ogd.`group` = (select `group` |
| | | from sd.order_glass_detail |
| | | where order_id = ogd.order_id |
| | |
| | | |
| | | WHERE |
| | | fc.process_id = #{processIdStr} |
| | | <if test="process != '中空' and process != '夹胶' and process != '包装'"> |
| | | <if test="process != '中空' and process != '夹胶' and process != '包装' and process != '打胶和粘框' "> |
| | | AND fc.technology_number = #{technologyStr} |
| | | </if> |
| | | AND odpd.process = #{process} |
| | |
| | | select rw.reporting_work_id, |
| | | (rw.reporting_work_time) as reporting_work_time, |
| | | o.order_id, |
| | | rw.process_id, |
| | | CONCAT(rw.process_id,'/',GROUP_CONCAT(distinct rwd.technology_number SEPARATOR '')) as process_id, |
| | | o.project, |
| | | o.batch, |
| | | rw.this_process, |