|
|
@ -455,6 +455,14 @@ public class MesReportWorkServiceImpl implements IMesReportWorkService {
|
|
|
|
if(sonMesReport == null){//单层工单的情况
|
|
|
|
if(sonMesReport == null){//单层工单的情况
|
|
|
|
sonMesReport = mesReportWorkMapper.getSumQuantityOne(quantityDto);
|
|
|
|
sonMesReport = mesReportWorkMapper.getSumQuantityOne(quantityDto);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//三层订单
|
|
|
|
|
|
|
|
QuantityDto threeMesReport =new QuantityDto();
|
|
|
|
|
|
|
|
if (sonMesReport != null ){
|
|
|
|
|
|
|
|
QuantityDto quantityDtothree = new QuantityDto();
|
|
|
|
|
|
|
|
quantityDtothree.setWorkorderCode(sonMesReport.getWorkorderCode());
|
|
|
|
|
|
|
|
quantityDtothree.setMachineCode(machineCode);
|
|
|
|
|
|
|
|
threeMesReport = mesReportWorkMapper.getSumQuantity(quantityDtothree);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 产量
|
|
|
|
// 产量
|
|
|
|
Long sumQua = 0L;
|
|
|
|
Long sumQua = 0L;
|
|
|
@ -469,6 +477,10 @@ public class MesReportWorkServiceImpl implements IMesReportWorkService {
|
|
|
|
realQua = parentMesReport.getQuantityFeedbackSum();
|
|
|
|
realQua = parentMesReport.getQuantityFeedbackSum();
|
|
|
|
workTime = sonMesReport.getWorkTime();
|
|
|
|
workTime = sonMesReport.getWorkTime();
|
|
|
|
useMan = sonMesReport.getUseMan().add(parentMesReport.getUseMan());
|
|
|
|
useMan = sonMesReport.getUseMan().add(parentMesReport.getUseMan());
|
|
|
|
|
|
|
|
// 若 threeMesReport 不为空,则叠加其 useMan 值
|
|
|
|
|
|
|
|
if (threeMesReport != null && threeMesReport.getUseMan() != null) {
|
|
|
|
|
|
|
|
useMan = useMan.add(threeMesReport.getUseMan());
|
|
|
|
|
|
|
|
}
|
|
|
|
dto.setQuantityAct(String.valueOf(sumQua));
|
|
|
|
dto.setQuantityAct(String.valueOf(sumQua));
|
|
|
|
dto.setQuantityFeedback(String.valueOf(realQua));
|
|
|
|
dto.setQuantityFeedback(String.valueOf(realQua));
|
|
|
|
dto.setWorkTime(workTime);
|
|
|
|
dto.setWorkTime(workTime);
|
|
|
|