fix: 修改poi录像和道路任务保存数据时记录位置信息
This commit is contained in:
@@ -592,6 +592,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
httpParams.put("taskId", poiEntity.getTaskId());
|
httpParams.put("taskId", poiEntity.getTaskId());
|
||||||
httpParams.put("name", poiEntity.getName());
|
httpParams.put("name", poiEntity.getName());
|
||||||
httpParams.put("address", poiEntity.getAddress());
|
httpParams.put("address", poiEntity.getAddress());
|
||||||
|
httpParams.put("geo", poiEntity.getGeoWkt());
|
||||||
// httpParams.put("workType", 1);
|
// httpParams.put("workType", 1);
|
||||||
httpParams.put("memo", poiEntity.getMemo());
|
httpParams.put("memo", poiEntity.getMemo());
|
||||||
httpParams.put("score", poiEntity.getScore());
|
httpParams.put("score", poiEntity.getScore());
|
||||||
@@ -659,6 +660,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
httpParams.put("taskId", poiEntity.getTaskId());
|
httpParams.put("taskId", poiEntity.getTaskId());
|
||||||
httpParams.put("name", poiEntity.getName());
|
httpParams.put("name", poiEntity.getName());
|
||||||
httpParams.put("address", poiEntity.getAddress());
|
httpParams.put("address", poiEntity.getAddress());
|
||||||
|
httpParams.put("geo", poiEntity.getGeoWkt());
|
||||||
// httpParams.put("workType", 1);
|
// httpParams.put("workType", 1);
|
||||||
httpParams.put("memo", poiEntity.getMemo());
|
httpParams.put("memo", poiEntity.getMemo());
|
||||||
httpParams.put("score", poiEntity.getScore());
|
httpParams.put("score", poiEntity.getScore());
|
||||||
@@ -895,6 +897,12 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
poiEntity.setCreateTime(format);
|
poiEntity.setCreateTime(format);
|
||||||
poiEntity.setChecked(false);
|
poiEntity.setChecked(false);
|
||||||
poiEntity.setType(3);
|
poiEntity.setType(3);
|
||||||
|
if (latLng != null) {
|
||||||
|
String encode = Geohash.getInstance().encode(latLng.latitude, latLng.longitude);
|
||||||
|
poiEntity.setGeoWkt(encode);
|
||||||
|
poiEntity.setX(String.valueOf(latLng.longitude));
|
||||||
|
poiEntity.setY(String.valueOf(latLng.latitude));
|
||||||
|
}
|
||||||
if (showPoiEntity.getId() != null) {
|
if (showPoiEntity.getId() != null) {
|
||||||
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
|
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
|
||||||
if (fileListByUUID != null&&!fileListByUUID.isEmpty()) {
|
if (fileListByUUID != null&&!fileListByUUID.isEmpty()) {
|
||||||
|
|||||||
@@ -697,6 +697,7 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
httpParams.put("taskId", poiEntity.getTaskId());
|
httpParams.put("taskId", poiEntity.getTaskId());
|
||||||
httpParams.put("name", poiEntity.getName());
|
httpParams.put("name", poiEntity.getName());
|
||||||
httpParams.put("address", poiEntity.getAddress());
|
httpParams.put("address", poiEntity.getAddress());
|
||||||
|
httpParams.put("geo", poiEntity.getGeoWkt());
|
||||||
// httpParams.put("workType", 0);
|
// httpParams.put("workType", 0);
|
||||||
httpParams.put("memo", poiEntity.getMemo());
|
httpParams.put("memo", poiEntity.getMemo());
|
||||||
// 增加对应九天平台的参数
|
// 增加对应九天平台的参数
|
||||||
@@ -768,6 +769,7 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
httpParams.put("taskId", poiEntity.getTaskId());
|
httpParams.put("taskId", poiEntity.getTaskId());
|
||||||
httpParams.put("name", poiEntity.getName());
|
httpParams.put("name", poiEntity.getName());
|
||||||
httpParams.put("address", poiEntity.getAddress());
|
httpParams.put("address", poiEntity.getAddress());
|
||||||
|
httpParams.put("geo", poiEntity.getGeoWkt());
|
||||||
// httpParams.put("workType", 0);
|
// httpParams.put("workType", 0);
|
||||||
httpParams.put("memo", poiEntity.getMemo());
|
httpParams.put("memo", poiEntity.getMemo());
|
||||||
// 增加对应九天平台的参数
|
// 增加对应九天平台的参数
|
||||||
@@ -1006,6 +1008,12 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
poiEntity.setType(4);
|
poiEntity.setType(4);
|
||||||
poiEntity.setChecked(false);
|
poiEntity.setChecked(false);
|
||||||
poiEntity.setExistence(existence);
|
poiEntity.setExistence(existence);
|
||||||
|
if (latLng != null) {
|
||||||
|
String encode = Geohash.getInstance().encode(latLng.latitude, latLng.longitude);
|
||||||
|
poiEntity.setGeoWkt(encode);
|
||||||
|
poiEntity.setX(String.valueOf(latLng.longitude));
|
||||||
|
poiEntity.setY(String.valueOf(latLng.latitude));
|
||||||
|
}
|
||||||
if (showPoiEntity.getId() != null) {
|
if (showPoiEntity.getId() != null) {
|
||||||
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
|
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
|
||||||
if (fileListByUUID != null&&!fileListByUUID.isEmpty()) {
|
if (fileListByUUID != null&&!fileListByUUID.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user