merge code

This commit is contained in:
qiji4215
2023-09-01 13:32:27 +08:00
parent 94c9b8fd4f
commit a7f9422d9d
3 changed files with 8 additions and 8 deletions

View File

@@ -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){

View File

@@ -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)