From 0b3c071fa7383d4c667697c183590d649b81c4d0 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期六, 24 七月 2021 15:32:56 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java index d60ae2a..5733c6b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java @@ -379,7 +379,6 @@ return R.fail("未查到社区动态记录"); } // Long id = comActDynVO.getId(); - BeanUtils.copyProperties(comActDynVO, comActDynDO); Integer isTopping = comActDynVO.getIsTopping(); boolean b = isTopping.equals(1); if(b){ @@ -388,6 +387,8 @@ return R.fail("待发布的社区动态不可置顶"); } } + BeanUtils.copyProperties(comActDynVO, comActDynDO); + boolean update = comActDynService.updateById(comActDynDO); if (update) { // 最多只能设置三条置顶状态,后边设置会取消先前设置的置顶 -- Gitblit v1.7.1