| | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.dtos.partybuilding.NewFightIntegral; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ActivityAnalysisVO; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import com.panzhihua.common.service.partybuilding.NewStriveForFeign; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.util.ObjectUtils; |
| | |
| | | return communityService.detailMicroWish(id, userId); |
| | | } |
| | | |
| | | |
| | | @Resource |
| | | private NewStriveForFeign newStriveForFeign; |
| | | |
| | | @ApiOperation(value = "审核、分配、反馈心愿") |
| | | @PutMapping("putmicrowish") |
| | | public R putlMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO) { |
| | |
| | | } |
| | | } |
| | | |
| | | // if (type.equals(1)) {// 审核通过给用户增加积分 |
| | | if (type.equals(1)) {// 审核通过给用户增加积分 |
| | | //以前的逻辑 |
| | | // communityService.addIntegralTradeAdmin( |
| | | // new AddComActIntegralUserDTO(id, AddComActIntegralUserDTO.integralType.fbwxy, |
| | | // this.getCommunityId(), comActMicroWishVO1.getSponsorId())); |
| | | // if (R.isOk(userResult)) { |
| | | // String openid = userResult.getData().toString(); |
| | | // WxXCXTempSend util = new WxXCXTempSend(); |
| | | // R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | // try { |
| | | // WxUtil.sendSubscribeSHZT(openid, util.getAccessToken(), "微心愿", |
| | | // DateUtils.format(comActMicroWishVO1.getExamineAt(), DateUtils.ymdhms_format), |
| | | // "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | // } catch (Exception e) { |
| | | // log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | |
| | | // 2023/11/20 新逻辑 |
| | | NewFightIntegral integral=new NewFightIntegral(); |
| | | integral.setRemark("微心愿上传通过审核"); |
| | | if(comActMicroWishVO.getCommunityId()<=0) |
| | | { |
| | | integral.setCommunityId(getCommunityId()+""); |
| | | } |
| | | else |
| | | { |
| | | integral.setCommunityId(comActMicroWishVO.getCommunityId()+""); |
| | | } |
| | | integral.setType("18"); |
| | | integral.setUserId(comActMicroWishVO.getSponsorId()+""); |
| | | newStriveForFeign.upIntegral(integral); |
| | | |
| | | |
| | | |
| | | |
| | | if (R.isOk(userResult)) { |
| | | String openid = userResult.getData().toString(); |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | R<SysTemplateConfigVO> sysTemplateConfigVO=userService.selectTemplate(this.getAreaCode(),4); |
| | | try { |
| | | WxUtil.sendSubscribeSHZT(openid, util.getAccessToken(), "微心愿", |
| | | DateUtils.format(comActMicroWishVO1.getExamineAt(), DateUtils.ymdhms_format), |
| | | "审核通过",sysTemplateConfigVO.getData().getTemplateId()); |
| | | } catch (Exception e) { |
| | | log.error("消息推送失败,失败原因:" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | if (type.equals(1)) {// 审核通过给用户增加积分 |
| | | communityService.addIntegralTradeAdmin( |
| | | new AddComActIntegralUserDTO(id, AddComActIntegralUserDTO.integralType.fbssp, |
| | | this.getCommunityId(), comActEasyPhotoVO1.getSponsorId())); |
| | | // communityService.addIntegralTradeAdmin( |
| | | // new AddComActIntegralUserDTO(id, AddComActIntegralUserDTO.integralType.fbssp, |
| | | // this.getCommunityId(), comActEasyPhotoVO1.getSponsorId())); |
| | | |
| | | // 2023/11/20 新逻辑 |
| | | NewFightIntegral integral=new NewFightIntegral(); |
| | | integral.setRemark("微心愿上传通过审核"); |
| | | if(comActEasyPhotoVO.getCommunityId()<=0) |
| | | { |
| | | integral.setCommunityId(getCommunityId()+""); |
| | | } |
| | | else |
| | | { |
| | | integral.setCommunityId(comActEasyPhotoVO.getCommunityId()+""); |
| | | } |
| | | integral.setType("18"); |
| | | integral.setUserId(comActEasyPhotoVO.getSponsorId()+""); |
| | | newStriveForFeign.upIntegral(integral); |
| | | |
| | | |
| | | // 审核通过发送订阅消息给用户 |
| | | if (R.isOk(userResult)) { |