merge code
This commit is contained in:
parent
c8ac5c9582
commit
4fa9df8e3c
@ -51,10 +51,10 @@ data class EvaluationInfo(
|
|||||||
val evaluationWay: Int = 2,//测评方式 1生产测评 2现场测评 服务字段定义为Integer,使用包装类,对应无值情况为空
|
val evaluationWay: Int = 2,//测评方式 1生产测评 2现场测评 服务字段定义为Integer,使用包装类,对应无值情况为空
|
||||||
|
|
||||||
@SerializedName("roadClassfcation")
|
@SerializedName("roadClassfcation")
|
||||||
val roadClassfcation: String = "",//道路种别
|
val roadClassfcation: Int = 1,//道路种别
|
||||||
|
|
||||||
@SerializedName("roadFunctionGrade")
|
@SerializedName("roadFunctionGrade")
|
||||||
val roadFunctionGrade: Int = 3,//道路功能等级
|
val roadFunctionGrade: Int = 1,//道路功能等级
|
||||||
|
|
||||||
@SerializedName("noEvaluationreason")
|
@SerializedName("noEvaluationreason")
|
||||||
val noEvaluationreason: String = "",//未测评原因
|
val noEvaluationreason: String = "",//未测评原因
|
||||||
@ -63,7 +63,7 @@ data class EvaluationInfo(
|
|||||||
val linkLength: Double = 0.0,//link长度(m 保留3位小数)
|
val linkLength: Double = 0.0,//link长度(m 保留3位小数)
|
||||||
|
|
||||||
@SerializedName("dataLevel")
|
@SerializedName("dataLevel")
|
||||||
val dataLevel: Int = 3,//数据级别
|
val dataLevel: Int = 1,//数据级别
|
||||||
|
|
||||||
@SerializedName("linstringLength")
|
@SerializedName("linstringLength")
|
||||||
val linstringLength: Double = 0.0,//错误要素长度(m)
|
val linstringLength: Double = 0.0,//错误要素长度(m)
|
||||||
|
@ -146,7 +146,7 @@ class TaskUploadScope(
|
|||||||
evaluatorName = "",
|
evaluatorName = "",
|
||||||
evaluationDate = "",
|
evaluationDate = "",
|
||||||
evaluationWay = 2,
|
evaluationWay = 2,
|
||||||
roadClassfcation = "",
|
roadClassfcation = 1,
|
||||||
roadFunctionGrade = 0,
|
roadFunctionGrade = 0,
|
||||||
noEvaluationreason = hadLinkDvoBean.reason,
|
noEvaluationreason = hadLinkDvoBean.reason,
|
||||||
linkLength = 0.0,
|
linkLength = 0.0,
|
||||||
@ -192,7 +192,7 @@ class TaskUploadScope(
|
|||||||
evaluatorName = it.checkUserId,
|
evaluatorName = it.checkUserId,
|
||||||
evaluationDate = it.checkTime,
|
evaluationDate = it.checkTime,
|
||||||
evaluationWay = evaluationWay,
|
evaluationWay = evaluationWay,
|
||||||
roadClassfcation = "",
|
roadClassfcation = 1,
|
||||||
roadFunctionGrade = 3,
|
roadFunctionGrade = 3,
|
||||||
noEvaluationreason = "",
|
noEvaluationreason = "",
|
||||||
linkLength = s.toDouble(),
|
linkLength = s.toDouble(),
|
||||||
|
@ -168,6 +168,7 @@ class MainViewModel @Inject constructor(
|
|||||||
initTaskData()
|
initTaskData()
|
||||||
initQsRecordData()
|
initQsRecordData()
|
||||||
initNoteData()
|
initNoteData()
|
||||||
|
initNILocationData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,6 +219,18 @@ class MainViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private suspend fun initNILocationData() {
|
||||||
|
//加载轨迹数据
|
||||||
|
val id = sharedPreferences.getInt(Constant.SELECT_TASK_ID, -1)
|
||||||
|
val list: List<NiLocation>? = TraceDataBase.getDatabase(
|
||||||
|
mapController.mMapView.context,
|
||||||
|
Constant.USER_DATA_PATH
|
||||||
|
).niLocationDao.findToTaskIdAll(id.toString())
|
||||||
|
list!!.forEach {
|
||||||
|
mapController.markerHandle.addNiLocationMarkerItem(it)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化定位信息
|
* 初始化定位信息
|
||||||
*/
|
*/
|
||||||
@ -284,18 +297,6 @@ class MainViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载轨迹数据
|
|
||||||
viewModelScope.launch(Dispatchers.IO) {
|
|
||||||
val id = sharedPreferences.getInt(Constant.SELECT_TASK_ID, -1)
|
|
||||||
val list: List<NiLocation>? = TraceDataBase.getDatabase(
|
|
||||||
mapController.mMapView.context,
|
|
||||||
Constant.USER_DATA_PATH
|
|
||||||
).niLocationDao.findToTaskIdAll(id.toString())
|
|
||||||
list!!.forEach {
|
|
||||||
mapController.markerHandle.addNiLocationMarkerItem(it)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//显示轨迹图层
|
//显示轨迹图层
|
||||||
mapController.layerManagerHandler.showNiLocationLayer()
|
mapController.layerManagerHandler.showNiLocationLayer()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user