|
@@ -216,12 +216,25 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
if (identityAuthenticationInfo1==null){
|
|
if (identityAuthenticationInfo1==null){
|
|
throw new AppServiceException(ExceptionDefinition.IDENTITY_IS_BEING_AUDITED);
|
|
throw new AppServiceException(ExceptionDefinition.IDENTITY_IS_BEING_AUDITED);
|
|
}
|
|
}
|
|
|
|
+ IdentityAuthenticationInfo identityAuthenticationInfos =
|
|
|
|
+ this.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
|
|
|
|
+ .eq(IdentityAuthenticationInfo.QueryFiles.COMMON_ID, commonId)
|
|
|
|
+ .eq("authentication_status_key","7")
|
|
|
|
+ .eq("default_flag","1")
|
|
|
|
+ .eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0));
|
|
|
|
+ //有默认
|
|
|
|
+ if (identityAuthenticationInfos != null){
|
|
|
|
+ return identityAuthenticationInfos;
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ return identityAuthenticationInfo1;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
//粮商不存在
|
|
//粮商不存在
|
|
else {
|
|
else {
|
|
throw new AppServiceException(ExceptionDefinition.UNAUTHENTICATED_GRAIN_MERCHANT_IDENTITY);
|
|
throw new AppServiceException(ExceptionDefinition.UNAUTHENTICATED_GRAIN_MERCHANT_IDENTITY);
|
|
}
|
|
}
|
|
- return identityAuthenticationInfo;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|