zhangyuewww 3 anos atrás
pai
commit
6af3bfe953

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

@@ -48,10 +48,21 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
      * @return
      */
     public Page<IdentityAuthenticationInfo> selectIdentityAuthenticationInfo(IdentityAuthenticationInfo identityAuthenticationInfo) {
-        Page<IdentityAuthenticationInfo> recommendedIdentityAuthenticationInfoPage = this.selectPage(identityAuthenticationInfo.getQueryPage(), new EntityWrapper<IdentityAuthenticationInfo>()
-                .eq(IdentityAuthenticationInfo.QueryFiles.COMMON_ID,identityAuthenticationInfo.getCommonId())
-                .eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0)
-                .orderBy("update_date", false));
+        Wrapper<IdentityAuthenticationInfo> identityAuthenticationInfoWrapper = new EntityWrapper<IdentityAuthenticationInfo>();
+        //切换身份页面
+        if("1".equals(identityAuthenticationInfo.getFlag())){
+            identityAuthenticationInfoWrapper.eq("authentication_status_key","7")
+                    .eq(IdentityAuthenticationInfo.QueryFiles.COMMON_ID,identityAuthenticationInfo.getCommonId())
+                    .eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0)
+                    .orderBy("update_date", false);
+        }
+        //列表
+        else {
+            identityAuthenticationInfoWrapper .eq(IdentityAuthenticationInfo.QueryFiles.COMMON_ID,identityAuthenticationInfo.getCommonId())
+                    .eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0)
+                    .orderBy("update_date", false);
+        }
+        Page<IdentityAuthenticationInfo> recommendedIdentityAuthenticationInfoPage = this.selectPage(identityAuthenticationInfo.getQueryPage(),identityAuthenticationInfoWrapper);
         List<IdentityAuthenticationInfo> identityAuthenticationInfoList = recommendedIdentityAuthenticationInfoPage.getRecords();
         recommendedIdentityAuthenticationInfoPage.setRecords(identityAuthenticationInfoList);
         return recommendedIdentityAuthenticationInfoPage;