|
@@ -91,7 +91,7 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
|
|
|
//获取公司信息,将公司信息设置为审核中状态
|
|
//获取公司信息,将公司信息设置为审核中状态
|
|
MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(companyAttestationRequest.getMtCompanyId());
|
|
MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(companyAttestationRequest.getMtCompanyId());
|
|
- if(maintenanceCompany == null){
|
|
|
|
|
|
+ if (maintenanceCompany == null) {
|
|
return RestResponse.fail(ApiConstants.RESULT_ERROR, "团队不存在不能发起认证");
|
|
return RestResponse.fail(ApiConstants.RESULT_ERROR, "团队不存在不能发起认证");
|
|
}
|
|
}
|
|
maintenanceCompany.setIsCertificated(ApiConstants.CompanyConstants.MAINTENANCE_WAIT_CERTIFICATE);
|
|
maintenanceCompany.setIsCertificated(ApiConstants.CompanyConstants.MAINTENANCE_WAIT_CERTIFICATE);
|
|
@@ -135,7 +135,7 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
MtCompanyAttestation mtCompanyAttestation = this.getById(companyAttestationRequest.getId());
|
|
MtCompanyAttestation mtCompanyAttestation = this.getById(companyAttestationRequest.getId());
|
|
//认证处理
|
|
//认证处理
|
|
MaintenanceCompany maintenanceCompany = auditHandle(mtCompanyAttestation, companyAttestationRequest,
|
|
MaintenanceCompany maintenanceCompany = auditHandle(mtCompanyAttestation, companyAttestationRequest,
|
|
- ApiConstants.CompanyConstants.MAINTENANCE_PASS);
|
|
|
|
|
|
+ ApiConstants.CompanyConstants.MAINTENANCE_FAIL);
|
|
this.updateById(mtCompanyAttestation);
|
|
this.updateById(mtCompanyAttestation);
|
|
maintenanceCompanyService.updateById(maintenanceCompany);
|
|
maintenanceCompanyService.updateById(maintenanceCompany);
|
|
return RestResponse.success(null, ApiConstants.RESULT_SUCCESS, "操作成功");
|
|
return RestResponse.success(null, ApiConstants.RESULT_SUCCESS, "操作成功");
|
|
@@ -174,12 +174,10 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
.eq(currentUserId != null, "customer_manager_id", currentUserId)
|
|
.eq(currentUserId != null, "customer_manager_id", currentUserId)
|
|
//通过审核状态筛选申请信息
|
|
//通过审核状态筛选申请信息
|
|
.eq("is_certificated", companyAttestationRequest.getIsCertificated())
|
|
.eq("is_certificated", companyAttestationRequest.getIsCertificated())
|
|
- .and(i -> i
|
|
|
|
- .like(StringUtils.isNotBlank(companyAttestationRequest.getQueryCondition()), "contacts_name",
|
|
|
|
- companyAttestationRequest.getQueryCondition())
|
|
|
|
|
|
+ .and(StringUtils.isNotBlank(companyAttestationRequest.getQueryCondition()), i -> i
|
|
|
|
+ .like("contacts_name", companyAttestationRequest.getQueryCondition())
|
|
.or()
|
|
.or()
|
|
- .like(StringUtils.isNotBlank(companyAttestationRequest.getQueryCondition()), "contacts_tel",
|
|
|
|
- companyAttestationRequest.getQueryCondition())
|
|
|
|
|
|
+ .like("contacts_tel", companyAttestationRequest.getQueryCondition())
|
|
)
|
|
)
|
|
);
|
|
);
|
|
List<CompanyAttestationResponse> companyAttestationResponseList = new ArrayList<>();
|
|
List<CompanyAttestationResponse> companyAttestationResponseList = new ArrayList<>();
|