diff --git a/pom.xml b/pom.xml index f791c3a..5a113bc 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ osm.surveyor.plateau task-bldg - 0.1.17 + 0.1.18 war task-bldg TaskingManager for Plateau BLDG diff --git a/src/main/java/osm/surveyor/task/city/CityService.java b/src/main/java/osm/surveyor/task/city/CityService.java index c82e1e6..a705409 100644 --- a/src/main/java/osm/surveyor/task/city/CityService.java +++ b/src/main/java/osm/surveyor/task/city/CityService.java @@ -61,21 +61,27 @@ City city = getCity(citycode); if (err > 0) { + // エラーあり city.setStatus(Status.NG); } else if ((cnt / total) > 0.99d) { + // 完了 city.setStatus(Status.OK); } - else if ((cnt / total) > 0.9d) { + else if ((cnt / total) > 0.8d) { + // あとちょっと city.setStatus(Status.EDITING); } - else if (edit > 0d) { + else if ((edit > 0d) || (cnt > 0d)) { + // 編集中 city.setStatus(Status.RESERVED); } else if (resv > 0d) { + // 着手 city.setStatus(Status.ACCEPTING); } else { + // 未着手 city.setStatus(Status.PREPARATION); } repository.save(city);