| | |
| | | on e.process_id = c.process_id |
| | | and e.technology_number = c.technology_number |
| | | and e.order_number = c.order_number |
| | | where a.order_id = #{orderId} |
| | | where a.order_id = #{orderId} and d.create_order>0 |
| | | group by c.order_number, |
| | | c.technology_number, |
| | | c.process_id |
| | |
| | | and dd.available = 0 |
| | | and reviewed_state != 2 |
| | | and rw.this_process != dd.responsible_process |
| | | and o.create_order>0 |
| | | <if test="crossProcessBreakingDTO.code != null and crossProcessBreakingDTO.code != ''"> |
| | | and JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) regexp #{crossProcessBreakingDTO.code} |
| | | </if> |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | and odpd.process_id = fc.process_id |
| | | left join sd.`order` as o |
| | | on o.order_id = od.order_id |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpd.process = #{selectProcesses} |
| | | and o.create_time >= #{selectTime1} |
| | | AND o.create_time < #{selectTime2} |
| | |
| | | AND rw.reporting_work_time < #{selectTime2} |
| | | |
| | | AND dd.available = 0 |
| | | AND LENGTH( rw.process_id )= 14 |
| | | <if test="damageReportDTO.orderId != null and damageReportDTO.orderId != ''"> |
| | | and o.order_id regexp #{damageReportDTO.orderId} |
| | | </if> |
| | |
| | | rw.reporting_work_time >= #{selectTime1} |
| | | AND rw.reporting_work_time < #{selectTime2} |
| | | AND dd.available = 0 |
| | | AND LENGTH( rw.process_id )= 14 |
| | | <if test="damageReportDTO.orderId != null and damageReportDTO.orderId != ''"> |
| | | and o.order_id regexp #{damageReportDTO.orderId} |
| | | </if> |
| | |
| | | AND opd.technology_number = fc.technology_number |
| | | |
| | | WHERE DATE_FORMAT((o.create_time), '%Y-%m-%d') BETWEEN #{selectTime1} and #{selectTime2} |
| | | |
| | | and o.create_order>0 |
| | | GROUP BY o.order_id, |
| | | fc.order_number, |
| | | fc.technology_number |
| | |
| | | AND opd.order_number = fc.order_number |
| | | AND opd.technology_number = fc.technology_number |
| | | WHERE opd.reporting_work_num > 0 |
| | | and o.create_order>0 |
| | | and DATE_FORMAT((o.create_time), '%Y-%m-%d') BETWEEN #{selectTime1} and #{selectTime2} |
| | | AND position(#{selectProcesses} IN opd.process) |
| | | GROUP BY opd.process, o.order_id |
| | |
| | | and e.order_number=c.order_number |
| | | and e.technology_number = c.technology_number |
| | | left join sd.delivery_detail as dd on dd.order_id = a.order_id and dd.order_number = a.order_number |
| | | where a.order_id = #{orderId} |
| | | where a.order_id = #{orderId} and d.create_order>0 |
| | | group by c.order_number,c.technology_number |
| | | ORDER BY a.order_number |
| | | </select> |
| | |
| | | left join sd.delivery_detail as dd on dd.order_id = a.order_id and dd.order_number = a.order_number |
| | | where d.create_time >= #{selectTime1} |
| | | AND d.create_time < #{selectTime2} |
| | | and o.create_order>0 |
| | | and reportWorkQuantity is not null |
| | | GROUP BY a.order_id |
| | | ORDER BY a.order_id |
| | |
| | | AND rw.process_id = fc.process_id |
| | | WHERE o.create_time >= #{selectTime1} |
| | | AND o.create_time < #{selectTime2} |
| | | and o.create_order>0 |
| | | AND fc.create_time IS NOT NULL |
| | | GROUP BY o.order_id |
| | | </select> |
| | |
| | | WHERE date(rw.reporting_work_time) >= #{dates[0]} |
| | | and date(rw.reporting_work_time) <= #{dates[1]} |
| | | AND dd.available = 0 |
| | | AND LENGTH(rw.process_id) = 14 |
| | | GROUP BY dd.id |
| | | </select> |
| | | |
| | |
| | | AND rw.process_id = fc.process_id |
| | | WHERE date(o.create_time) >= #{dates[0]} |
| | | and date(o.create_time) <= #{dates[1]} |
| | | and o.create_order>0 |
| | | AND fc.create_time IS NOT NULL |
| | | GROUP BY o.order_id |
| | | </select> |
| | |
| | | and odpd.process_id = fc.process_id |
| | | left join sd.`order` as o |
| | | on o.order_id = od.order_id |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpd.process = #{process} |
| | | and date(o.create_time) >= #{date[0]} |
| | | and date(o.create_time) <= #{date[1]} |
| | |
| | | and c.technology_number = fc.technology_number |
| | | left join sd.`order` as o |
| | | on o.order_id = od.order_id |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{process} |
| | |
| | | where d.create_time |
| | | and date(o.create_time) >= #{dates[0]} |
| | | and date(o.create_time) <= #{dates[1]} |
| | | and d.create_order>0 |
| | | and reportWorkQuantity is not null |
| | | GROUP BY a.order_id |
| | | ORDER BY a.order_id |
| | |
| | | |
| | | WHERE date(o.create_time) >= #{dates[0]} |
| | | and date(o.create_time) <= #{dates[1]} |
| | | and o.create_order>0 |
| | | GROUP BY o.order_id, |
| | | fc.order_number, |
| | | fc.technology_number |
| | |
| | | WHERE opd.reporting_work_num > 0 |
| | | and date(o.create_time) >= #{date[0]} |
| | | and date(o.create_time) <= #{date[1]} |
| | | and o.create_order>0 |
| | | AND position(#{process} IN opd.process) |
| | | GROUP BY opd.process, o.order_id |
| | | </select> |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | GROUP BY a.process_id,a.teams_groups_name,a.next_process,b.order_number,b.technology_number |
| | | ) as rws on rws.process_id=fc.process_id and rws.order_number=fc.order_number |
| | | and rws.technology_number=fc.technology_number and rws.next_process=#{selectProcesses} |
| | | where LENGTH(fc.process_id) = 14 |
| | | where o.create_order>0 |
| | | and odpds.reporting_work_num_count + ifnull(c.patchNumSum, 0) - odpd.reporting_work_num_count - |
| | | odpd.broken_num != 0 |
| | | and odpd.process = #{selectProcesses} |
| | |
| | | where processes = #{processes} |
| | | GROUP BY order_id, order_number) as ps |
| | | left join sd.`order` as o on o.order_id = ps.order_id |
| | | where ps.processes = #{processes} |
| | | where ps.processes = #{processes} and o.create_order>0 |
| | | and DATE_FORMAT((ps.scheduled_start_time), '%Y-%m-%d') between #{selectTime1} and #{selectTime2} |
| | | <if test="scheduleProductionScheduleDTO.orderId != null and scheduleProductionScheduleDTO.orderId != ''"> |
| | | and ps.order_id regexp #{scheduleProductionScheduleDTO.orderId} |
| | |
| | | where processes = #{processes} |
| | | GROUP BY order_id, order_number) as ps |
| | | left join sd.`order` as o on o.order_id = ps.order_id |
| | | where ps.processes = #{processes} |
| | | where ps.processes = #{processes} and o.create_order>0 |
| | | and DATE_FORMAT((ps.scheduled_start_time), '%Y-%m-%d') between #{selectTime1} and #{selectTime2} |
| | | <if test="scheduleProductionScheduleDTO.orderId != null and scheduleProductionScheduleDTO.orderId != ''"> |
| | | and ps.order_id regexp #{scheduleProductionScheduleDTO.orderId} |
| | |
| | | where processes = #{process} |
| | | GROUP BY order_id, order_number) as ps |
| | | left join sd.`order` as o on o.order_id = ps.order_id |
| | | where ps.processes = #{process} |
| | | where ps.processes = #{process} and o.create_order>0 |
| | | and date(scheduled_start_time) >= #{date[0]} |
| | | and date(scheduled_start_time) <= #{date[1]} |
| | | GROUP BY ps.order_id, ps.processes |