1.fix sql issue

main
Gary 7 months ago
parent 456c87d158
commit 6554b871e7

@ -352,9 +352,9 @@ public class JournalService {
return journalDao.orderByField(recommendIds); return journalDao.orderByField(recommendIds);
} }
public List<String> orderByJournalIdField(List<String> jouranlIds) { public List<String> orderByJournalIdField(List<String> jouranlIds) {
return journalSongDao.orderByJournalIdField(jouranlIds); return CollectionUtils.isEmpty(jouranlIds) ? Collections.emptyList()
: journalSongDao.orderByJournalIdField(jouranlIds);
} }
public List<JournalRespDTO> queryJournalByPage(JournalQueryReq queryReq) { public List<JournalRespDTO> queryJournalByPage(JournalQueryReq queryReq) {

Loading…
Cancel
Save