| | |
| | | Collections.sort(list, new Comparator<SpFinancialExpensesReimbursementOut>() { |
| | | @Override |
| | | public int compare(SpFinancialExpensesReimbursementOut o1, SpFinancialExpensesReimbursementOut o2) { |
| | | return o1.getApplyTime().compareTo(o2.getApplyTime()); |
| | | return o2.getApplyTime().compareTo(o1.getApplyTime()); |
| | | } |
| | | }); |
| | | return getCustomDataTable(list, pageNum, pageSize); |
| | |
| | | } |
| | | |
| | | public static String convert(Double money) { |
| | | String smoney = money.toString(); |
| | | String smoney = BigDecimal.valueOf(money).toString(); |
| | | try { |
| | | if (smoney.indexOf(".") != -1) { //把数值分为整数型和带小数的数值分开处理。 |
| | | String left = smoney.substring(0, smoney.indexOf(".")); |