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 f94f3e6d4fafb093a83551ca1ff6cca5e2446a61..0000000000000000000000000000000000000000 --- 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); - } -}