Commit 0eec58af by yao.xiao

修改-标签排序

parent 343cb4e2
......@@ -74,6 +74,7 @@ public class MetadataServiceImpl implements MetadataService {
mdTagNewAddList.addAll(mdTagNewListSelect);
List<TagQueryInfo> tagQueryInfoList = new ArrayList<>(16);
classificationBuildUpMdTag(mdTagNewList,mdTagNewAddList,mdTagNewListSelect,tagQueryInfoList);
tagQueryInfoList.sort((o1, o2) -> o2.getId().compareTo(o1.getId()));
tagQueryInfo.setTagQueryInfos(tagQueryInfoList);
tagQueryInfos.add(tagQueryInfo);
}
......@@ -96,6 +97,7 @@ public class MetadataServiceImpl implements MetadataService {
tagInfo.setUpdatedAt(CommonUtil.dateParseString(m.getUpdatedAt(),"yyyy-MM-dd HH:mm:ss"));
tagQueryInfoList.add(tagInfo);
});
tagQueryInfoList.sort((o1, o2) -> o2.getId().compareTo(o1.getId()));
tagQueryInfo.setTagQueryInfos(tagQueryInfoList);
tagQueryInfos.add(tagQueryInfo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment