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