From 611e8f7f1986e96980712a083d06b7cfe45f928c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 16 十月 2024 11:03:58 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
index 355bb0b..3196d04 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
@@ -1506,7 +1506,7 @@
 
             //鍦ㄥ洯闀挎湡鐩稿叧鏂逛汉鏁�
             pcWorkPlatformDataVO.setInParkLwUserNum(
-                    retentionList.stream().filter(i->Constants.equalsInteger(i.getCompanyType(),Constants.ONE)).count()
+                    retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.TWO) && Constants.equalsInteger(i.getCompanyType(),Constants.ZERO)).count()
             );
             pcWorkPlatformDataVO.setLwUserInNum(Constants.ZERO);
             pcWorkPlatformDataVO.setLwUserOutNum(Constants.ZERO);
@@ -1569,17 +1569,6 @@
             pcWorkPlatformDataVO.setWeekVisitList(weekVisitList );
             pcWorkPlatformDataVO.setWeekCarList(weekCarList);
 
-//            List<Retention> retentionList = retentionMapper.selectJoinList(Retention.class,
-//                    new MPJLambdaWrapper<Retention>()
-//                            .selectAll(Retention.class)
-//                            .selectAs(Company::getType,Retention::getCompanyType)
-//                            .selectAs(Company::getName,Retention::getCompanyName)
-//                            .leftJoin(Company.class,Company::getId,Retention::getCompanyId)
-//                            .eq(Company::getType,Constants.ZERO)
-//                            .groupBy(Company::getId,Company::getName)
-//                            .orderByDesc(Retention::getNum)
-//            );
-
             List<Company> companyList = companyMapper.selectList(new QueryWrapper<Company>().lambda()
                     .eq(Company::getType,Constants.ZERO)
                     .eq(Company::getIsdeleted,Constants.ZERO)
@@ -1616,6 +1605,11 @@
             List<Notices> noticesList = noticesJoinMapper.selectList(queryWrapper);
             pcWorkPlatformDataVO.setNoticesList(noticesList);
             pcWorkPlatformDataVO.setNoticesNum(noticesList.size());
+            if(noticesList.size() > 5 ){
+                pcWorkPlatformDataVO.setNoticesList(noticesList.subList(0,5));
+            }else{
+                pcWorkPlatformDataVO.setNoticesList(noticesList);
+            }
         }else{
             String code= systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.TIMEOUT_WARNING).getCode();
             MPJLambdaWrapper<Visits> queryWrapper = new MPJLambdaWrapper<>();
@@ -1646,8 +1640,14 @@
                     }
                 });
             }
-            pcWorkPlatformDataVO.setTimeOutVisitList(result);
             pcWorkPlatformDataVO.setTimeOutVisitNum(result.size());
+            if(result.size() > 3 ){
+                pcWorkPlatformDataVO.setTimeOutVisitList(result.subList(0,3));
+            }else{
+                pcWorkPlatformDataVO.setTimeOutVisitList(result);
+            }
+
+
         }
 
 

--
Gitblit v1.9.3