|
@@ -5,6 +5,7 @@ import android.util.Log
|
|
|
import androidx.lifecycle.LiveData
|
|
|
import com.framework.app.api.Api
|
|
|
import com.framework.app.base.IRepository
|
|
|
+import com.framework.app.DEVICE_ID
|
|
|
import com.framework.mvvm.model.data.*
|
|
|
import com.framework.mvvm.model.db.AdmDatabase
|
|
|
import com.framework.mvvm.model.db.entity.*
|
|
@@ -358,7 +359,7 @@ class AdmRepository(
|
|
|
val problemEquips =
|
|
|
problemEquipDao.getProblemByBuildingId(buildingId).filter { it.state == "1" }
|
|
|
|
|
|
- val deviceId = sp.getString("deviceId", "") ?: ""
|
|
|
+ val deviceId = sp.getString(DEVICE_ID, "") ?: ""
|
|
|
|
|
|
val building = Building(
|
|
|
buildingId = buildingId,
|
|
@@ -386,7 +387,7 @@ class AdmRepository(
|
|
|
}
|
|
|
is SuccessResponse -> {
|
|
|
val result = response.data
|
|
|
- Log.e("AdmViewModel", "uploadBuilding success: $result")
|
|
|
+ Log.e("AdmViewModel", """uploadBuilding success: $result""")
|
|
|
files.forEach {
|
|
|
it.state = "2"
|
|
|
if (it.creationTime.isNullOrEmpty())
|