merge code
This commit is contained in:
@@ -230,12 +230,6 @@ class ImportOMDBHelper @AssistedInject constructor(
|
||||
renderEntity.properties["name"] = renderEntity.name;
|
||||
}
|
||||
|
||||
if(currentConfig.catch){
|
||||
renderEntity.catch=0
|
||||
}else{
|
||||
renderEntity.catch=1
|
||||
}
|
||||
|
||||
//遍历判断只显示与任务Link相关的任务数据
|
||||
if(currentConfig.checkLinkId){
|
||||
|
||||
@@ -314,6 +308,12 @@ class ImportOMDBHelper @AssistedInject constructor(
|
||||
// 对renderEntity做预处理后再保存
|
||||
val resultEntity = importConfig.transformProperties(renderEntity)
|
||||
|
||||
if(currentConfig.catch){
|
||||
renderEntity.catchEnable=0
|
||||
}else{
|
||||
renderEntity.catchEnable=1
|
||||
}
|
||||
|
||||
//对code编码需要特殊处理 存在多个属性值时,渲染优先级:SA>PA,存在多个属性值时,渲染优先级:FRONTAGE>MAIN_SIDE_A CCESS
|
||||
if(renderEntity.code == DataCodeEnum.OMDB_LINK_ATTRIBUTE.code){
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ class RealmOperateHelper() {
|
||||
}else{
|
||||
// 查询realm中对应tile号的数据
|
||||
realmList = getRealmTools(RenderEntity::class.java, false)
|
||||
.equalTo("catch", "0")
|
||||
.lessThan("catchEnable", 1)
|
||||
.greaterThanOrEqualTo("tileX", xStart)
|
||||
.lessThanOrEqualTo("tileX", xEnd)
|
||||
.greaterThanOrEqualTo("tileY", yStart)
|
||||
|
||||
Reference in New Issue
Block a user