07 2021 档案

摘要:/*用concat拼接*/select * from mybatis.book where bookName like concat('%',#{info},'%'); 阅读全文
posted @ 2021-07-16 15:54 二次元的程序猿 阅读(252) 评论(0) 推荐(0)
摘要:/** * 取 a / b 百分比字符串 * @param a 分子 * @param b 分母 * @return 百分比 例 50% */ public static String getPercentage(BigDecimal a, BigDecimal b) { if (a != null 阅读全文
posted @ 2021-07-08 17:45 二次元的程序猿 阅读(136) 评论(0) 推荐(0)
摘要:/** * 计算增长率 * @param currVal 当元素前值 * @param preVal 上一个元素值 * @return Map<String, String> */ private Map<String, String> dealGrowthRate(Number currVal, 阅读全文
posted @ 2021-07-06 17:38 二次元的程序猿 阅读(210) 评论(0) 推荐(0)