yeshijie преди 7 години
родител
ревизия
131b17a782
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/util/CommonUtil.java

+ 4 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/util/CommonUtil.java

@ -135,9 +135,10 @@ public class CommonUtil {
            amLong = Integer.valueOf(currency+"00");
        }else if(length - index >= 3){
            amLong = Integer.valueOf((currency.substring(0, index+3)).replace(".", ""));
            Integer i = Integer.valueOf(currency.substring(index+3,index+4));
            if(i>=5){
                amLong++;
            if(length-index>3){
                if(Integer.valueOf(currency.substring(index+3,index+4))>=5){
                    amLong++;
                }
            }
        }else if(length - index == 2){
            amLong = Integer.valueOf((currency.substring(0, index+2)).replace(".", "")+0);