zhangyuewww %!s(int64=3) %!d(string=hai) anos
pai
achega
94a0c90239

+ 14 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/IdentityAuthenticationInfoServiceImpl.java

@@ -216,12 +216,25 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
             if (identityAuthenticationInfo1==null){
                 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 {
             throw new AppServiceException(ExceptionDefinition.UNAUTHENTICATED_GRAIN_MERCHANT_IDENTITY);
         }
-        return identityAuthenticationInfo;
     }
 
     /**