|
|
@@ -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;
|
|
|
}
|