|
@@ -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;
|