摘要: /** * 根据活动id进行分组 * key 活动id * value 活动id对应的商品id */ Map<Long, Set<Long>> collect = activitySkuList .stream() .collect(Collectors .groupingBy(ActivitySk 阅读全文
posted @ 2024-03-23 17:02 凉忆~ 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1.前景,有时候我们在不同的地方需要使用用户的信息,我们可以使用threadLocal存储信息,这样我们在在这个线程随时使用用户信息了,不用自己在写一段冗余代码了,这时候使用拦截器就很不错 2.实现 1.实现HandlerInterceptor 2.重写实现方法 preHandle:在业务处理器处理 阅读全文
posted @ 2024-03-10 18:13 凉忆~ 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 两个服务A,B A调用B的方法,现在B方式写好业务,然后定义方法名,A调用方法名 映入product类,调用方法getCategory // 查询分类 Category category = productFeignClient.getCategory(skuInfo.getCategoryId() 阅读全文
posted @ 2023-11-12 15:42 凉忆~ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: //插入 <insert id="batchAdd"> insert into TLMS_LessonClass_Lecture( lessonClassLectureId, lessonClassId, lessonId, title, beginDate, endDate, memo, cont 阅读全文
posted @ 2023-06-16 16:08 凉忆~ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 刚开始写法 错误 JSONArray jsonArray = (JSONArray) this.getJsonFilter().get("ids"); PltPayDuesModel[] payDuesModels = (PltPayDuesModel[]) jsonArray.toArray(); 阅读全文
posted @ 2023-06-16 16:05 凉忆~ 阅读(115) 评论(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 凉忆~ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: if (filter.containsKey("nodeData")) { JSONObject jsonObject = (JSONObject) filter.get("nodeData"); Iterator iterator = jsonObject.keySet().iterator(); 阅读全文
posted @ 2023-05-23 10:30 凉忆~ 阅读(70) 评论(0) 推荐(0) 编辑
摘要: String ruleDetail = paperRule.getRuleDetail(); if(ruleDetail != null){ JSONObject jsonObject = JSONObject.fromObject(ruleDetail); //转json对象 Object pap 阅读全文
posted @ 2023-05-08 16:00 凉忆~ 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 3种情况 1.不能循环对象,要用map或者for 2.回显数组时候,也不合适,消耗资源 3.需要手动停止的时候不合适 阅读全文
posted @ 2022-08-17 08:45 凉忆~ 阅读(62) 评论(0) 推荐(0) 编辑
摘要: vue中有时候this.tableTable获取不到数据,this.数据没有用,可能是this已经不是一个this了,不再是vue component所指对象了 getTableData(){ this.$request.post("/ddgl/aa/"+storage.get("userInfo" 阅读全文
posted @ 2022-07-19 16:42 凉忆~ 阅读(724) 评论(0) 推荐(0) 编辑