| | |
| | | import com.panzhihua.common.utlis.*; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import com.panzhihua.service_community.entity.SysUser; |
| | | import com.panzhihua.service_community.model.dos.*; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.entity.ComPbCheckUnit; |
| | | import com.panzhihua.service_community.model.dos.ComActActivityDO; |
| | | import com.panzhihua.service_community.model.dos.ComActDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleBrowseDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleCommentDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleCommentReplyDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleFabulousDO; |
| | | import com.panzhihua.service_community.model.dos.ComActNeighborCircleTopicDO; |
| | | import com.panzhihua.service_community.model.dos.ComPbMemberDO; |
| | | import com.panzhihua.service_community.service.ComActNeighborCircleBrowseService; |
| | | import com.panzhihua.service_community.service.ComActNeighborCircleService; |
| | | import com.panzhihua.service_community.service.ComActNeighborCircleTopicService; |
| | |
| | | if (StringUtils.isNotEmpty(addNeighborCircleAppDTO.getPhone())) { |
| | | neighborCircleDO.setReleasePhone(addNeighborCircleAppDTO.getPhone()); |
| | | } |
| | | |
| | | //判断当前邻里圈是否需要审核 |
| | | if(addNeighborCircleAppDTO.getIsExamine().equals(AddComActNeighborCircleAppDTO.isExamine.no)){ |
| | | //当邻里圈不需要审核才进入自动审核 |
| | |
| | | int result=this.baseMapper.updateById(comActNeighborCircleDO); |
| | | if(result>0){ |
| | | ComActNeighborCircleDO comActNeighborCircleDO1=this.baseMapper.selectById(comActNeighborCircleDO.getId()); |
| | | SysUser sysUser=sysUserDao.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId,comActNeighborCircleDO1.getReleaseId())); |
| | | if(comActNeighborCircleDO.getOrderStatus()!=null){ |
| | | SysUser sysUser=sysUserDao.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId,comActNeighborCircleDO1.getReleaseId())); |
| | | if(sysUser!=null) { |
| | | try { |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | |
| | | } |
| | | } |
| | | if(comActNeighborCircleDO.getSolveStatus()==3){ |
| | | SysUser sysUser=sysUserDao.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId,comActNeighborCircleDO1.getReleaseId())); |
| | | if(sysUser!=null) { |
| | | try { |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | |
| | | } |
| | | } |
| | | } |
| | | if(comActNeighborCircleDO.getSolveStatus()==4){ |
| | | SysUser sysUser=sysUserDao.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId,comActNeighborCircleDO1.getSolveId())); |
| | | if(sysUser!=null) { |
| | | try { |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | if (comActNeighborCircleDO1.getBelongType()==2){ |
| | | WxUtil.sendLongTimeTemplate(sysUser.getOpenid(),util.getAccessToken(),"你有一条新的评价信息",comActNeighborCircleDO1.getReleaseContent().length()>10?comActNeighborCircleDO1.getReleaseContent().substring(0,10)+"..":comActNeighborCircleDO1.getReleaseContent(),"packageB/pages/partySecond/problemDetails/index?id="+comActNeighborCircleDO.getId()+"&type=888"); |
| | | } |
| | | if (comActNeighborCircleDO1.getBelongType()==3){ |
| | | WxUtil.sendLongTimeTemplate(sysUser.getOpenid(),util.getAccessToken(),"你有一条新的评价信息",comActNeighborCircleDO1.getReleaseContent().length()>10?comActNeighborCircleDO1.getReleaseContent().substring(0,10)+"..":comActNeighborCircleDO1.getReleaseContent(),"packageB/pages/partySecond/problemDetails/index?id="+comActNeighborCircleDO.getId()+"&type=777"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | return R.fail(); |