From 8c0b5b30e5200e7bd45aa34507c3623e17fcce91 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期四, 24 八月 2023 13:47:24 +0800 Subject: [PATCH] 新增小程序积分列表 修改积分发放流程 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java index 6569ab1..5102914 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java @@ -3,16 +3,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.panzhihua.common.model.vos.community.MostBeautifulVolunteerVO; +import com.panzhihua.common.model.vos.community.ComActDynVO; import com.panzhihua.common.model.vos.community.VolunteerActivityVO; import com.panzhihua.common.utlis.StringUtils; -import com.panzhihua.service_community.dao.MostBeautifulVolunteerDao; import com.panzhihua.service_community.dao.VolunteerActivityDao; -import com.panzhihua.service_community.entity.MostBeautifulVolunteer; import com.panzhihua.service_community.entity.VolunteerActivity; -import com.panzhihua.service_community.service.MostBeautifulVolunteerService; import com.panzhihua.service_community.service.VolunteerActivityService; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import java.util.Date; @@ -114,7 +112,11 @@ if(!StringUtils.equals(state,itemDate.getAcState())) { itemDate.setAcState(state); - baseMapper.updateById(itemDate); + + VolunteerActivityVO comActDynVO = new VolunteerActivityVO(); + comActDynVO.setId(itemDate.getId()); + BeanUtils.copyProperties(itemDate, comActDynVO); + baseMapper.updateById(comActDynVO); } } } -- Gitblit v1.7.1