From de15583e9bf3d33d86e42f61e3d7b28685d2afc0 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 23 八月 2023 16:00:32 +0800
Subject: [PATCH] 修改定时任务报名人数为空

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivityServiceImpl.java |   11 ++++++-----
 1 files changed, 6 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..52ba0e0 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,10 @@
                 if(!StringUtils.equals(state,itemDate.getAcState()))
                 {
                     itemDate.setAcState(state);
-                    baseMapper.updateById(itemDate);
+
+                    VolunteerActivityVO comActDynVO = new VolunteerActivityVO();
+                    BeanUtils.copyProperties(itemDate, comActDynVO);
+                    baseMapper.updateById(comActDynVO);
                 }
             }
         }

--
Gitblit v1.7.1