From 06180fa3c8ee17d731561b88897fa18b9f8cf228 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期五, 04 十一月 2022 17:53:50 +0800 Subject: [PATCH] Merge branch 'huacheng_test' into local_20221104 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 47 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 cdd0400..5965ed5 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,7 @@ import javax.annotation.Resource; import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoEvaluateDto; +import com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo; import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO; import com.panzhihua.service_community.entity.ComActEasyPhotoEvaluate; import com.panzhihua.service_community.entity.ComActEasyPhotoHandler; @@ -307,7 +308,7 @@ cmActEasyPhotoDO.setTransferTime(nowDate); } else { - cmActEasyPhotoDO.setIsReportUrban(ComActEasyPhotoVO.isReportUrban.no); + cmActEasyPhotoDO.setIsReportUrban(ComActEasyPhotoVO.isReportUrban.no ); } cmActEasyPhotoDO.setExamineAt(nowDate); cmActEasyPhotoDO.setActivityType(comActEasyPhotoVO.getActivityType()); @@ -388,6 +389,9 @@ break; default: break; + } + if (!ObjectUtils.isEmpty(comActEasyPhotoVO.getIsReportDpc())){ + cmActEasyPhotoDO.setIsReportDpc(comActEasyPhotoVO.getIsReportDpc()); } if (!type.equals(3)) { int update = comActEasyPhotoDAO.updateById(cmActEasyPhotoDO); @@ -623,7 +627,7 @@ 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(), "随手拍有奖活动", + WxUtil.sendSubscribeJLDZ(openid, util.getAccessToken(), "随手拍有奖活动", grantRewardDTO.getAmount(), activityType,sysTemplateConfig.getTemplateId()); } catch (Exception e) { log.error("消息推送失败,失败原因:" + e.getMessage()); @@ -880,4 +884,45 @@ return R.ok(this.baseMapper.easyPhotoNoHandleIds(communityId)); } + /** + * 获取人大代表反馈记录 + * @param id 随手拍id + * @return + */ + @Override + public R getFeedbackList(Long id) { + return R.ok(comActEasyPhotoFeedbackMapper.getPhotoFeedbackListForDpc(id)); + } + + /** + * 人大代表反馈随手拍 + * @param comActEasyPhotoVO + * @return + */ + @Override + public R addEasyPhotoFeedbackForDpc(ComActEasyPhotoVO comActEasyPhotoVO) { + Date nowDate = new Date(); + // 操作类型 1审核通过 2驳回 3反馈 4完成随手拍 + ComActEasyPhotoDO cmActEasyPhotoDO = this.comActEasyPhotoDAO.selectById(comActEasyPhotoVO.getId()); + if (cmActEasyPhotoDO == null) { + return R.fail("未查询到随手拍记录"); + } + if (!cmActEasyPhotoDO.getStatus().equals(ComActEasyPhotoDO.status.dfk)) { + return R.fail("该随手拍不是进行中状态,不可进行反馈"); + } + // 给随手拍新增反馈信息 + ComActEasyPhotoFeedbackDO photoFeedbackDO = new ComActEasyPhotoFeedbackDO(); + photoFeedbackDO.setEasyId(comActEasyPhotoVO.getId()); + photoFeedbackDO.setFeedbackContent(comActEasyPhotoVO.getHandleResult()); + photoFeedbackDO.setFeedbackImg(comActEasyPhotoVO.getHandlePhotoList()); + photoFeedbackDO.setType(2); + photoFeedbackDO.setCreateAt(nowDate); + photoFeedbackDO.setCreateBy(comActEasyPhotoVO.getUserId()); + int result = comActEasyPhotoFeedbackMapper.insert(photoFeedbackDO); + if (result > 0) { + return R.ok(); + } + return R.fail(); + } + } -- Gitblit v1.7.1