Ver código fonte

[积分][修改]:用户检查顺序修改

release_toaliyun_real
Stormeye Wu 6 anos atrás
pai
commit
fd9ae54367
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java Ver arquivo

@@ -198,11 +198,11 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
public WxCreditHistory saveOrUpdate(WxCreditHistory record) { public WxCreditHistory saveOrUpdate(WxCreditHistory record) {
WxCUser wxCUser = wxCUserMapper.selectByPrimaryKey(record.getCUserId()); WxCUser wxCUser = wxCUserMapper.selectByPrimaryKey(record.getCUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectByPrimaryKey(record.getCUserId());
if (wxCUser == null) { if (wxCUser == null) {
//验证此用户是否存在 //验证此用户是否存在
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);
} }
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectByPrimaryKey(record.getCUserId());
if(wxCUserBasicInfo == null) { if(wxCUserBasicInfo == null) {
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
} }


Carregando…
Cancelar
Salvar