liding
2026-04-15 a97eb69a7233fc36a794832210fb1b0de037f2bb
src/main/java/com/ruoyi/production/service/impl/ProductProcessServiceImpl.java
@@ -76,6 +76,16 @@
                if (ObjectUtils.isEmpty(productProcess.getName())) {
                    throw new RuntimeException("工序名称不能为空");
                }
                if (ObjectUtils.isEmpty(productProcess.getTypeText())) {
                    throw new RuntimeException("工序类型不能为空");
                }
                if (productProcess.getTypeText().equals("计时")) {
                    productProcess.setType(0L);
                } else if (productProcess.getTypeText().equals("计件")) {
                    productProcess.setType(1L);
                } else {
                    throw new RuntimeException("工序类型错误");
                }
            });
            this.saveOrUpdateBatch(productProcessList);
            return AjaxResult.success(true);