|
|
@ -46,6 +46,12 @@ public class EnterpriseCertificationController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/enterpriseCertificationDetails") |
|
|
|
|
|
|
|
@ApiOperation(value = "企业认证详情", response = EnterpriseCertification.class) |
|
|
|
|
|
|
|
public R enterpriseCertificationDetails(@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
|
|
|
|
|
return service.enterpriseCertificationDetails(id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/findById") |
|
|
|
@PostMapping("/findById") |
|
|
|
@ApiOperation(value = "查询详情", response = EnterpriseCertification.class) |
|
|
|
@ApiOperation(value = "查询详情", response = EnterpriseCertification.class) |
|
|
|
public R findById(@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
|
public R findById(@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
@ -56,7 +62,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) Integer 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); |
|
|
@ -87,12 +93,14 @@ 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) Integer auditStatus, @ApiParam(name = "id", value = "主键", required = true) Integer id, HttpServletRequest request) { |
|
|
|
public R informationAudit(@ApiParam(name = "auditStatus", value = "审核状态(2.通过,3.不通过)", required = true)@RequestParam Integer auditStatus, |
|
|
|
|
|
|
|
@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id, HttpServletRequest request) { |
|
|
|
String accountId = TokenUtils.getIdByJwtToken(request); |
|
|
|
String accountId = TokenUtils.getIdByJwtToken(request); |
|
|
|
|
|
|
|
|
|
|
|
EnterpriseCertification enterpriseCertification = new EnterpriseCertification(); |
|
|
|
EnterpriseCertification enterpriseCertification = new EnterpriseCertification(); |
|
|
|
enterpriseCertification.setAccountId(Integer.valueOf(accountId)); |
|
|
|
enterpriseCertification.setAccountId(Integer.valueOf(accountId)); |
|
|
|
enterpriseCertification.setAuditStatus(auditStatus); |
|
|
|
enterpriseCertification.setAuditStatus(auditStatus); |
|
|
|
|
|
|
|
enterpriseCertification.setId(id); |
|
|
|
switch (auditStatus) { |
|
|
|
switch (auditStatus) { |
|
|
|
case 2: |
|
|
|
case 2: |
|
|
|
//通过:更改认证状态 认证状态(0默认未认证 1.认证中2.已认证)
|
|
|
|
//通过:更改认证状态 认证状态(0默认未认证 1.认证中2.已认证)
|
|
|
|