From 24cfde30df8f15eee2abfea396f6cee715567070 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 14:44:28 +0800
Subject: [PATCH] 最新版本541200007
---
server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/InoutRecordServiceImpl.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/InoutRecordServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/InoutRecordServiceImpl.java
index 9791dcb..9a268c9 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/InoutRecordServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/InoutRecordServiceImpl.java
@@ -351,7 +351,8 @@
rataList.add(generalDataVO);
}
}else{
- List<String> categoryNameList = yearList.stream().filter(i-> StringUtils.isNotBlank(i.getCategoryParentName())).map(i->i.getCategoryParentName()).collect(Collectors.toList());
+ List<String> categoryNameList = yearList.stream().filter(i-> StringUtils.isNotBlank(i.getCategoryParentName()))
+ .map(i->i.getCategoryParentName()).collect(Collectors.toList());
if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(categoryNameList)){
Set<String> setList = new HashSet<>(categoryNameList);
for (String categoryName:setList) {
@@ -402,7 +403,7 @@
if(Constants.equalsInteger(DateUtil.getNowYearNum(),Integer.valueOf(inParkDataDTO.getDateStr()))){
maxMonth = DateUtil.getNowMonthNum();
}
- for (int i = maxMonth; i >=0 ; i--) {
+ for (int i = maxMonth; i >0 ; i--) {
dateList.add(DateUtil.getNowYearNum()+"-"+ StringUtils.leftPad(i+"",2,"0"));
}
}else {
@@ -420,7 +421,7 @@
lastDay = today;
}
}
- for (int i = lastDay; i >= 0 ; i--) {
+ for (int i = lastDay; i > 0 ; i--) {
dateList.add(year + "-" + StringUtils.leftPad(month.toString(),2,"0") + "-" + StringUtils.leftPad(Integer.toString(i),2,"0"));
}
}
@@ -443,11 +444,11 @@
}
totalString.add("鍚堣");
resultList.add(totalString);
- Integer total = 0;
for (String str:dataList) {
+ Integer total = 0;
+ List<String> dataChildList = new ArrayList<>();
+ dataChildList.add(str);
for (String categoryName:setList) {
- List<String> dataChildList = new ArrayList<>();
- dataChildList.add(str);
if(Constants.equalsInteger(dateStr.length(),4)){
Integer childNum = allList.stream().filter(i->categoryName.equals(i.getCategoryName())
&& DateUtil.formatDate(i.getCreateDate(),"yyyy-MM").equals(str)).collect(Collectors.toList()).size();
@@ -463,9 +464,9 @@
);
total = total + childNum;
}
- dataChildList.add(Integer.toString(total));
- resultList.add(dataChildList);
}
+ dataChildList.add(Integer.toString(total));
+ resultList.add(dataChildList);
}
}else{
for (int j = 0; j < userTypeList.length; j++) {
@@ -526,7 +527,6 @@
person -> person,
(existing, replacement) -> existing
));
-
List<InoutRecord> uniqueList = new ArrayList<>(uniqueByMemberPhone.values());
return uniqueList;
}
@@ -538,7 +538,6 @@
person -> person,
(existing, replacement) -> existing
));
-
List<InoutRecord> uniqueList = new ArrayList<>(uniqueByCarCode.values());
return uniqueList;
}
--
Gitblit v1.9.3