|
@@ -91,6 +91,9 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
|
|
|
//获取公司信息,将公司信息设置为审核中状态
|
|
|
MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(companyAttestationRequest.getMtCompanyId());
|
|
|
+ if(maintenanceCompany == null){
|
|
|
+ return RestResponse.fail(ApiConstants.RESULT_ERROR, "团队不存在不能发起认证");
|
|
|
+ }
|
|
|
maintenanceCompany.setIsCertificated(ApiConstants.CompanyConstants.MAINTENANCE_WAIT_CERTIFICATE);
|
|
|
//设置公司审核信息为审核中
|
|
|
mtCompanyAttestation.setIsCertificated(ApiConstants.CompanyConstants.MAINTENANCE_WAIT_CERTIFICATE);
|
|
@@ -220,6 +223,15 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
return RestResponse.success(applyPageResponse, ApiConstants.RESULT_SUCCESS, "获取公司申请信息成功");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public RestResponse getAuditResult(CompanyAttestationRequest companyAttestationRequest) {
|
|
|
+ //获取团队审核信息
|
|
|
+ MtCompanyAttestation mtCompanyAttestation = this.getOne(new QueryWrapper<MtCompanyAttestation>()
|
|
|
+ .eq("mt_company_id", companyAttestationRequest.getMtCompanyId())
|
|
|
+ );
|
|
|
+ return RestResponse.success(mtCompanyAttestation, ApiConstants.RESULT_SUCCESS, "获取申请信息成功");
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param
|
|
|
* @return
|