瀏覽代碼

删除无用代码

zhoutg 4 年之前
父節點
當前提交
6f7e4e6a26

+ 0 - 1
src/main/java/com/diagbot/util/CatalogueUtil.java

@@ -19,7 +19,6 @@ import java.util.regex.Pattern;
 @Getter
 @Setter
 public class CatalogueUtil {
-    public static Map<String, QCCatalogue> qcCatalogueMap = new HashMap<>();
     public static Map<Integer, String> intMapString =
             ImmutableMap.<Integer, String>builder().put(1, "一").put(2, "二").put(3, "三").put(4, "四").put(5, "五")
                     .put(6, "六").put(7, "七").put(8, "八").put(9, "九").put(0, "零").build();

+ 0 - 159
src/main/java/com/diagbot/util/Constants.java

@@ -1,159 +0,0 @@
-/**   
-* @Company: 杭州朗通信息技术有限公司 
-* @Department: 系统软件部 
-* @Description: 朗通智能辅助诊疗系统 
-* @Address: 浙江省杭州市西湖区西斗门路3号 天堂软件园D-7B 
-*/
-package com.diagbot.util;
-
-/**
-* @Title: Constants.java 
-* @Package org.diagbot.public 
-* @Description: 通用常数接口定义  
-* @author 楼辉荣(Fyeman)   
-* @date 2015年4月23日 下午11:25:37 
-* @version V1.0
- */
-public interface Constants {
-    /**
-     * 操作名称
-     */
-    String OP_NAME = "op";
-    /**
-     * 消息key
-     */
-    String MESSAGE = "message";
-    /**
-     * 错误key
-     */
-    String ERROR = "error";
-    /**
-     * 上个页面地址
-     */
-    String BACK_URL = "BackURL";
-    String IGNORE_BACK_URL = "ignoreBackURL";
-    /**
-     * 当前请求的地址 带参数
-     */
-    String CURRENT_URL = "currentURL";
-    /**
-     * 当前请求的地址 不带参数
-     */
-    String NO_QUERYSTRING_CURRENT_URL = "noQueryStringCurrentURL";
-    /**
-     * 上下文
-     */
-    String CONTEXT_PATH = "ctx";
-    /**
-     * 当前登录的用户
-     */
-    String CURRENT_APPLICATION = "c_app";
-    String CURRENT_USER = "c_user";
-    String CURRENT_USERNAME = "username";
-    String USER_MENUS = "menus";
-    
-    /**
-     * 管理控制台应用ID=0
-     */
-    long ADMIN_APPLICATION = 0;
-    /**
-     * 一级菜单grade标识
-     */
-    int FIRST_MENU = 1;
-    /**
-     * 二级菜单grade标识
-     */
-    int SECOND_MENU = 2;
-    /**
-     * 操作按钮等级标识
-     */
-    int MENU_GRADE = 3;
-    /**
-     * 最高级资源grade标识
-     */
-    int TOP_REC = 0;
-    /**
-     * 编码方式
-     */
-    String ENCODING = "UTF-8";
-    /**
-     * 系统用户状态--启用
-     */
-    int USER_STATUS_UNLOCK = 1;
-    /**
-     * 系统用户状态--禁用
-     */
-    int USER_STATUS_LOCK = 0;
-    /**
-     * 通用值0
-     */
-    int COMMON_INT_0 = 0;
-    /**
-     * 通用值1
-     */
-    int COMMON_INT_1 = 1;
-    /**
-     * 通用值-1
-     */
-    int COMMON_INT_NEG_1 = -1;
-    /**
-     * 通用值0
-     */
-    long COMMON_LONG_0 = 0L;
-    /**
-     * 通用值1
-     */
-    long COMMON_LONG_1 = 1L;
-    /**
-     * 通用值-1
-     */
-    long COMMON_LONG_NEG_1 = -1L;
-    /**
-     * 通用值"0"
-     */
-    String COMMON_STRING_0 = "0";
-    /**
-     * 通用值"1"
-     */
-    String COMMON_STRING_1 = "1";
-    /**
-     * 通用值"-1"
-     */
-    String COMMON_STRING_NEG_1 = "-1";
-    
-    /**
-     * 通用值"-1"
-     */
-    String COMMON_STRING_99 = "99";
-    /**
-     * 登录页面
-     */
-    String LOGIN_URL = "/login";
-    /**
-     * 上传文件夹
-     */
-    String UPLOAD_FOLDER_NAME = "upload";
-    /**
-     * 临时文件夹
-     */
-    String TEMP_FOLDER_NAME = "temp";
-    /**
-     * 地域标示
-     */
-    public static final String DEFAULT_LOCALE = "zh_CN";
-    /**
-     * 缺省字符集
-     */
-    public static final String DEFAULT_ENCODE = "UTF-8";
-    /**
-     * 以下为接口返回公共属性定义常量
-     */
-    public static final String MSG_SUCCESS = "操作成功";	//操作成功
-    public static final String MSG_FALURE = "操作失败";	//操作失败
-    
-    public static final long INVALIDATE_VALUE = -1;		//起止时间定义
-    public static final int RET_SUCCESS = 0; 			//成功
-	public static final int RET_FAIL = 1; 				//失败
-	public static final int RET_ERROR_PARAM = -1; 		//参数校验失败
-	public static final int RET_NO_TOKEN = -2; 	//用户token丢失
-}

+ 0 - 46
src/main/java/com/diagbot/util/GenericNode.java

@@ -1,46 +0,0 @@
-package com.diagbot.util;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-public class GenericNode<T> {
-
-    public List<Map<String, Object>> fillNodeTree(List<?> nodelist) {
-        List<Map<String, Object>> baseNodes = new ArrayList<>();
-        Map<String, Object> node;
-
-        for (Object nd : nodelist) {
-            node = BeanMapUtils.beanToMap(nd);
-
-            baseNodes.add(node);
-        }
-
-        return baseNodes;
-    }
-
-
-    public static List<Map<String, Object>> removeRelation(List<Map<String, Object>> nodes) {
-        List<String> rmkeys = new ArrayList<>();
-        try {
-            for (String key : nodes.get(0).keySet()) {
-                if (nodes.get(0).get(key) instanceof Set) {
-                    rmkeys.add(key);
-                }
-            }
-
-            for (Map<String, Object> node : nodes) {
-                for (String key : rmkeys) {
-                    node.remove(key);
-                }
-            }
-        }
-        catch (Exception ex) {
-            ex.printStackTrace();
-        }
-        finally {
-            return nodes;
-        }
-    }
-}

+ 0 - 88
src/main/java/com/diagbot/util/QCCatalogue.java

@@ -1,88 +0,0 @@
-package com.diagbot.util;
-
-import lombok.extern.slf4j.Slf4j;
-
-/**
- * @ClassName : QCCatalogue
- * @Description : 质控条目解析
- * @Author : 楼辉荣
- * @Date: 2020-03-04 11:24
- */
-@Slf4j
-public class QCCatalogue {
-
-    protected ThreadLocal<String> status = new ThreadLocal<String>();
-    protected ThreadLocal<String> info = new ThreadLocal<String>();
-
-    /*public void execute(InputInfo inputInfo, OutputInfo outputInfo) {
-//        long t1 = System.currentTimeMillis();
-        if (outputInfo.getResult().get(className) != null) {
-            return;
-        }
-        if (!precondExecute(inputInfo, outputInfo)) {
-            variablePreset("-2", "");
-            return;
-        }
-        try {
-            variablePreset("-1", "");
-            start(inputInfo, outputInfo);
-        } catch (Exception e) {
-            variablePreset("-1", "");
-            log.error(e.getMessage() + "......类名:" + this.className);
-        }
-//        long t2 = System.currentTimeMillis();
-//        log.error(inputInfo.getMedicalRecordInfoDoc().getStructureMap().get("behospitalCode") + "-----" + className + "(规则)  耗时:" + (t2 - t1));
-        insertOpt(outputInfo);
-    }
-
-    private void insertOpt(OutputInfo outputInfo) {
-        Map<String, String> resultDetail = Maps.newHashMap();
-        resultDetail.put("info", info.get());
-        resultDetail.put("status", status.get());
-        outputInfo.getResult().put(className, resultDetail);
-        status.remove();
-        info.remove();
-    }
-
-    private void variablePreset(String arg0, String arg1) {
-        status.set(arg0);
-        info.set(arg1);
-    }
-
-    //前置条件运行 true通过,false不通过
-    private boolean precondExecute(InputInfo inputInfo, OutputInfo outputInfo) {
-        Map<String, String> catalogueMap = inputInfo.getInputCatalogueMap().get(className);
-        if (catalogueMap == null) {
-            return true;
-        }
-        String precond = catalogueMap.get("precond");
-        if (StringUtil.isBlank(precond)) {
-            return true;
-        }
-        boolean flag = true;
-        String[] codes = precond.split(",");
-        for (String code : codes) {
-            QCCatalogue qCCatalogue = CatalogueUtil.qcCatalogueMap.get(code);
-            if (qCCatalogue != null) {
-                qCCatalogue.execute(inputInfo, outputInfo);
-            }
-        }
-        for (String code : codes) {
-            if (!outputInfo.getResult().get(code).get("status").equals("0")) {
-                flag = false;
-                break;
-            }
-        }
-        return flag;
-    }
-
-    private String className = this.getClass().getSimpleName();
-
-    public QCCatalogue() {
-        CatalogueUtil.qcCatalogueMap.put(className, this);
-    }
-
-    protected void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
-    }*/
-
-}