|
|
|
|
@ -47,7 +47,7 @@ public class ReportPlanViewController {
|
|
|
|
|
if(planSummaryDOS.size()>0){
|
|
|
|
|
//按照工序枚举顺序排序
|
|
|
|
|
planSummaryDOS.sort(Comparator.comparing(book -> {
|
|
|
|
|
ProcessTypeEnum type = ProcessTypeEnum.valueOf(book.getOrgType());
|
|
|
|
|
ProcessTypeEnum type = ProcessTypeEnum.fromValue(book.getOrgType());
|
|
|
|
|
return type.ordinal();
|
|
|
|
|
}));
|
|
|
|
|
/****加上生产入库数量 todo
|
|
|
|
|
@ -55,7 +55,7 @@ public class ReportPlanViewController {
|
|
|
|
|
BigDecimal stockInNumber = stockInDetailService.selectSumBy(id);
|
|
|
|
|
respVO.setTotalQualityNumber(stockInNumber);
|
|
|
|
|
respVO.setTotalWasteNumber(BigDecimal.ZERO);
|
|
|
|
|
respVO.setOrgType("成品入库");
|
|
|
|
|
respVO.setOrgType("ruku");
|
|
|
|
|
planSummaryDOS.add(respVO);
|
|
|
|
|
}
|
|
|
|
|
return success(planSummaryDOS);
|
|
|
|
|
@ -75,7 +75,7 @@ public class ReportPlanViewController {
|
|
|
|
|
if(planSummaryDOS.size()>0){
|
|
|
|
|
//按照工序枚举顺序排序
|
|
|
|
|
planSummaryDOS.sort(Comparator.comparing(book -> {
|
|
|
|
|
ProcessTypeEnum type = ProcessTypeEnum.valueOf(book.getOrgType());
|
|
|
|
|
ProcessTypeEnum type = ProcessTypeEnum.fromValue(book.getOrgType());
|
|
|
|
|
return type.ordinal();
|
|
|
|
|
}));
|
|
|
|
|
/****加上生产入库数量 todo
|
|
|
|
|
@ -83,7 +83,7 @@ public class ReportPlanViewController {
|
|
|
|
|
BigDecimal stockInNumber = stockInDetailService.selectSumByTaskDetailId(id);
|
|
|
|
|
respVO.setTotalQualityNumber(stockInNumber);
|
|
|
|
|
respVO.setTotalWasteNumber(BigDecimal.ZERO);
|
|
|
|
|
respVO.setOrgType("成品入库");
|
|
|
|
|
respVO.setOrgType("ruku");
|
|
|
|
|
planSummaryDOS.add(respVO);
|
|
|
|
|
}
|
|
|
|
|
return success(planSummaryDOS);
|
|
|
|
|
|