|
|
|
@ -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") |
|
|
|
|
@ApiOperation(value = "查询详情", response = EnterpriseCertification.class) |
|
|
|
|
public R findById(@ApiParam(name = "id", value = "主键", required = true) @RequestParam Integer id) { |
|
|
|
@ -56,7 +62,7 @@ public class EnterpriseCertificationController { |
|
|
|
|
|
|
|
|
|
@PostMapping("/enterpriseCertificationStatus") |
|
|
|
|
@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);*/ |
|
|
|
|
QueryWrapper<EnterpriseCertification> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("open_id", openId); |
|
|
|
@ -87,12 +93,14 @@ public class EnterpriseCertificationController { |
|
|
|
|
|
|
|
|
|
@PostMapping("/informationAudit") |
|
|
|
|
@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); |
|
|
|
|
|
|
|
|
|
EnterpriseCertification enterpriseCertification = new EnterpriseCertification(); |
|
|
|
|
enterpriseCertification.setAccountId(Integer.valueOf(accountId)); |
|
|
|
|
enterpriseCertification.setAuditStatus(auditStatus); |
|
|
|
|
enterpriseCertification.setId(id); |
|
|
|
|
switch (auditStatus) { |
|
|
|
|
case 2: |
|
|
|
|
//通过:更改认证状态 认证状态(0默认未认证 1.认证中2.已认证)
|
|
|
|
|