|
@@ -97,6 +97,7 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
//如果是申请,判断是否重复申请
|
|
|
int companyAttestationCount = this.count(new QueryWrapper<MtCompanyAttestation>()
|
|
|
.eq("mt_company_id", companyAttestationRequest.getMtCompanyId())
|
|
|
+ .ne("is_certificated", ApiConstants.CompanyConstants.MAINTENANCE_FAIL)
|
|
|
);
|
|
|
if (companyAttestationCount > 0) {
|
|
|
return RestResponse.fail(ApiConstants.RESULT_ERROR, "当前公司已经申请过了请勿重复申请");
|