From 5b26034134abfe09c369858cdb95ddbebc6651c7 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Thu, 13 Nov 2025 14:28:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1552833097203712]表单组件优化 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1552833097203712 --- .../handler/AutoexecServiceHandler.java | 114 ------------------ 1 file changed, 114 deletions(-) delete mode 100644 src/main/java/neatlogic/module/autoexec/formattribute/handler/AutoexecServiceHandler.java diff --git a/src/main/java/neatlogic/module/autoexec/formattribute/handler/AutoexecServiceHandler.java b/src/main/java/neatlogic/module/autoexec/formattribute/handler/AutoexecServiceHandler.java deleted file mode 100644 index f94f3e6d..00000000 --- a/src/main/java/neatlogic/module/autoexec/formattribute/handler/AutoexecServiceHandler.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * - * Copyright (C) 2025 TechSure Co., Ltd. All Rights Reserved. - * This file is part of the NeatLogic software. - * Licensed under the NeatLogic Sustainable Use License (NSUL), Version 4.x – 2025. - * You may use this file only in compliance with the License. - * See the LICENSE file distributed with this work for the full license text. - * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - */ - -package neatlogic.module.autoexec.formattribute.handler; - -import com.alibaba.fastjson.JSONObject; -import neatlogic.framework.autoexec.constvalue.AutoexecFormHandler; -import neatlogic.framework.common.constvalue.ParamType; -import neatlogic.framework.form.attribute.core.FormHandlerBase; -import neatlogic.framework.form.constvalue.FormConditionModel; -import neatlogic.framework.form.dto.AttributeDataVo; -import neatlogic.framework.form.exception.AttributeValidException; -import org.springframework.stereotype.Component; - -@Component -public class AutoexecServiceHandler extends FormHandlerBase { - @Override - protected JSONObject getMyDetailedData(AttributeDataVo attributeDataVo, JSONObject configObj) { - return null; - } - - @Override - public Object valueConversionText(AttributeDataVo attributeDataVo, JSONObject configObj) { - if (!attributeDataVo.dataIsEmpty()) { - return "已更新"; - } else { - return ""; - } - } - - @Override - public Object dataTransformationForEmail(AttributeDataVo attributeDataVo, JSONObject configObj) { - return null; - } - - @Override - public Object textConversionValue(Object text, JSONObject config) { - return null; - } - - @Override - public Object dataTransformationForExcel(AttributeDataVo attributeDataVo, JSONObject configObj) { - return null; - } - - @Override - public String getHandler() { - return AutoexecFormHandler.FORMRESOURECES.getHandler(); - } - - @Override - public String getHandlerName() { - return AutoexecFormHandler.FORMRESOURECES.getHandlerName(); - } - - @Override - public String getHandlerType(FormConditionModel model) { - return null; - } - - @Override - public ParamType getParamType() { - return null; - } - - @Override - public boolean isAudit() { - return true; - } - - @Override - public boolean isConditionable() { - return false; - } - - @Override - public boolean isProcessTaskBatchSubmissionTemplateParam() { - return false; - } - - @Override - public JSONObject valid(AttributeDataVo attributeDataVo, JSONObject configObj) throws AttributeValidException { - return null; - } - - @Override - public Object conversionDataType(Object source, String attributeLabel) { - if (source == null) { - return null; - } - if (source instanceof JSONObject) { - return source; - } else if (source instanceof String) { - String sourceStr = (String) source; - if (sourceStr.startsWith("{") && sourceStr.endsWith("}")) { - try { - return JSONObject.parseObject(sourceStr); - } catch (Exception e) { - throw new AttributeValidException(attributeLabel); - } - } - } - throw new AttributeValidException(attributeLabel); - } -} -- Gitee