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