|
|
|
@ -98,8 +98,8 @@ public class CmsController { |
|
|
|
|
cmsContent.setStatus(CmsStatusEnum.status2.getStatus()); |
|
|
|
|
cmsContentService.editData(cmsContent); |
|
|
|
|
|
|
|
|
|
// 加入缓存
|
|
|
|
|
redisUtil.hset(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType(), cmsContent); |
|
|
|
|
// 删除缓存
|
|
|
|
|
redisUtil.hdel(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType()); |
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|