朋友搬家送什么java中获取List集合中最⼤的⽇期时间
时光沙漏取List集合中最⼤的⽇期, 可以⽤Date max = Collections.max(dateList);, 传⼊⼀个⽇期集合, 就可以获取, ⼯作中有这个需求, 就查精彩的的英文
找到这个, 代码如下
} el {
/** 获取此专题下的所有内容的最新时间 */
Long featureId = unityFeatureMapper.lectFeatureIdByLabelId(labelId);
List<CommunityFeatureRelation> communityFeatureRelationList = unityFeatureRelationMapper.lectByFeatureId(featureId);
List<Date> dateList = wArrayList();
for (CommunityFeatureRelation communityFeatureRelation : communityFeatureRelationList) {
CommunityProduct communityProduct = unityProductMapper.lectContentIdByProductIdAn
ProductId(),BaC CommunityArticle communityArticle = unityArticleMapper.ContentId());
dateList.ReleaTime());
英雄歌曲
}
if (!CollectionUtils.isEmpty(dateList)) {
Date max = Collections.max(dateList);
/** 内容->添加专题-此专题下的合伙⼈getReleaTime 更新, 若此专题下不存在合伙⼈, 则不更新 */
Long productId = unityProductMapper.lectIdByContentIdAndType(featureId, BaConstans.FOUR);
CommunityPartner communityPartner = unityPartnerMapper.lectByPartnerId(productId);
if (!StringUtils.isEmpty(communityPartner)) {
沈尹默书法communityPartner.tCreateTime(max);
资本论经典段落
communityPartnerMapper.updateByPrimaryKeySelective(communityPartner);
}
深亚麻色}
倒运
CommunityProduct communityProduct = unityProductMapper.lectContentIdByProductIdAndType(prodId, proType);