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);