中间表增加字段

main
JH 9 months ago
parent 98b9d39c03
commit b7198dd414

@ -57,4 +57,9 @@ public class JournalSong implements Serializable{
*
*/
private String lyricUrl;
/**
* _ID
*/
private String journalNoSongId;
}

@ -305,7 +305,9 @@ public class CMSJournalService {
} else {
journalSong.setLyricUrl(song.getLyricUrl());
}
journalSongList.add(journalSong);
String journalNoSongId = String.format("%s%s/%s", param.getJournalNo(), Constants.UNDERSCORE, item);
journalSong.setJournalNoSongId(journalNoSongId);
journalSongList.add(journalSong);
}
}
journalSongDao.saveAll(journalSongList);

@ -33,4 +33,6 @@ public class Constants {
public static final String DOT = ".";
public static final String COMMA = ",";
// _ 下划线
public static final String UNDERSCORE = "_";
}

Loading…
Cancel
Save