抽取日志

parent 8d46b17e
......@@ -652,6 +652,8 @@ private void ImportData(per_allot allot, List<sys_hospitalconfig> configs)
DatabaseType type = (DatabaseType)conf.DataBaseType;
var connection = ConnectionBuilder.Create(type, conf.DbSource, conf.DbName, conf.DbUser, conf.DbPassword);
var data = connection.Query(import.ImportScript, new DynamicParameters(pairs), commandTimeout: 60 * 60);
logger.LogDebug($"执行导入报表SQL:{import.TableName} -- {import.ImportScript}");
logger.LogDebug($"执行导入报表SQL参数:{import.TableName} -- {JsonHelper.Serialize(pairs)}");
perforPerallotRepository.ImportData(import, pairs, data);
}
catch (Exception ex)
......
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