|
|
|
@ -50,6 +50,7 @@ public class CMSJournalController {
|
|
|
|
|
@ApiOperation(value = "新增期刊", notes = "新增期刊")
|
|
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
|
|
public Result add(@ApiParam(value = "期刊信息", required = true) @Valid @RequestBody JournalAddModel addModel){
|
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
|
return journalService.add(addModel);
|
|
|
|
|
}
|
|
|
|
@ -86,6 +87,7 @@ public class CMSJournalController {
|
|
|
|
|
@ApiOperation(value = "删除单条期刊", notes = "物理删除")
|
|
|
|
|
@RequestMapping(value="/{id}", method= RequestMethod.DELETE)
|
|
|
|
|
public Result delete(@ApiParam(value = "期刊ID", required = true) @PathVariable String id){
|
|
|
|
|
cacheChannel.evict("default", "journal_filter");
|
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_QUERY_PAGE);
|
|
|
|
|
return journalService.deleteById(id);
|
|
|
|
|
}
|
|
|
|
|