优化:取不到地块名时直接返回

FileMonitor
陈伟 2024-11-29 15:07:29 +08:00
parent 5b918cbcb8
commit a7a7894e83
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ class FileMonitor : IJob
} }
var areaName = new DirectoryInfo(shpPath).Parent?.Parent?.Name; var areaName = new DirectoryInfo(shpPath).Parent?.Parent?.Name;
if (areaName == null)
{
return false;
}
var shpInfo = ShpUtil.GetShpInfo(shpPath); var shpInfo = ShpUtil.GetShpInfo(shpPath);
var insAishp = new InsAishp(); var insAishp = new InsAishp();
var currentTime = DateTime.Now; var currentTime = DateTime.Now;