这段代码首先判断cond.getAllTypeIncludeFlag()是否等于AllTypeIncludeFlagEnum.YES.getCode(),并且cond.getActivityTypeList()不为空。如果条件满足,则执行以下操作:

  1. 调用cond.getActivityTypeList().stream().distinct().collect(Collectors.toList())方法,对cond.getActivityTypeList()进行去重操作,将去重后的结果重新赋值给cond.getActivityTypeList()
  2. 获取去重后cond.getActivityTypeList()的大小,赋值给number变量。
if ObjectUtilequalcondgetAllTypeIncludeFlag AllTypeIncludeFlagEnumYESgetCode && CollUtilisNotEmptycondgetActivityTypeList condsetActivityTypeListcondgetActivityTypeListstreamdistinctcolle

原文地址: http://www.cveoy.top/t/topic/i1Dv 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录