소스 검색

Merge remote-tracking branch 'origin/dev' into test

wanghui 8 년 전
부모
커밋
2cb856ceff
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

+ 1 - 0
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -204,6 +204,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 		user.setIsMember(0);
 		passwordUtil.encryptPassword(user);
 		if(type == 0){
+			if(userMapper.checkUser("", "", contactMobile, type).size()>0) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_EXIST, name,""));
 			UserIdentity ui = new UserIdentity();
 			ui.setId(identifyId);
 			ui.setUid(uid);