|
|
@@ -2371,21 +2371,25 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
public int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject,String introduction) {
|
|
|
OrganizationIdentity oi =new OrganizationIdentity();
|
|
|
oi.setUid(uid);
|
|
|
- oi.setLocationProvince(province);
|
|
|
- oi.setLocationCity(city);
|
|
|
- oi.setLocationArea(area);
|
|
|
- if (businessScope!=null){
|
|
|
- OrganizationIdentity use=organizationIdentityMapper.selectOrgIdentityByUserId(uid);
|
|
|
- updateBusinessScope(uid,businessScope,use.getBusinessScope(),new Date());
|
|
|
- }
|
|
|
- OrganizationIdentity use=organizationIdentityMapper.selectOrgIdentityByUserId(uid);
|
|
|
- oi.setBusinessScope(businessScope);
|
|
|
- oi.setIntendedProject(intendedProject);
|
|
|
- User user=new User();
|
|
|
- user.setId(uid);
|
|
|
- user.setIntroduction(introduction);
|
|
|
- userMapper.updateByPrimaryKeySelective(user);
|
|
|
- return organizationIdentityMapper.updateServiceByUid(oi);
|
|
|
+ if (province!=null ||city !=null ||area!=null|| businessScope!=null ||intendedProject!=null){
|
|
|
+ if(province!=null)oi.setLocationProvince(province);
|
|
|
+ if(city!=null)oi.setLocationCity(city);
|
|
|
+ if(area!=null)oi.setLocationArea(area);
|
|
|
+ if (businessScope!=null){
|
|
|
+ OrganizationIdentity use=organizationIdentityMapper.selectOrgIdentityByUserId(uid);
|
|
|
+ updateBusinessScope(uid,businessScope,use.getBusinessScope(),new Date());
|
|
|
+ oi.setBusinessScope(businessScope);
|
|
|
+ }
|
|
|
+ if(intendedProject!=null)oi.setIntendedProject(intendedProject);
|
|
|
+ organizationIdentityMapper.updateServiceByUid(oi);
|
|
|
+ }
|
|
|
+ if (introduction!=null){
|
|
|
+ User user=new User();
|
|
|
+ user.setId(uid);
|
|
|
+ user.setIntroduction(introduction);
|
|
|
+ userMapper.updateByPrimaryKeySelective(user);
|
|
|
+ }
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
@Override
|