前端-胡立永 1 week ago
parent
commit
0f7d5fe5ba
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/AuthenticationServiceImpl.java

+ 4
- 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/AuthenticationServiceImpl.java View File

@ -84,7 +84,7 @@ public class AuthenticationServiceImpl implements AuthenticationService {
if(null != one){ if(null != one){
if(!"1".equals(one.getStatus())){ if(!"1".equals(one.getStatus())){
employAuthenticationPerson.setId(one.getId()); employAuthenticationPerson.setId(one.getId());
employAuthenticationPerson.setStatus("0");
employAuthenticationPerson.setStatus("1");
employAuthenticationPersonService.updateById(employAuthenticationPerson); employAuthenticationPersonService.updateById(employAuthenticationPerson);
message = "个人实名修改成功!"; message = "个人实名修改成功!";
}else { }else {
@ -92,6 +92,7 @@ public class AuthenticationServiceImpl implements AuthenticationService {
} }
}else { }else {
employAuthenticationPerson.setUserId(hanHaiMember.getId()); employAuthenticationPerson.setUserId(hanHaiMember.getId());
employAuthenticationPerson.setStatus("1");
boolean result = employAuthenticationPersonService.save(employAuthenticationPerson); boolean result = employAuthenticationPersonService.save(employAuthenticationPerson);
message = "个人实名添加成功!"; message = "个人实名添加成功!";
} }
@ -140,7 +141,7 @@ public class AuthenticationServiceImpl implements AuthenticationService {
if(null != one){ if(null != one){
if(!"1".equals(one.getStatus())){ if(!"1".equals(one.getStatus())){
employAuthenticationCompany.setId(one.getId()); employAuthenticationCompany.setId(one.getId());
employAuthenticationCompany.setStatus("0");
employAuthenticationCompany.setStatus("1");
employAuthenticationCompanyService.updateById(employAuthenticationCompany); employAuthenticationCompanyService.updateById(employAuthenticationCompany);
message = "企业实名修改成功!"; message = "企业实名修改成功!";
}else { }else {
@ -148,6 +149,7 @@ public class AuthenticationServiceImpl implements AuthenticationService {
} }
}else { }else {
employAuthenticationCompany.setUserId(hanHaiMember.getId()); employAuthenticationCompany.setUserId(hanHaiMember.getId());
employAuthenticationCompany.setStatus("1");
boolean result = employAuthenticationCompanyService.save(employAuthenticationCompany); boolean result = employAuthenticationCompanyService.save(employAuthenticationCompany);
message = "企业实名添加成功!"; message = "企业实名添加成功!";
} }


Loading…
Cancel
Save