|
|
@ -35,7 +35,6 @@ public class EnterpriseCertificationController { |
|
|
|
public EnterpriseCertificationService service; |
|
|
|
public EnterpriseCertificationService service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 由前台申请认证后才有后台认证记录,认证状态有 待审核、已通过、未驳回三种状态,没有未提交这种状态 |
|
|
|
* 由前台申请认证后才有后台认证记录,认证状态有 待审核、已通过、未驳回三种状态,没有未提交这种状态 |
|
|
|
* |
|
|
|
* |
|
|
@ -65,7 +64,7 @@ public class EnterpriseCertificationController { |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/enterpriseCertificationStatus") |
|
|
|
@PostMapping("/enterpriseCertificationStatus") |
|
|
|
@ApiOperation(value = "查询企业当前认证状态", response = EnterpriseCertification.class) |
|
|
|
@ApiOperation(value = "查询企业当前认证状态", response = EnterpriseCertification.class) |
|
|
|
public R enterpriseCertificationStatus(@ApiParam(name = "openId", value = "微信openId", required = true)@RequestParam String openId) { |
|
|
|
public R enterpriseCertificationStatus(@ApiParam(name = "openId", value = "微信openId", required = true) @RequestParam String openId) { |
|
|
|
/*String accountId = TokenUtils.getIdByJwtToken(request);*/ |
|
|
|
/*String accountId = TokenUtils.getIdByJwtToken(request);*/ |
|
|
|
QueryWrapper<EnterpriseCertification> queryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<EnterpriseCertification> queryWrapper = new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("open_id", openId); |
|
|
|
queryWrapper.eq("open_id", openId); |
|
|
@ -79,7 +78,7 @@ public class EnterpriseCertificationController { |
|
|
|
public R save(@RequestBody @ApiParam(name = "企业实名认证信息记录对象", value = "传入json格式", required = true) EnterpriseCertification enterpriseCertification, HttpServletRequest request) { |
|
|
|
public R save(@RequestBody @ApiParam(name = "企业实名认证信息记录对象", value = "传入json格式", required = true) EnterpriseCertification enterpriseCertification, HttpServletRequest request) { |
|
|
|
String accountId = TokenUtils.getIdByJwtToken(request); |
|
|
|
String accountId = TokenUtils.getIdByJwtToken(request); |
|
|
|
enterpriseCertification.setAccountId(Integer.valueOf(accountId)); |
|
|
|
enterpriseCertification.setAccountId(Integer.valueOf(accountId)); |
|
|
|
if (!ObjectUtils.isEmpty(service.checkWhetherItExists(enterpriseCertification.getCompanyName(), null, enterpriseCertification.getOpenId()))) { |
|
|
|
if (!ObjectUtils.isEmpty(service.checkWhetherItExists(enterpriseCertification.getCompanyName(), null, null))) { |
|
|
|
throw new RuntimeException("企业名称已存在"); |
|
|
|
throw new RuntimeException("企业名称已存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
boolean addState = service.save(enterpriseCertification); |
|
|
|
boolean addState = service.save(enterpriseCertification); |
|
|
@ -97,10 +96,9 @@ public class EnterpriseCertificationController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/informationAudit") |
|
|
|
@PostMapping("/informationAudit") |
|
|
|
@ApiOperation(value = "信息审核", response = EnterpriseCertification.class) |
|
|
|
@ApiOperation(value = "信息审核", response = EnterpriseCertification.class) |
|
|
|
public R informationAudit(@ApiParam(name = "auditStatus", value = "审核状态(2.通过,3.不通过)", required = true)@RequestParam Integer auditStatus, |
|
|
|
public R informationAudit(@ApiParam(name = "auditStatus", value = "审核状态(2.通过,3.不通过)", required = true) @RequestParam Integer auditStatus, |
|
|
|
@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
|
@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
|
// String accountId = TokenUtils.getIdByJwtToken(request);
|
|
|
|
// String accountId = TokenUtils.getIdByJwtToken(request);
|
|
|
|
|
|
|
|
|
|
|
|