|
@@ -66,6 +66,8 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
MtCompanyAttestation mtCompanyAttestation = this.getById(companyAttestationRequest.getId());
|
|
|
//设置认证时间
|
|
|
mtCompanyAttestation.setDealTime(LocalDateTime.now());
|
|
|
+ //设置认证理由
|
|
|
+ mtCompanyAttestation.setCheckFeedBack(companyAttestationRequest.getCheckFeedBack());
|
|
|
MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(companyId);
|
|
|
if(mtCompanyAttestation != null && maintenanceCompany != null){
|
|
|
//设置认证信息状态为认证通过
|
|
@@ -94,6 +96,10 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
public RestResponse auditFail(CompanyAttestationRequest companyAttestationRequest) {
|
|
|
MtCompanyAttestation mtCompanyAttestation = this.getById(companyAttestationRequest.getId());
|
|
|
MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(companyAttestationRequest.getMtCompanyId());
|
|
|
+ //设置认证时间
|
|
|
+ mtCompanyAttestation.setDealTime(LocalDateTime.now());
|
|
|
+ //设置认证理由
|
|
|
+ mtCompanyAttestation.setCheckFeedBack(companyAttestationRequest.getCheckFeedBack());
|
|
|
if(mtCompanyAttestation != null && maintenanceCompany != null){
|
|
|
//设置认证信息状态为认证失败
|
|
|
mtCompanyAttestation.setIsCertificated(ApiConstants.CompanyConstants.MAINTENANCE_FAIL);
|