完善企业认证部分
parent
2dea1ec7ec
commit
47c1bc80ad
|
@ -54,7 +54,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
||||||
}
|
}
|
||||||
Long userid = loginUser.getUserid();
|
Long userid = loginUser.getUserid();
|
||||||
User user = userService.getById(userid);
|
User user = userService.getById(userid);
|
||||||
if (user.getIsCompanyid()==null || user.getIsCompanyid()==0){
|
if (user.getIsCompanyid()!=null || user.getIsCompanyid()!=0){
|
||||||
throw new RuntimeException("已绑定,若要重新绑定,请先解除绑定");
|
throw new RuntimeException("已绑定,若要重新绑定,请先解除绑定");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
||||||
companyListReq.setRegistrantDate(registrantDate);
|
companyListReq.setRegistrantDate(registrantDate);
|
||||||
companyListReq.setReviewStatus(0);
|
companyListReq.setReviewStatus(0);
|
||||||
companyListReq.setCompanyMoney(BigDecimal.valueOf(0.0));
|
companyListReq.setCompanyMoney(BigDecimal.valueOf(0.0));
|
||||||
|
|
||||||
Company company = Company.companyList(companyListReq);
|
Company company = Company.companyList(companyListReq);
|
||||||
this.save(company);
|
this.save(company);
|
||||||
Integer companyId = company.getCompanyId();
|
Integer companyId = company.getCompanyId();
|
||||||
|
|
Loading…
Reference in New Issue