Commit 2bad61bb authored by wanghao's avatar wanghao

1 大屏端 用户点位 关联 气瓶数据展示 调整。

parent 1cd2e15f
...@@ -176,6 +176,12 @@ ...@@ -176,6 +176,12 @@
<artifactId>easypoi-annotation</artifactId> <artifactId>easypoi-annotation</artifactId>
<version>4.2.0</version> <version>4.2.0</version>
</dependency> </dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.25</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -8,6 +8,7 @@ import java.text.SimpleDateFormat; ...@@ -8,6 +8,7 @@ import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import cn.hutool.core.date.DateUtil;
import com.zehong.common.core.domain.model.LoginUser; import com.zehong.common.core.domain.model.LoginUser;
import com.zehong.common.core.page.PageDomain; import com.zehong.common.core.page.PageDomain;
import com.zehong.common.core.page.TableDataInfo; import com.zehong.common.core.page.TableDataInfo;
...@@ -207,6 +208,8 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService ...@@ -207,6 +208,8 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
List<Map<String,Object>> backToMessage = new ArrayList<>(); List<Map<String,Object>> backToMessage = new ArrayList<>();
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
if (lpgAirChargeFiles.size() > 0) { if (lpgAirChargeFiles.size() > 0) {
...@@ -256,6 +259,9 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService ...@@ -256,6 +259,9 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
} }
// backToMessage.sort(Comparator.comparing((Map<String, Object> mapitem) -> (Date) mapitem.get("time")).reversed());
backToMessage.sort((a,b) ->DateUtil.parse(a.get("time").toString()).getTime() - DateUtil.parse(b.get("time").toString()).getTime() >= 0 ? -1 : 1);
lpgGasBottleFilesBackToVo.setBackToMessage(backToMessage); lpgGasBottleFilesBackToVo.setBackToMessage(backToMessage);
return lpgGasBottleFilesBackToVo; return lpgGasBottleFilesBackToVo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment