From 560db6a1036201e7e2ac50f34ad4a418f17eaba6 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期一, 06 六月 2022 11:01:11 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java index aa02f95..90db5f7 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java @@ -170,7 +170,7 @@ if (!activitySignVOS.isEmpty()) { try { WxXCXTempSend util = new WxXCXTempSend(); - String accessToken = util.getAppAccessToken(); + String accessToken = util.getAccessToken(); ComActDO comActDO=comActDAO.selectById(comActActivityDO.getCommunityId()); R<SysTemplateConfigVO> r=userService.selectTemplate(comActDO.getAreaCode(),1); activitySignVOS.forEach(activitySignVO1 -> { @@ -199,6 +199,7 @@ if (comActActivityVO.getSignUpEnd() != null && now.getTime() < comActActivityVO.getSignUpEnd().getTime() && now.getTime() > comActActivityVO.getSignUpBegin().getTime()) { comActActivityDO.setStatus(3); + comActActivityDO.setPublishAt(new Date()); } boolean b = this.updateById(comActActivityDO); if (b) { @@ -309,7 +310,7 @@ List<ComActActRegistDO> collect = regList.stream().sorted(Comparator.comparing(ComActActRegistDO::getId).reversed()).collect(Collectors.toList()); comActActivityVO.setTimes(collect.get(0).getTimes()); ComActActRegistDO comActActRegistDO=collect.get(0); - if(comActActRegistDO.getType()==2){ + if(comActActRegistDO.getType()==3){ if(comActActRegistDO.getEndTime()==null){ comActActivityVO.setSignType(2); } @@ -634,6 +635,7 @@ .collect(Collectors.toList()); comActActivityVO.setSignCount(collect.size()); comActActivityVO.setIsComment(0); + comActActivityVO.setIsRegist(0); ActivitySignVO activitySignVO = collect.get(0); Integer activityStatus = comActActivityVO.getStatus(); if (activityStatus.intValue() == 3) { @@ -647,7 +649,6 @@ log.error("时间转换异常【{}】", e.getMessage()); } comActActivityVO.setSingDate(createAt); - comActActivityVO.setTimes(activitySignVO.getTimes()); Integer totalAward = comActActRegistDAO.selectTotalAwardWithRegist(activitySignVO.getActivityId(), userId); comActActivityVO.setAward(totalAward); comActActivityVO.setActivitySignVOList(collect); @@ -852,7 +853,7 @@ if (!actActivityList.isEmpty()) { WxXCXTempSend util = new WxXCXTempSend(); try { - String accessToken = util.getAppAccessToken(); + String accessToken = util.getAccessToken(); actActivityList.forEach(actActivity -> { ComActDO comActDO=comActDAO.selectById(actActivity.getCommunityId()); R<SysTemplateConfigVO> r=userService.selectTemplate(comActDO.getAreaCode(),9); -- Gitblit v1.7.1