增加语音部分业务
This commit is contained in:
@@ -43,4 +43,7 @@ public interface INiLocationDao {
|
||||
|
||||
@Query("SELECT * FROM niLocation where tilex>=:minx and tilex<=:maxx and tiley>=:miny and tiley <=:maxy and time>=:startTime and time<=:endTime")
|
||||
List<NiLocation> timeTofindList(int minx, int maxx, int miny, int maxy,long startTime,long endTime);
|
||||
|
||||
@Query("SELECT * FROM niLocation")
|
||||
List<NiLocation> findAll();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.navinfo.collect.library.data.entity
|
||||
|
||||
import com.navinfo.collect.library.utils.GeometryToolsKt
|
||||
import com.navinfo.omqs.bean.Attachment
|
||||
import io.realm.RealmObject
|
||||
import io.realm.RealmSet
|
||||
import io.realm.annotations.PrimaryKey
|
||||
@@ -86,6 +87,8 @@ open class QsRecordBean @JvmOverloads constructor(
|
||||
*/
|
||||
var guideGeometry: String = "",
|
||||
|
||||
var attachments:RealmSet<Attachment>,
|
||||
|
||||
) : RealmObject() {
|
||||
|
||||
fun copy(): QsRecordBean {
|
||||
@@ -104,6 +107,7 @@ open class QsRecordBean @JvmOverloads constructor(
|
||||
confirmUserId = confirmUserId,
|
||||
t_lifecycle = t_lifecycle,
|
||||
t_status = t_status,
|
||||
attachments = attachments,
|
||||
)
|
||||
qs.geometry = geometry
|
||||
return qs
|
||||
|
||||
@@ -53,7 +53,8 @@ public class MapLifeNiLocationTileDataSource implements ITileDataSource {
|
||||
if(mEndTime!=0){
|
||||
list = TraceDataBase.getDatabase(mCon, dbName).getNiLocationDao().timeTofindList(xStart, xEnd, yStart, yEnd,mStartTime,mEndTime);
|
||||
}else{
|
||||
list = TraceDataBase.getDatabase(mCon, dbName).getNiLocationDao().findList(xStart, xEnd, yStart, yEnd);
|
||||
//list = TraceDataBase.getDatabase(mCon, dbName).getNiLocationDao().findList(xStart, xEnd, yStart, yEnd);
|
||||
list = TraceDataBase.getDatabase(mCon, dbName).getNiLocationDao().findAll();
|
||||
}
|
||||
|
||||
Log.e("qj","query"+(list==null?0:list.size())+"==="+xStart+"==="+xEnd+"==="+yStart+"==="+yEnd);
|
||||
|
||||
Reference in New Issue
Block a user