| | |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(liveLocation.getRecordTime()) + "'" + "," + |
| | | "'" + liveLocation.getLocation() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | } else { |
| | | //更新 |
| | |
| | | ",location = " + "'" + liveLocation.getLocation() + "'" + |
| | | " " + "where id = " + "'" + liveLocation.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | } |
| | | |
| | |
| | | "'" + locus.getLongitude() + "'" + "," + |
| | | "'" + locus.getLatitude() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s2); |
| | | myAsyncService.FTP(s2); |
| | | myAsyncService.dataSync(s2); |
| | | |
| | | if (save1) { |
| | | //返回数据 |
| | |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(liveLocation.getRecordTime()) + "'" + "," + |
| | | "'" + liveLocation.getLocation() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | } else { |
| | | //更新 |
| | |
| | | ",location = " + "'" + liveLocation.getLocation() + "'" + |
| | | " " + "where id = " + "'" + liveLocation.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | } |
| | | |
| | |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(locus.getRecordTime()) + "'" + "," + |
| | | "'" + locus.getLongitude() + "'" + "," + |
| | | "'" + locus.getLatitude() + "'" + ")"; |
| | | myAsyncService.FTP(s2); |
| | | myAsyncService.dataSync(s2); |
| | | //FtpUtil.sqlFileUpload(s2); |
| | | |
| | | if (save1) { |