|
@@ -486,10 +486,13 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public String saveCompanyIdentity(IdentityAuthenticationInfo identityAuthenticationInfo) {
|
|
|
- IdentityAuthenticationInfo identityAuthenticationInfo1=this.selectById(identityAuthenticationInfo.getId());
|
|
|
+ if (identityAuthenticationInfo.getCompId() == null || identityAuthenticationInfo.getCompId().isEmpty()) {
|
|
|
+ identityAuthenticationInfo.setCompId(AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getCompId()) ;
|
|
|
+ }
|
|
|
+// IdentityAuthenticationInfo identityAuthenticationInfo1=this.selectById(identityAuthenticationInfo.getId());
|
|
|
CommonCompanyIdentity commonCompanyIdentity = new CommonCompanyIdentity();
|
|
|
- commonCompanyIdentity.setIdentityId(identityAuthenticationInfo1.getId());
|
|
|
- commonCompanyIdentity.setComId(identityAuthenticationInfo1.getCompId()!=null?identityAuthenticationInfo1.getCompId():identityAuthenticationInfo.getCompId());
|
|
|
+ commonCompanyIdentity.setIdentityId(identityAuthenticationInfo.getId());
|
|
|
+ commonCompanyIdentity.setComId(identityAuthenticationInfo.getCompId());
|
|
|
|
|
|
Boolean one = iCommonCompanyIdentityService.insert(commonCompanyIdentity);
|
|
|
//成功返回ok
|