|
|
|
@ -66,7 +66,7 @@ public class PushEnterpriseController {
@@ -66,7 +66,7 @@ public class PushEnterpriseController {
|
|
|
|
|
public R save(@Valid @RequestBody PushEnterprise pushEnterprise) { |
|
|
|
|
if(iPushEnterpriseService.count(Wrappers.<PushEnterprise>lambdaQuery() |
|
|
|
|
.eq(PushEnterprise::getUserId, SecurityUtils.getUser().getId())) > 0) { |
|
|
|
|
throw new CheckedException("当前已经存在认证申请不能重复申请!"); |
|
|
|
|
throw new CheckedException("当前用户已经存在企业信息不能重复认证!"); |
|
|
|
|
} |
|
|
|
|
if (StrUtil.isBlank(pushEnterprise.getUserId())) pushEnterprise.setUserId(SecurityUtils.getUser().getId()); |
|
|
|
|
iPushEnterpriseService.save(pushEnterprise); |
|
|
|
|