diff --git a/src/main/java/com/budwk/app/flow/controller/FlowCategoryController.java b/src/main/java/com/budwk/app/flow/controller/FlowCategoryController.java index f5b948f3..af64b942 100644 --- a/src/main/java/com/budwk/app/flow/controller/FlowCategoryController.java +++ b/src/main/java/com/budwk/app/flow/controller/FlowCategoryController.java @@ -8,6 +8,7 @@ import com.budwk.app.base.param.PageForm; import com.budwk.app.base.result.Result; import com.budwk.app.flow.entity.ProcessCategory; import com.budwk.app.flow.entity.ProcessDefine; +import com.budwk.app.flow.entity.ProcessDesign; import com.budwk.app.flow.service.ProcessDefineService; import com.budwk.app.zhgh.club.model.SysClubRule; import io.swagger.annotations.Api; @@ -75,7 +76,7 @@ public class FlowCategoryController { @SaCheckPermission("flow.category") @SLog(tag = "流程管理-流程分类", msg = "删除流程分类") public Result delete(String id) { - int count = dao.count(ProcessDefine.class, Cnd.where(ProcessDefine::getCategory, "=", id)); + int count = dao.count(ProcessDesign.class, Cnd.where(ProcessDesign::getCategory, "=", id)); if(count > 0) { return Result.error("此分类已关联%s个流程,无法删除".formatted(count)); }