08 2020 档案

摘要:public String formatDtime(String time) { String[] ts = time.split("T"); String sub = ts[1].substring(0, 8); return ts[0] + " " + sub; } 阅读全文
posted @ 2020-08-31 19:35 二先森 阅读(1043) 评论(0) 推荐(0)
摘要:outKey ,innerKey; BoundHashOperations<String, Object, Object> hashOps = this.redisTemplate.boundHashOps(outKey ); String value = (String) hashOps.get( 阅读全文
posted @ 2020-08-31 09:04 二先森 阅读(485) 评论(0) 推荐(0)
摘要:double result = new BigDecimal((float)1234 / 3456).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); 阅读全文
posted @ 2020-08-26 23:44 二先森 阅读(214) 评论(0) 推荐(0)
摘要:public static List<String> calTimeFormat() { int i =0; Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 List<String> timeList = new ArrayList<>( 阅读全文
posted @ 2020-08-26 23:43 二先森 阅读(127) 评论(0) 推荐(0)
摘要:public static BigDecimal getRandomFloat() { float Max = 100, Min = 95; BigDecimal bd = new BigDecimal(Math.random() * (Max - Min) + Min); return bd.se 阅读全文
posted @ 2020-08-26 23:41 二先森 阅读(176) 评论(0) 推荐(0)