xiejun
2025-01-23 9ac3bd680a350c1cc4baad082d92cd2c5f158f3e
Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/utils/VciBaseUtil.java
@@ -321,7 +321,7 @@
   }
   public static String list2String(List<String> ls) {
      return ls != null && ls.size() != 0 ? (String) org.apache.commons.lang.StringUtils.join(ls,"") : "";
      return ls != null && ls.size() != 0 ? (String) StringUtils.join(ls,"") : "";
   }
   public static boolean isNull(String o) {
@@ -890,7 +890,7 @@
            sameMethods.add(mthod);
         }
      }
      return !CollectionUtils.isEmpty(sameMethods) ? (Method)sameMethods.get(0) : null;
   }
@@ -1388,6 +1388,25 @@
      return sb.toString();
   }
   public static String intToRomanOne(int num) {
      int[] values={1000,900,500,400,100,90,50,40,10,9,5,4,1};
      String[] romans={"M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"};
      StringBuilder sb=new StringBuilder();
      for(int i=0;i<values.length;i++){
         while(num>=values[i]){
            num=num-values[i];
            sb.append(romans[i]);
         }
      }
      return sb.toString();
   }
   public static String intToRomanTwo(int num) {
      String M[] = {"", "M", "MM", "MMM"};
      String C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"};
      String X[] = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"};
      String I[] = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"};
      return M[num/1000]+C[(num%1000)/100]+X[(num%100)/10]+I[num%10];
   }
}