Browse Source

开单BUG、客户资料维护修改 BUG修复

anderx 7 years ago
parent
commit
7fa146c73c

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

@@ -292,11 +292,6 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 		User user = new User();
 		try {
 			BeanUtilsExt.copyProperties(oi, bo);
-			if(null==oi.getYearSalesAmount())oi.setYearSalesAmount(new BigDecimal(0));
-			if(null==oi.getLastYearResearchAmount())oi.setLastYearResearchAmount(new BigDecimal(0));
-			if(null==oi.getAssets())oi.setAssets(new BigDecimal(0));
-			if(null==oi.getRegisteredCapital())oi.setRegisteredCapital(new BigDecimal(0));
-			if(null==oi.getEnterpriseScale())oi.setEnterpriseScale(0);
 			user.setId(bo.getUid());
 			user.setSocietyTag(bo.getSocietyTag());
 			user.setCompanyLogoUrl(bo.getCompanyLogoUrl());
@@ -310,7 +305,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 		} catch (IllegalAccessException |InvocationTargetException e) {
 			e.printStackTrace();
 		} 
-		organizationIdentityMapper.updateByPrimaryKeySelective(oi);
+		organizationIdentityMapper.updateByPrimaryKey(oi);
 		userMapper.updateByPrimaryKeySelective(user);
 		return 1;
 	}