huminmin
9 小时以前 fbdbdedf6112fde484b6c96e92b47ccc2f051d2b
src/main/java/com/ruoyi/quality/service/impl/QualityInspectServiceImpl.java
@@ -124,7 +124,9 @@
            if (productQtyRate.compareTo(productProcess.getQualifiedRate()) < 0) {
                // 查询生产订单
                ProductionProductMain productionProductMain = productionProductMainMapper.selectById(qualityInspect.getProductMainId());
                if (!ObjectUtils.isNull(productionProductMain)) {
                ProductWorkOrder productWorkOrder = productWorkOrderMapper.selectById(productionProductMain.getWorkOrderId());
                    if (!ObjectUtils.isNull(productWorkOrder)) {
                ProductOrder productOrder = productOrderMapper.selectOne(new LambdaQueryWrapper<ProductOrder>().eq(ProductOrder::getId, productWorkOrder.getProductOrderId()));
                if (!ObjectUtils.isNull(productOrder)) {
                    // 发送通知给管理员
@@ -136,6 +138,9 @@
            }
        }
            }
        }
        /*判断不合格*/
        if (qualityInspect.getCheckResult().equals("不合格")) {