From da8cca4d320908b672f439369e65e9e6a95374e3 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期一, 07 三月 2022 09:46:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/partyBuilding_lyq' into hemenkou_dev --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java index 93cef51..fcd9303 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java @@ -8,6 +8,9 @@ import javax.annotation.Resource; import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; +import com.panzhihua.service_community.entity.ComActEasyPhotoHandler; +import com.panzhihua.service_community.entity.SysTemplateConfig; +import com.panzhihua.service_community.service.ComActEasyPhotoHandlerService; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -70,7 +73,10 @@ private ComActReserveMapper comActReserveMapper; @Resource private ComActActivityDAO comActActivityDAO; - + @Resource + private SysTemplateConfigDao sysTemplateConfigDao; + @Resource + private ComActEasyPhotoHandlerService easyPhotoHandlerService; /** * 分页查询随手拍 * @@ -310,6 +316,14 @@ // 审核通过判断随手拍是否有活动并计算用户收益 comActUserWalletService.examineAddMoney(comActEasyPhotoVO.getActivityType(), comActEasyPhotoVO.getId(), comActEasyPhotoVO.getUserId(), BigDecimal.ZERO); + + //添加分配人员 + if(comActEasyPhotoVO.getHandleList() != null && comActEasyPhotoVO.getHandleList().size() > 0){ + comActEasyPhotoVO.getHandleList().forEach(handle -> { + easyPhotoHandlerService.addHandleRecord(cmActEasyPhotoDO.getCommunityId(),comActEasyPhotoVO.getUserId() + ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP); + }); + } break; case 2: // if(!cmActEasyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.dsh)){ @@ -596,10 +610,11 @@ Map<String, String> map = comActActSignDAO.getUserOpenId(easyPhotoDO.getSponsorId()); if (map != null) { String openid = map.get("openid"); + SysTemplateConfig sysTemplateConfig=sysTemplateConfigDao.selectOne(new QueryWrapper<SysTemplateConfig>().lambda().eq(SysTemplateConfig::getAreaCode, grantRewardDTO.getAreaCode()).eq(SysTemplateConfig::getType,7)); WxXCXTempSend util = new WxXCXTempSend(); try { WxUtil.sendSubscribeJLDZ(openid, util.getAppAccessToken(), "随手拍有奖活动", - grantRewardDTO.getAmount(), activityType); + grantRewardDTO.getAmount(), activityType,sysTemplateConfig.getTemplateId()); } catch (Exception e) { log.error("消息推送失败,失败原因:" + e.getMessage()); } -- Gitblit v1.7.1