|
|
|
@ -246,10 +246,14 @@ public class RegisterController {
|
|
|
|
|
if (StrUtil.isNotBlank(company_check) && company_check.equals("1")) {
|
|
|
|
|
//新用户注册时根据往来单位字典进行企业名称校验
|
|
|
|
|
CustomerInfoEntity customerInfoEntity = customerInfoService.selectById(userRegisterEntity.getCompanyId());
|
|
|
|
|
if (customerInfoEntity != null) {
|
|
|
|
|
if (customerInfoEntity != null ) {
|
|
|
|
|
return ResultVOUtils.error(500, "该企业已被注册!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
UserRegisterEntity userRegisterEntity2 = userRegisterService.selectByCname(userRegisterEntity.getCompanyName());
|
|
|
|
|
if (userRegisterEntity2 !=null ) {
|
|
|
|
|
return ResultVOUtils.error(500, "该企业已被注册!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
userRegisterEntity.setRegisterTime(DateUtil.getDateTime());
|
|
|
|
|
userRegisterEntity.setCheckType(0);//未审核
|
|
|
|
|