摘要: 示例:1、数据转换 List<ProAssignmentOrderEquip> equips = list(wrapper); List<ProAssignmentOrderEquipResultVO> list = BeanPlusUtil.toBeanList(equips, ProAssign 阅读全文
posted @ 2026-05-27 15:36 岁月记忆 阅读(6) 评论(0) 推荐(0)
摘要: import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import java.util.*; import java.util.functi 阅读全文
posted @ 2026-05-27 15:26 岁月记忆 阅读(16) 评论(0) 推荐(0)
摘要: import cn.hutool.core.collection.CollectionUtil;import lombok.extern.slf4j.Slf4j;import java.util.ArrayList;import java.util.Collections;import java.u 阅读全文
posted @ 2025-11-18 11:11 岁月记忆 阅读(41) 评论(0) 推荐(0)
摘要: /** * 驼峰转下划线 */ function replaceUppercaseWithUnderscoresAndLowercase (str) { return str.replace(/[A-Z]/g, (match) => `_${match.toLowerCase()}`) } cons 阅读全文
posted @ 2024-11-27 10:17 岁月记忆 阅读(79) 评论(0) 推荐(0)
摘要: { label: '', field: 'trainingDate', component: 'RangePicker', componentProps: { format: 'YYYY-MM-DD HH:mm:00', valueFormat: 'YYYY-MM-DD HH:mm:00', min 阅读全文
posted @ 2024-05-30 17:16 岁月记忆 阅读(333) 评论(0) 推荐(0)
摘要: 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 岁月记忆 阅读(1473) 评论(0) 推荐(0)
摘要: /** * 计算 年龄 * * @param birthDate 生日 * @return 岁数 当 生日 大于 当前时间时,返回 -1 */ public static int getAge(Date birthDate) { // 当前日历 Calendar nowCalendar = Cale 阅读全文
posted @ 2023-11-18 15:27 岁月记忆 阅读(83) 评论(0) 推荐(0)
摘要: /** * 判断指定时间是否在指定时间范围 * 指定时间为 null 时, 指定时间为 当前时间 * @param from 开始时间 * @param to 结束时间 * @return 结果 当 from ≥ 当前时间 ≤ to :true,否则 false */ public static b 阅读全文
posted @ 2023-11-18 15:26 岁月记忆 阅读(45) 评论(0) 推荐(0)
摘要: //获取月度第一天 public String getFirstMonthDay(int month) { Calendar calendar = Calendar.getInstance(); // 设置月份 calendar.set(Calendar.MONTH, month - 1); // 阅读全文
posted @ 2023-11-18 15:24 岁月记忆 阅读(78) 评论(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 岁月记忆 阅读(250) 评论(0) 推荐(0)