|
|
|
@ -207,11 +207,6 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
userCompanyEntity.setCheckStatus(3+"");
|
|
|
|
|
userRegisterEntity.setCheckStatus(3+"");
|
|
|
|
|
}
|
|
|
|
|
//是否存在相同企业
|
|
|
|
|
UserCompanyEntity one = userCompanyService.getOne(new QueryWrapper<UserCompanyEntity>().eq("companyName", registComPerResponse.getCompanyName()).or().eq("creditNum", registComPerResponse.getCreditNum()));
|
|
|
|
|
if(one != null){
|
|
|
|
|
return ResultVOUtils.error(500,"已存在该企业!");
|
|
|
|
|
}else{
|
|
|
|
|
//插入资质证书
|
|
|
|
|
for (UserCertEntity userCertEntity : registComPerResponse.getList()) {
|
|
|
|
|
userCertService.saveOrUpdate(userCertEntity);
|
|
|
|
@ -220,8 +215,6 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
userCompanyService.update(userCompanyEntity);
|
|
|
|
|
// userPersonService.update(userPersonEntity);
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|