From bd6229ebd9cb543a22944ecb1142fad92b675dce Mon Sep 17 00:00:00 2001 From: rk <94314517@qq.com> Date: 星期一, 13 十月 2025 14:26:25 +0800 Subject: [PATCH] bug 修复 --- server/services/src/main/java/com/doumee/service/business/impl/IdentityInfoServiceImpl.java | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/server/services/src/main/java/com/doumee/service/business/impl/IdentityInfoServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/IdentityInfoServiceImpl.java index dfa044c..fd591be 100644 --- a/server/services/src/main/java/com/doumee/service/business/impl/IdentityInfoServiceImpl.java +++ b/server/services/src/main/java/com/doumee/service/business/impl/IdentityInfoServiceImpl.java @@ -11,12 +11,14 @@ 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; @@ -51,7 +53,11 @@ @Autowired private MemberMapper memberMapper; @Autowired + private AliSmsService aliSmsService; + @Autowired private SystemDictDataBiz systemDictDataBiz; + @Autowired + private CategoryMapper categoryMapper; @Override @Transactional(rollbackFor = {BusinessException.class,Exception.class}) @@ -156,6 +162,7 @@ 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); @@ -467,22 +474,22 @@ memberMapper.update(new UpdateWrapper<Member>().lambda() .set(Member::getUpdateUser,user.getId()) .set(Member::getUpdateTime,date) + .set(Constants.equalsInteger(auditDTO.getAuditStatus(),Constants.ZERO),Member::getAutoReceiveStatus,Constants.ONE) .set(Constants.equalsInteger(identityInfo.getType(),Constants.ZERO),Member::getWorkerIdentity, auditDTO.getAuditStatus() ) .set(Constants.equalsInteger(identityInfo.getType(),Constants.ONE),Member::getDriverIdentity , auditDTO.getAuditStatus() ) .set(Constants.equalsInteger(identityInfo.getType(),Constants.TWO),Member::getChefIdentity , auditDTO.getAuditStatus() ) .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); } } -- Gitblit v1.9.3