完善企业认证部分

dev2
WeiRan 2024-08-30 21:54:14 +08:00
parent 2dea1ec7ec
commit 47c1bc80ad
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
}
Long userid = loginUser.getUserid();
User user = userService.getById(userid);
if (user.getIsCompanyid()==null || user.getIsCompanyid()==0){
if (user.getIsCompanyid()!=null || user.getIsCompanyid()!=0){
throw new RuntimeException("已绑定,若要重新绑定,请先解除绑定");
}
@ -64,6 +64,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
companyListReq.setRegistrantDate(registrantDate);
companyListReq.setReviewStatus(0);
companyListReq.setCompanyMoney(BigDecimal.valueOf(0.0));
Company company = Company.companyList(companyListReq);
this.save(company);
Integer companyId = company.getCompanyId();