From 4c8f8659c0ee9cac3525b3bb607fec94b773ddcd Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 23 Aug 2024 12:17:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E4=BC=98=E5=8C=96-=E9=9B=86=E6=88=90?= =?UTF-8?q?=E4=B8=8E=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1229092697899008]通知策略优化-集成与发布 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1229092697899008 --- .../autoexec/constvalue/JobGroupSearch.java | 43 ++++++++++ .../autoexec/constvalue/JobUserType.java | 84 +++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 src/main/java/neatlogic/framework/autoexec/constvalue/JobGroupSearch.java create mode 100644 src/main/java/neatlogic/framework/autoexec/constvalue/JobUserType.java diff --git a/src/main/java/neatlogic/framework/autoexec/constvalue/JobGroupSearch.java b/src/main/java/neatlogic/framework/autoexec/constvalue/JobGroupSearch.java new file mode 100644 index 00000000..94ca21d2 --- /dev/null +++ b/src/main/java/neatlogic/framework/autoexec/constvalue/JobGroupSearch.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 深圳极向量科技有限公司 All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package neatlogic.framework.autoexec.constvalue; + +import neatlogic.framework.util.$; + +public enum JobGroupSearch { + JOBUSERTYPE("jobUserType", "作业干系人"); + private final String value; + private final String text; + + JobGroupSearch(String value, String text) { + this.value = value; + this.text = text; + } + + public String getValue() { + return value; + } + + public String getValuePlugin() { + return value + "#"; + } + + public String getText() { + return $.t(text); + } +} diff --git a/src/main/java/neatlogic/framework/autoexec/constvalue/JobUserType.java b/src/main/java/neatlogic/framework/autoexec/constvalue/JobUserType.java new file mode 100644 index 00000000..3de4da98 --- /dev/null +++ b/src/main/java/neatlogic/framework/autoexec/constvalue/JobUserType.java @@ -0,0 +1,84 @@ +/*Copyright (C) 2024 深圳极向量科技有限公司 All Rights Reserved. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see .*/ + +package neatlogic.framework.autoexec.constvalue; + +import neatlogic.framework.common.constvalue.IUserType; +import neatlogic.framework.dto.UserTypeVo; + +import java.util.HashMap; +import java.util.Map; + +public enum JobUserType implements IUserType { + EXEC_USER("execuser", "执行人", true); + + private final String status; + private final String text; + private final boolean isShow; + + JobUserType(String _status, String _text, boolean _isShow) { + this.status = _status; + this.text = _text; + this.isShow = _isShow; + } + + public String getValue() { + return status; + } + + public String getText() { + return text; + } + + public boolean getIsShow() { + return isShow; + } + + public static String getValue(String _status) { + for (JobUserType s : JobUserType.values()) { + if (s.getValue().equals(_status)) { + return s.getValue(); + } + } + return null; + } + + public static String getText(String _status) { + for (JobUserType s : JobUserType.values()) { + if (s.getValue().equals(_status)) { + return s.getText(); + } + } + return ""; + } + + + @Override + public UserTypeVo getUserType() { + UserTypeVo vo = new UserTypeVo(); + vo.setModuleId(getModuleId()); + Map map = new HashMap<>(); + for (JobUserType type : JobUserType.values()) { + map.put(type.getValue(), type.getText()); + } + vo.setValues(map); + return vo; + } + + @Override + public String getModuleId() { + return "autoexec"; + } +} -- Gitee