瀏覽代碼

新建客户BUG处理

anderx 3 年之前
父節點
當前提交
33bb2ea6c9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

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