摘要: public static void main(String[] args) { // 创建当前日期对象 Date now = new Date(); // 获取当前时间毫秒值,作为结束时间 Long endTime = now.getTime(); // 获取当前时间的Calendar实例 Cal 阅读全文
posted @ 2024-09-18 09:56 凉忆~ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 将对象所有的值转换为string装入map,自定义话 Map<String, Object> map = BeanUtil.beanToMap(userDTO,new HashMap<>(), CopyOptions.create().setIgnoreNullValue(true).setFiel 阅读全文
posted @ 2024-05-30 10:06 凉忆~ 阅读(45) 评论(0) 推荐(0) 编辑
摘要: /** * 根据活动id进行分组 * key 活动id * value 活动id对应的商品id */ Map<Long, Set<Long>> collect = activitySkuList .stream() .collect(Collectors .groupingBy(ActivitySk 阅读全文
posted @ 2024-03-23 17:02 凉忆~ 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.前景,有时候我们在不同的地方需要使用用户的信息,我们可以使用threadLocal存储信息,这样我们在在这个线程随时使用用户信息了,不用自己在写一段冗余代码了,这时候使用拦截器就很不错 2.实现 1.实现HandlerInterceptor 2.重写实现方法 preHandle:在业务处理器处理 阅读全文
posted @ 2024-03-10 18:13 凉忆~ 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 两个服务A,B A调用B的方法,现在B方式写好业务,然后定义方法名,A调用方法名 映入product类,调用方法getCategory // 查询分类 Category category = productFeignClient.getCategory(skuInfo.getCategoryId() 阅读全文
posted @ 2023-11-12 15:42 凉忆~ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: //插入 <insert id="batchAdd"> insert into TLMS_LessonClass_Lecture( lessonClassLectureId, lessonClassId, lessonId, title, beginDate, endDate, memo, cont 阅读全文
posted @ 2023-06-16 16:07 凉忆~ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 刚开始写法 错误 JSONArray jsonArray = (JSONArray) this.getJsonFilter().get("ids"); PltPayDuesModel[] payDuesModels = (PltPayDuesModel[]) jsonArray.toArray(); 阅读全文
posted @ 2023-06-16 16:04 凉忆~ 阅读(147) 评论(0) 推荐(0) 编辑
摘要: termList.map(item => { if(item.isOnTerm == 1){ termOpts += '<option value="'+ item.termId +'" selected>'+ item.termName +'</option>'; }else { termOpts 阅读全文
posted @ 2023-05-24 11:30 凉忆~ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: if (filter.containsKey("nodeData")) { JSONObject jsonObject = (JSONObject) filter.get("nodeData"); Iterator iterator = jsonObject.keySet().iterator(); 阅读全文
posted @ 2023-05-23 10:30 凉忆~ 阅读(87) 评论(0) 推荐(0) 编辑
摘要: String ruleDetail = paperRule.getRuleDetail(); if(ruleDetail != null){ JSONObject jsonObject = JSONObject.fromObject(ruleDetail); //转json对象 Object pap 阅读全文
posted @ 2023-05-08 16:00 凉忆~ 阅读(323) 评论(0) 推荐(0) 编辑