摘要: /** 修改序列 、第一步删除序列第二步创建序列**/ -- 删除序列DROP SEQUENCE S_SYS_ACCOUNT; -- 创建序列CREATE sequence S_SYS_ACCOUNTminvalue 1maxvalue 9999999999999999999999999999sta 阅读全文
posted @ 2021-11-16 15:49 游走人间的蒲公英 阅读(151) 评论(0) 推荐(0) 编辑
摘要: /** * 下划线转驼峰 */public static String lineToHump(String str) { str = str.toLowerCase(); Matcher matcher = linePattern.matcher(str); StringBuffer sb = ne 阅读全文
posted @ 2021-11-16 15:36 游走人间的蒲公英 阅读(49) 评论(0) 推荐(0) 编辑
摘要: /** * 驼峰转下划线 */public static String humpToLine(String str) { Matcher matcher = humpPattern.matcher(str); StringBuffer sb = new StringBuffer(); while ( 阅读全文
posted @ 2021-11-16 15:36 游走人间的蒲公英 阅读(36) 评论(0) 推荐(0) 编辑
摘要: /** * 格式化数字,保留制定长度,如果长度不足,则在前面加0 * @param number 要格式化的数字 * @param length 长度 * @return */public static String formatNumberByZero(String number,int leng 阅读全文
posted @ 2021-11-16 11:12 游走人间的蒲公英 阅读(53) 评论(0) 推荐(0) 编辑
摘要: /** * 格式化金额,保留两位小数,即精确到分 * @param balance 身份证 * @return */public static String formatBalance(String balance){ if(balance == null) { return null; } if( 阅读全文
posted @ 2021-11-16 11:11 游走人间的蒲公英 阅读(47) 评论(0) 推荐(0) 编辑
摘要: /** * 将身份证号转换为年龄 * @param idCard 身份证号 * @return 年龄字符串 */public static int idCard2Age(String idCard) { if (idCard == null) { return null; } if (idCard. 阅读全文
posted @ 2021-11-16 11:09 游走人间的蒲公英 阅读(382) 评论(0) 推荐(0) 编辑
摘要: /** * * @param base64Str * @param path * @return */public static File base642File(String base64Str, String path) { if (!StringUtils.isNotBlank(base64S 阅读全文
posted @ 2021-11-16 10:41 游走人间的蒲公英 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /** * 生成随机字符串 * @param str 字符池 * @param length 随机字符串长度 * @return 生成的随机字符串 */public static String randomString(int length,String str) { //字符池 str = "0E 阅读全文
posted @ 2021-11-16 10:27 游走人间的蒲公英 阅读(27) 评论(0) 推荐(0) 编辑
摘要: /** * 获取日期时间的年份,如2017-02-13,返回2017 * * @param date * @return */public static int getYear(Date date) { Calendar cal = Calendar.getInstance(); cal.setTi 阅读全文
posted @ 2021-11-16 10:23 游走人间的蒲公英 阅读(77) 评论(0) 推荐(0) 编辑
摘要: /** * 获取两个日期(不含时分秒)相差的天数,不包含今天 * * @param startDate * @param endDate * @throws ParseException * @return */public static int dateBetween(Date startDate 阅读全文
posted @ 2021-11-16 10:21 游走人间的蒲公英 阅读(54) 评论(0) 推荐(0) 编辑
摘要: /** * 获取两个时间中最大的一个时间 * * @param date * @param compareDate * @return */public static Date dateMax(Date date, Date compareDate) { if (date == null) { re 阅读全文
posted @ 2021-11-16 10:20 游走人间的蒲公英 阅读(307) 评论(0) 推荐(0) 编辑
摘要: /** * 获取两个时间中最小的一个时间 * * @param date * @param compareDate * @return */public static Date dateMin(Date date, Date compareDate) { if (date == null) { re 阅读全文
posted @ 2021-11-16 10:19 游走人间的蒲公英 阅读(187) 评论(0) 推荐(0) 编辑