pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/util/Constant.java
@@ -51,52 +51,53 @@
        }
        return null ;
    }
//
//    // 1、刷卡开阀;2刷卡关阀;3、中心站开阀;4、中心站关阀;5、欠费关阀;
//    // 6、流量计故障关阀;7、紧急关阀;8、用户远程开阀;9、用户远程关阀;
//    // 16,用户开阀后管道内没有水,自动关阀。管道不出水自动关阀
//    public static final Integer valveOpenByIC = 1 ;//刷卡开阀
//    public static final Integer valveCloseByIC = 2 ;//刷卡关阀
//    public static final Integer valveOpenByCenter = 3 ;//中心站开阀
//    public static final Integer valveCloseByCenter = 4 ;//中心站关阀
//    public static final Integer valveCloseByFee = 5 ;//欠费关阀
//    public static final Integer valveCloseByFlowMeterFault = 6 ;//流量计故障关阀
//    public static final Integer valveCloseByEmergency = 7 ;//紧急关阀
//    public static final Integer valveOpenByRemoteUser = 8 ;//用户远程开阀
//    public static final Integer valveCloseByRemoteUser = 9 ;//用户远程关阀;
//    public static final Integer valveCloseByNoWater = 16 ;//管道无水自动关阀;
//
//    public static Map<Integer, String> openCloseValveTypes(){
//        Map<Integer, String> map = new HashMap<>() ;
//        map.put(valveOpenByIC, "刷卡开阀");
//        map.put(valveCloseByIC , "刷卡关阀") ;
//        map.put(valveOpenByCenter , "中心站开阀") ;
//        map.put(valveCloseByCenter , "中心站关阀") ;
//        map.put(valveCloseByFee , "欠费关阀") ;
//        map.put(valveCloseByFlowMeterFault , "流量计故障关阀") ;
//        map.put(valveCloseByEmergency , "紧急关阀") ;
//        map.put(valveOpenByRemoteUser , "用户远程开阀") ;
//        map.put(valveCloseByRemoteUser , "用户远程关阀") ;
//        map.put(valveCloseByNoWater , "管道无水自动关阀") ;
//        return map ;
//    }
//    public static String openCloseValveTypeName(Integer type){
//        if(type != null){
//            return switch (type.intValue()) {
//                case 1 -> "刷卡开阀";
//                case 2 -> "刷卡关阀";
//                case 3 -> "中心站开阀";
//                case 4 -> "中心站关阀";
//                case 5 -> "欠费关阀";
//                case 6 -> "流量计故障关阀";
//                case 7 -> "紧急关阀";
//                case 8 -> "用户远程开阀";
//                case 9 -> "用户远程关阀";
//                case 16 -> "管道无水自动关阀";
//                default -> "未知";
//            };
//        }
//        return null ;
//    }
    // 1、刷卡开阀;2刷卡关阀;3、中心站开阀;4、中心站关阀;5、欠费关阀;
    // 6、流量计故障关阀;7、紧急关阀;8、用户远程开阀;9、用户远程关阀;
    // 16,用户开阀后管道内没有水,自动关阀。管道不出水自动关阀
    public static final Integer valveOpenByIC = 1 ;//刷卡开阀
    public static final Integer valveCloseByIC = 2 ;//刷卡关阀
    public static final Integer valveOpenByCenter = 3 ;//中心站开阀
    public static final Integer valveCloseByCenter = 4 ;//中心站关阀
    public static final Integer valveCloseByFee = 5 ;//欠费关阀
    public static final Integer valveCloseByFlowMeterFault = 6 ;//流量计故障关阀
    public static final Integer valveCloseByEmergency = 7 ;//紧急关阀
    public static final Integer valveOpenByRemoteUser = 8 ;//用户远程开阀
    public static final Integer valveCloseByRemoteUser = 9 ;//用户远程关阀;
    public static final Integer valveCloseByNoWater = 16 ;//管道无水自动关阀;
    public static Map<Integer, String> openCloseValveTypes(){
        Map<Integer, String> map = new HashMap<>() ;
        map.put(valveOpenByIC, "刷卡开阀");
        map.put(valveCloseByIC , "刷卡关阀") ;
        map.put(valveOpenByCenter , "中心站开阀") ;
        map.put(valveCloseByCenter , "中心站关阀") ;
        map.put(valveCloseByFee , "欠费关阀") ;
        map.put(valveCloseByFlowMeterFault , "流量计故障关阀") ;
        map.put(valveCloseByEmergency , "紧急关阀") ;
        map.put(valveOpenByRemoteUser , "用户远程开阀") ;
        map.put(valveCloseByRemoteUser , "用户远程关阀") ;
        map.put(valveCloseByNoWater , "管道无水自动关阀") ;
        return map ;
    }
    public static String openCloseValveTypeName(Integer type){
        if(type != null){
            return switch (type.intValue()) {
                case 1 -> "刷卡开阀";
                case 2 -> "刷卡关阀";
                case 3 -> "中心站开阀";
                case 4 -> "中心站关阀";
                case 5 -> "欠费关阀";
                case 6 -> "流量计故障关阀";
                case 7 -> "紧急关阀";
                case 8 -> "用户远程开阀";
                case 9 -> "用户远程关阀";
                case 16 -> "管道无水自动关阀";
                default -> "未知";
            };
        }
        return null ;
    }
}