Browse Source

客户管理

wanghui 8 years ago
parent
commit
08c4d0c18d

+ 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);