|
|
@ -124,7 +124,6 @@ public class SaticScheduleTask {
|
|
|
|
private void updateJouranlTag(Journal journal) {
|
|
|
|
private void updateJouranlTag(Journal journal) {
|
|
|
|
List<String> tags = tagDao.getTagNameChByJournalId(journal.getId());
|
|
|
|
List<String> tags = tagDao.getTagNameChByJournalId(journal.getId());
|
|
|
|
if (!tags.isEmpty()) {
|
|
|
|
if (!tags.isEmpty()) {
|
|
|
|
cacheChannel.clear("tag");
|
|
|
|
|
|
|
|
String tagStr = tags.stream().distinct().sorted().collect(Collectors.joining(Constants.COMMA));
|
|
|
|
String tagStr = tags.stream().distinct().sorted().collect(Collectors.joining(Constants.COMMA));
|
|
|
|
if (!tagStr.equals(journal.getNameChTags())) {
|
|
|
|
if (!tagStr.equals(journal.getNameChTags())) {
|
|
|
|
journal.setNameChTags(tagStr);
|
|
|
|
journal.setNameChTags(tagStr);
|
|
|
|