|
@@ -40,7 +40,7 @@ public class ReportCheckServiceImpl implements ReportCheckService {
|
|
|
public static final String PENDING_PLAN_REVIEW = "待计划评审";
|
|
|
public static final String VERIFIED = "已检验";
|
|
|
public static final String COMPLETED = "已完工";
|
|
|
- public static final String REJECTS = "不良品备料";
|
|
|
+ public static final String REJECTS = "不良在制品";
|
|
|
public static final String SEMIFINISHED_PRODUCTS = "半成品备料";
|
|
|
public static final String WORK_IN_PROCESS = "在制品";
|
|
|
private final Logger log = LoggerFactory.getLogger(this.getClass().getName());
|
|
@@ -187,8 +187,11 @@ public class ReportCheckServiceImpl implements ReportCheckService {
|
|
|
/***********************更新 工序作业输出物料的 输出已检验卷数 输出不合格卷数 输出合格卷数****************************************/
|
|
|
Map<String, List<ApsReportOutputDo>> collect = reportOutputDos.stream().collect(Collectors.groupingBy(ApsReportOutputDo::getOutputid));
|
|
|
collect.forEach((k, v) -> {
|
|
|
+ // 不合格卷数
|
|
|
long unqualifiedQty = v.stream().filter(info -> NO.equals(info.getQualified())).count();
|
|
|
+ // 合格卷数
|
|
|
long passingQty = v.stream().filter(info -> YES.equals(info.getQualified())).count();
|
|
|
+ log.debug("更新输出物料ID:{},不合格卷数:{},合格卷数:{},已检验卷数:{}", k, unqualifiedQty, passingQty, v.size());
|
|
|
apsProcessOperationOutMaterDao.reportCheckUpdateAboutVolumesNum(k, unqualifiedQty, passingQty, v.size());
|
|
|
});
|
|
|
/*********************** 工序作业输出物料 更新结束****************************************/
|