|
@@ -111,7 +111,8 @@ class SpaceAffectUtil {
|
|
|
// 有交集则加入有变化的空间列表
|
|
|
for(affect in affectList) {
|
|
|
if (isGeoContains(polygon, affect!!)) {
|
|
|
- // TODO state设置为1
|
|
|
+ // state设置为1
|
|
|
+ space.state = 1
|
|
|
rsList.add(space)
|
|
|
break;
|
|
|
}
|
|
@@ -164,7 +165,7 @@ class SpaceAffectUtil {
|
|
|
private fun updateSpaceList(projectId: String, spaces: List<DCISpace?>?) {
|
|
|
val request = UpdateRequest<DCISpace>()
|
|
|
request.content = spaces as ArrayList<DCISpace>
|
|
|
- service!!.iSpaceUpdate(request, projectId)
|
|
|
+ service!!.spaceUpdate(request, projectId)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -187,7 +188,7 @@ class SpaceAffectUtil {
|
|
|
return null
|
|
|
}
|
|
|
val floors = response.content
|
|
|
- val spaceList: MutableList<DCISpace> = ArrayList<DCISpace>()
|
|
|
+ val spaceList: MutableList<DCISpace> = ArrayList()
|
|
|
for (floor in floors!!) {
|
|
|
val spaces: List<DCISpace>? = floor!!.spaceList
|
|
|
if (CollectionUtils.isEmpty(spaces)) {
|