Browse Source

新建客户BUG处理

anderx 3 years ago
parent
commit
33bb2ea6c9

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

@@ -325,6 +325,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 		user.setTransferTime(now);
 		user.setUpdateTime(now);
 		user.setSignBills(0);
+		user.setNewChannel(0);
 		if(StringUtils.isNotBlank(in.getIntroduction()))user.setIntroduction(in.getIntroduction());
 		user.setMobile(in.getContactMobile());
 		user.setPassword(AFTConstants.INITIALPASSWORD);
@@ -378,7 +379,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 //			oi.setIndustry(in.getIndustry());
 			organizationIdentityMapper.insert(oi);
 		}
-		userMapper.insert(user);
+		userMapper.insertSelective(user);
 		UserNames un=new UserNames();
 		un.setUid(user.getId());
 		un.setName(user.getNickname());