diff --git a/src/main/java/neatlogic/module/process/api/process/ProcessNotifyPolicyParamList.java b/src/main/java/neatlogic/module/process/api/process/ProcessNotifyPolicyParamList.java index 755b2818fb4f4bed515c7609763d1b7a39df8180..3433f94e1c099ab02a237a9a5fc0b698126c6057 100644 --- a/src/main/java/neatlogic/module/process/api/process/ProcessNotifyPolicyParamList.java +++ b/src/main/java/neatlogic/module/process/api/process/ProcessNotifyPolicyParamList.java @@ -4,10 +4,7 @@ import com.alibaba.fastjson.JSONObject; import neatlogic.framework.auth.core.AuthAction; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.dto.ConditionParamVo; -import neatlogic.framework.form.attribute.core.FormAttributeHandlerFactory; -import neatlogic.framework.form.attribute.core.IFormAttributeHandler; import neatlogic.framework.form.dao.mapper.FormMapper; -import neatlogic.framework.form.dto.FormAttributeVo; import neatlogic.framework.notify.core.INotifyPolicyHandler; import neatlogic.framework.notify.core.NotifyPolicyHandlerFactory; import neatlogic.framework.notify.exception.NotifyPolicyHandlerNotFoundException; @@ -15,7 +12,6 @@ import neatlogic.framework.process.auth.PROCESS; import neatlogic.framework.restful.annotation.*; import neatlogic.framework.restful.constvalue.OperationTypeEnum; import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -47,7 +43,7 @@ public class ProcessNotifyPolicyParamList extends PrivateApiComponentBase { @Input({ @Param(name = "notifyPolicyHandler", type = ApiParamType.STRING, isRequired = true, desc = "通知策略处理器"), - @Param(name = "formUuid", type = ApiParamType.STRING, desc = "流程绑定表单的uuid") +// @Param(name = "formUuid", type = ApiParamType.STRING, desc = "流程绑定表单的uuid") }) @Output({ @Param(name = "tbodyList", explode = ConditionParamVo[].class, desc = "流程通知策略参数列表") @@ -64,28 +60,28 @@ public class ProcessNotifyPolicyParamList extends PrivateApiComponentBase { systemParamList.sort((e1, e2) -> e1.getName().compareToIgnoreCase(e2.getName())); List paramList = new ArrayList<>(systemParamList); // 表单条件 - String formUuid = jsonObj.getString("formUuid"); - if (StringUtils.isNotBlank(formUuid)) { - List formAttrList = formMapper.getFormAttributeList(new FormAttributeVo(formUuid)); - for (FormAttributeVo formAttributeVo : formAttrList) { - IFormAttributeHandler formHandler = FormAttributeHandlerFactory.getHandler(formAttributeVo.getHandler()); - if (formHandler == null) { - continue; - } - if (formHandler.isConditionable()) { - ConditionParamVo conditionParamVo = new ConditionParamVo(); - conditionParamVo.setName(formAttributeVo.getUuid()); - conditionParamVo.setLabel(formAttributeVo.getLabel()); - if (formHandler.getParamType() != null) { - conditionParamVo.setParamType(formHandler.getParamType().getName()); - conditionParamVo.setParamTypeName(formHandler.getParamType().getText()); - } - conditionParamVo.setIsEditable(0); - conditionParamVo.setType("form"); - paramList.add(conditionParamVo); - } - } - } +// String formUuid = jsonObj.getString("formUuid"); +// if (StringUtils.isNotBlank(formUuid)) { +// List formAttrList = formMapper.getFormAttributeList(new FormAttributeVo(formUuid)); +// for (FormAttributeVo formAttributeVo : formAttrList) { +// IFormAttributeHandler formHandler = FormAttributeHandlerFactory.getHandler(formAttributeVo.getHandler()); +// if (formHandler == null) { +// continue; +// } +// if (formHandler.isConditionable()) { +// ConditionParamVo conditionParamVo = new ConditionParamVo(); +// conditionParamVo.setName(formAttributeVo.getUuid()); +// conditionParamVo.setLabel(formAttributeVo.getLabel()); +// if (formHandler.getParamType() != null) { +// conditionParamVo.setParamType(formHandler.getParamType().getName()); +// conditionParamVo.setParamTypeName(formHandler.getParamType().getText()); +// } +// conditionParamVo.setIsEditable(0); +// conditionParamVo.setType("form"); +// paramList.add(conditionParamVo); +// } +// } +// } JSONObject resultObj = new JSONObject(); resultObj.put("tbodyList", paramList); return resultObj;