智慧保安后台管理项目备份
Administrator
2021-12-06 5e64e120b582c14b0896b9904d5fac5bbbec5c84
首页枪支定位接口修改
1 files modified
10 ■■■■ changed files
src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java 10 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java
@@ -17,10 +17,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
/**
@@ -87,10 +85,12 @@
            //创建集合
            List<LiveLocationVo> list = new ArrayList<>();
            if (gunList.size()>0){
                String startTime = "2020-05-25";
                String endTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
                //遍历
                gunList.forEach(gun -> {
                    //远程调用
                    String body = InvestigateUtil.httpGetGunPosition(gun.getCardNo(),null,null,null,null,null);
                    String body = InvestigateUtil.httpGetGunPosition(gun.getCardNo(),null,startTime,endTime,null,null);
//                    System.out.println("body = " + body);
                    if (null != body && !body.equals("")) {
                        JSONObject jsonObject = new JSONObject(body);