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