摘要: SELECT t3.* FROM(SELECT t1.*, IF (FIND_IN_SET(parent_id, @pids) > 0,@pids := CONCAT(@pids, ',', id),'0') AS ischild FROM(SELECT t.id,t.parent_id,t.NAM 阅读全文
posted @ 2024-03-05 14:51 岁月记忆 阅读(97) 评论(0) 推荐(0) 编辑
摘要: /** * 计算 年龄 * * @param birthDate 生日 * @return 岁数 当 生日 大于 当前时间时,返回 -1 */ public static int getAge(Date birthDate) { // 当前日历 Calendar nowCalendar = Cale 阅读全文
posted @ 2023-11-18 15:28 岁月记忆 阅读(6) 评论(0) 推荐(0) 编辑
摘要: /** * 判断指定时间是否在指定时间范围 * 指定时间为 null 时, 指定时间为 当前时间 * @param from 开始时间 * @param to 结束时间 * @return 结果 当 from ≥ 当前时间 ≤ to :true,否则 false */ public static b 阅读全文
posted @ 2023-11-18 15:26 岁月记忆 阅读(5) 评论(0) 推荐(0) 编辑
摘要: //获取月度第一天 public String getFirstMonthDay(int month) { Calendar calendar = Calendar.getInstance(); // 设置月份 calendar.set(Calendar.MONTH, month - 1); // 阅读全文
posted @ 2023-11-18 15:25 岁月记忆 阅读(16) 评论(0) 推荐(0) 编辑
摘要: public String formatTosepara(BigDecimal value) { Double data = Double.valueOf(String.valueOf(value)); DecimalFormat df = new DecimalFormat("#,###.00") 阅读全文
posted @ 2023-11-18 15:23 岁月记忆 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1、临时修改生效,不需要重启数据库 show variables like "max_connections"; #显示最大连接数show processlist; #显示当前连接数 set global max_connections=1000; #设置最大连接数1000 show variabl 阅读全文
posted @ 2023-08-29 09:07 岁月记忆 阅读(32) 评论(0) 推荐(0) 编辑
摘要: byte,short,chart——>int——>long——>float——>double 低————————————————————————>高 类型转换分为: 强制类型转换(由高-->低时使用), 自动类型转换/ 隐式类型转换(由低-->高时使用), 例如: int t = 100; doub 阅读全文
posted @ 2023-08-29 08:59 岁月记忆 阅读(11) 评论(0) 推荐(0) 编辑
摘要: /** * 修约精度 * @param num 数值 * @param len 精度(1、0.5、10、0.1、0.01)等 * @returns 四舍五入 */ export function ROUND5(num, len) { return $ROUND(num, len, '5') } /* 阅读全文
posted @ 2023-08-09 10:17 岁月记忆 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 如图: 从红箭头点击后的时间控件弹出层的位置与预计的期望偏了很多!! 至于从<el-date-picker> </el-date-picker> 标签上修改? 改不到控件的弹出层! 只能在 <el-date-picker> </el-date-picker> 标签上 添加 popper-class= 阅读全文
posted @ 2023-06-20 15:52 岁月记忆 阅读(277) 评论(0) 推荐(0) 编辑
摘要: import java.sql.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @describe jdbc PrepareStatement 控制台打印组装后的 SQL */ public cl 阅读全文
posted @ 2023-05-24 16:18 岁月记忆 阅读(206) 评论(0) 推荐(0) 编辑