Commit cd62004f by 李承祥

对数据提取进行判断,是否含有ExecuteScript

parent b170715b
......@@ -64,14 +64,18 @@ public string ExtractData(int hospitalId)
var allotList = perforPerallotRepository.GetEntities(t => t.HospitalId == hospitalId);
var configList = perforHospitalconfigRepository.GetEntities(t => t.HospitalId == hospitalId);
var firstList = perforPerfirstRepository.GetEntities(t => t.HospitalId == hospitalId);
var scriptList = perforExtractRepository.GetEntities(t => t.HospitalId == hospitalId);
if (configList == null || !configList.Any())
throw new PerformanceException($"暂不支持自动提取绩效数据");
if (scriptList == null || !scriptList.Any())
throw new PerformanceException($"暂无该医院的配置信息和执行sql,无法进行数据提取");
var hospitalConfig = configList.First();
string originalPath = "";
//判断是否是首次
if ((allotList == null || !allotList.Any()) && firstList != null)
if ((allotList == null || !allotList.Any()) && (firstList != null || !firstList.Any()))
{
var first = firstList.OrderByDescending(t => t.CreateDate).FirstOrDefault();
//首次 从excel中获取人员信息,SHEET页信息,列头信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment