|
|
@ -779,6 +779,15 @@ public class CodeServiceImpl implements CodeService { |
|
|
|
dto.setCreateTime(DateUtils.formatTimestamp(temp.getCreateTime(), DateUtils.DATE_TIME_PATTERN)); |
|
|
|
resultList.add(dto); |
|
|
|
}); |
|
|
|
//按时间降序
|
|
|
|
if (resultList.size() > NumConstant.ZERO) { |
|
|
|
Collections.sort(resultList, new Comparator<TemplateDraftListResultDTO>() { |
|
|
|
@Override |
|
|
|
public int compare(TemplateDraftListResultDTO o1, TemplateDraftListResultDTO o2) { |
|
|
|
return o2.getCreateTime().compareTo(o1.getCreateTime()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
return resultList; |
|
|
|
} |
|
|
|
|
|
|
|