//package com.sw.mes;
//
//import com.sw.mes.base.factory.inspect.entity.DefaultCrystalAttr;
//import com.sw.mes.yb.mcs.dto.YbCheckResultDto;
//
//import java.lang.reflect.Field;
//import java.math.BigDecimal;
//import java.util.List;
//import java.util.UUID;
//
//public class Param {
//    public static void main(String[] args) {
//
//        UUID uuid=UUID.randomUUID();
//        System.out.println(uuid.toString());
//
//        getDefaultCrystalAttr("120-150",new BigDecimal("150"));
//////        Boolean match = isMatch(new BigDecimal(100), null);
//////        System.out.println(match);
////    }
////
////   static void copyBeanPropWithOutNullValue(Object dest, Object src) {
////        Class destClazz = dest.getClass();
////        Field[] descFields = destClazz.getDeclaredFields();
////        Class srcClazz = src.getClass();
////        for (Field field : descFields) {
////            try {
////                Field srcField = null;
////                try {
////                    srcField = srcClazz.getDeclaredField(field.getName());
////                } catch (Exception e) {
////                    continue;
////                }
////                srcField.setAccessible(true);
////                Object value = srcField.get(src);
////                if (value != null) {
////                    field.setAccessible(true);
////                    field.set(dest, value);
////                }
////            } catch (Exception e) {
////                e.printStackTrace();
////            }
////        }
////
////
////    }
////
////    private static Boolean isMatch(BigDecimal value, String rule) {
////        if (rule == null) {
////            return true;
////        }
////        if (rule.contains("不配置")) {
////            return true;
////        }
////        rule = rule.trim();
////        if (rule.equals("")) {
////            return true;
////        }
////        String[] split = rule.split(",");
////        for (String s : split) {
////            //">=100,<56,>66,"
////            if (s.contains(">=")) {
////                String s1 = s.replaceAll(">=", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) < 0) {
////                    return false;
////                }
////
////            } else if (s.contains("<=")) {
////                String s1 = s.replaceAll("<=", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) > 0) {
////                    return false;
////                }
////            } else if (s.contains("!=")) {
////                String s1 = s.replaceAll("!=", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) == 0) {
////                    return false;
////                }
////            } else if (s.contains(">")) {
////                String s1 = s.replaceAll(">", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) <= 0) {
////                    return false;
////                }
////            } else if (s.contains("<")) {
////                String s1 = s.replaceAll("<", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) >= 0) {
////                    return false;
////                }
////            } else if (s.contains("=")) {
////                String s1 = s.replaceAll("=", "");
////                BigDecimal ruleValue = new BigDecimal(s1);
////                if (value.compareTo(ruleValue) != 0) {
////                    return false;
////                }
////            } else {
////                return false;
////            }
////        }
////        return true;
//    }
//
//    public static String getDefaultCrystalAttr(String a , BigDecimal length) {
//        String type = null;
//                    String[] split = a.split("-");
//                    BigDecimal min = new BigDecimal(split[0]);
//                    BigDecimal max = new BigDecimal(split[1]);
//                    if (length.compareTo(min) > -1 && length.compareTo(max) < 1) {
//                        System.out.println(length.compareTo(min));
//                        System.out.println(length.compareTo(max));
//                        System.out.println(true);
//                    }
//
//        return type;
//    }
//}
