|  |  | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Utils; | 
 |  |  | import com.doumee.dao.business.CategoryMapper; | 
 |  |  | import com.doumee.dao.business.IdentityInfoMapper; | 
 |  |  | import com.doumee.dao.business.MemberMapper; | 
 |  |  | import com.doumee.dao.business.model.IdentityInfo; | 
 |  |  | import com.doumee.dao.business.model.Member; | 
 |  |  | import com.doumee.dao.dto.AuditDTO; | 
 |  |  | import com.doumee.dao.system.model.SystemUser; | 
 |  |  | import com.doumee.service.business.AliSmsService; | 
 |  |  | import com.doumee.service.business.IdentityInfoService; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private MemberMapper memberMapper; | 
 |  |  |     @Autowired | 
 |  |  |     private AliSmsService aliSmsService; | 
 |  |  |     @Autowired | 
 |  |  |     private SystemDictDataBiz systemDictDataBiz; | 
 |  |  |     @Autowired | 
 |  |  |     private CategoryMapper categoryMapper; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     @Transactional(rollbackFor = {BusinessException.class,Exception.class}) | 
 |  |  | 
 |  |  |         if(!Constants.equalsInteger(model.getAuditStatus(),Constants.THREE)){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"当前状态无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         identityInfo.setAuditRemark(""); | 
 |  |  |         identityInfo.setUpdateTime(new Date()); | 
 |  |  |         identityInfo.setAuditStatus(Constants.ONE); | 
 |  |  |         identityInfoMapper.updateById(identityInfo); | 
 |  |  | 
 |  |  |                 .eq(Member::getId,identityInfo.getMemberId()) | 
 |  |  |         ); | 
 |  |  |  | 
 |  |  |         try{ | 
 |  |  |             //发送微信通知 | 
 |  |  |             if(StringUtils.isNotBlank(member.getOpenid())){ | 
 |  |  |                 sendWxMessage.identityInfoMessage(member.getOpenid(),identityInfo); | 
 |  |  |             } | 
 |  |  |         }catch (WxErrorException wxErrorException){ | 
 |  |  |  | 
 |  |  |         //发送微信通知 | 
 |  |  |         if(StringUtils.isNotBlank(member.getOpenid())){ | 
 |  |  |             sendWxMessage.identityInfoMessage(member.getOpenid(),identityInfo); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         //短信通知 | 
 |  |  |         aliSmsService.businessSendSms(Constants.smsContent.authentication.getKey(), | 
 |  |  |                 member.getTelephone(),null,null, | 
 |  |  |                 identityInfo,categoryMapper); | 
 |  |  |  | 
 |  |  |     } | 
 |  |  | } |