|
|
@ -67,6 +67,7 @@ public class CMSJournalController {
|
|
|
|
@ApiParam(value = "期刊信息", required = true) @RequestBody JournalAddModel updateModel){
|
|
|
|
@ApiParam(value = "期刊信息", required = true) @RequestBody JournalAddModel updateModel){
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_SONG_LIST, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
return journalService.update(id, updateModel);
|
|
|
|
return journalService.update(id, updateModel);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,6 +79,7 @@ public class CMSJournalController {
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_SONG_LIST, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
return journalService.publish(id, queryModel);
|
|
|
|
return journalService.publish(id, queryModel);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -88,6 +90,7 @@ public class CMSJournalController {
|
|
|
|
@ApiParam(value = "期刊启停状态,0:停用,1:启用", required = true) @RequestBody String state){
|
|
|
|
@ApiParam(value = "期刊启停状态,0:停用,1:启用", required = true) @RequestBody String state){
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_SONG_LIST, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
return journalService.updateJournalState(id, state);
|
|
|
|
return journalService.updateJournalState(id, state);
|
|
|
@ -98,6 +101,7 @@ public class CMSJournalController {
|
|
|
|
public Result delete(@ApiParam(value = "期刊ID", required = true) @PathVariable String id){
|
|
|
|
public Result delete(@ApiParam(value = "期刊ID", required = true) @PathVariable String id){
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_ID, id);
|
|
|
|
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_SONG_LIST, id);
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.evict(constants.Constants.J2CACHE_REGION_JOURNAL_NO,journalService.findJournalNoById(id));
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
return journalService.deleteById(id);
|
|
|
|
return journalService.deleteById(id);
|
|
|
|