智慧保安后台管理-外网项目备份
tangzy
2021-12-10 a5cc8204b581d42fcf6cdd641d624e8c894d592d
1.ftp
1 files modified
7 ■■■■ changed files
src/main/java/org/springblade/modules/equipage/controller/fixed.java 7 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/equipage/controller/fixed.java
@@ -138,6 +138,7 @@
     */
    @Scheduled(cron = "0 0 * * * ?")
    public void Peog() throws Exception {
        System.out.println("押运人员");
        String url = "http://47.104.104.46/api/client/getgistrack.php";
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, calendar.get(Calendar.HOUR_OF_DAY) - 1);
@@ -163,6 +164,10 @@
            JSONArray jsonArray = JSONArray.fromObject(a);
            String s1 = "";
            String track = jsonArray.getJSONObject(0).get("track").toString();
            if (track.equals("[]")){
                System.out.println("数据为空");
            }
            else {
            JSONArray jsonArray1 = JSONArray.fromObject(track);
            for (int j = 0; j < jsonArray1.size(); j++) {
                String gis_jd = jsonArray1.getJSONObject(j).get("gis_jd").toString();
@@ -193,6 +198,7 @@
                }
            }
            FtpUtil.sqlFileUpload(s1);
            }
        }
    }
@@ -292,7 +298,6 @@
     */
    @Scheduled(cron = "0 0 * * * ?")
    public void locationhistoryTrack() {
        System.out.println("车辆轨迹");
        Calendar calendar = Calendar.getInstance();
        /* HOUR_OF_DAY 指示一天中的小时 */
        calendar.set(Calendar.HOUR_OF_DAY, calendar.get(Calendar.HOUR_OF_DAY) - 1);