|
|
@ -39,16 +39,16 @@ public class CompanyServiceImpl implements CompanyService { |
|
|
|
//如果存在则修改信息 |
|
|
|
if(null != company){ |
|
|
|
if(!"1".equals(company.getStatus())){ |
|
|
|
company.setId(company.getId()); |
|
|
|
company.setStatus("0"); |
|
|
|
carrentCompanyService.updateById(company); |
|
|
|
carrentCompany.setId(company.getId()); |
|
|
|
carrentCompany.setStatus("0"); |
|
|
|
carrentCompanyService.updateById(carrentCompany); |
|
|
|
message = "企业实名注册修改成功!"; |
|
|
|
}else { |
|
|
|
message = "审核已通过,不能修改!"; |
|
|
|
} |
|
|
|
}else { |
|
|
|
company.setUserId(hanHaiMember.getId()); |
|
|
|
boolean result = carrentCompanyService.save(company); |
|
|
|
carrentCompany.setUserId(hanHaiMember.getId()); |
|
|
|
boolean result = carrentCompanyService.save(carrentCompany); |
|
|
|
message = "企业实名注册添加成功!"; |
|
|
|
} |
|
|
|
return Result.OK(message); |
|
|
|