|
@@ -353,13 +353,22 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
}
|
|
|
} else {
|
|
|
// 删除不符合条件的地块
|
|
|
- List<String> tableIds = analyseUtilsDBService.intersectsTableWkt(rawTable, null, calculateEwkt);
|
|
|
if (factorSpatialVo.getDefaultType().equals("lt") || factorSpatialVo.getDefaultType().equals("let")) {
|
|
|
// 删除不包含的地块
|
|
|
- tableDateService.delOutIds(rawTable, tableIds);
|
|
|
+ if (calculateEwkt.equals("")) {
|
|
|
+ iLogService.saveLog(taskId, "辅助选址", factorUseDTO.getFactorName() + "因子影响分析完成,未找到符合要求地块", "info");
|
|
|
+ updateFzxzStatus(taskId, Rwzt.getNoJX());
|
|
|
+ return "";
|
|
|
+ } else {
|
|
|
+ List<String> tableIds = analyseUtilsDBService.intersectsTableWkt(rawTable, null, calculateEwkt);
|
|
|
+ tableDateService.delOutIds(rawTable, tableIds);
|
|
|
+ }
|
|
|
} else {
|
|
|
- // 删除包含的地块
|
|
|
- tableDateService.delInIds(rawTable, tableIds);
|
|
|
+ if (!calculateEwkt.equals("")) {
|
|
|
+ // 删除包含的地块
|
|
|
+ List<String> tableIds = analyseUtilsDBService.intersectsTableWkt(rawTable, null, calculateEwkt);
|
|
|
+ tableDateService.delInIds(rawTable, tableIds);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|