Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
545574cd
Commit
545574cd
authored
Feb 11, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输出日志调整
parent
8696386c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
performance/Performance.Infrastructure/Helper/FileHelper.cs
+2
-0
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+1
-1
No files found.
performance/Performance.Infrastructure/Helper/FileHelper.cs
View file @
545574cd
...
@@ -483,6 +483,8 @@ public static string FileToString(string filePath, Encoding encoding)
...
@@ -483,6 +483,8 @@ public static string FileToString(string filePath, Encoding encoding)
/// <param name="filePath">文件的绝对路径</param>
/// <param name="filePath">文件的绝对路径</param>
public
static
string
GetFileName
(
string
filePath
)
public
static
string
GetFileName
(
string
filePath
)
{
{
if
(
string
.
IsNullOrEmpty
(
filePath
))
return
string
.
Empty
;
//获取文件的名称
//获取文件的名称
FileInfo
fi
=
new
FileInfo
(
filePath
);
FileInfo
fi
=
new
FileInfo
(
filePath
);
return
fi
.
Name
;
return
fi
.
Name
;
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
545574cd
...
@@ -113,7 +113,7 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
...
@@ -113,7 +113,7 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
var
statesArray
=
new
int
[]
{
(
int
)
AllotStates
.
GenerateSucceed
,
(
int
)
AllotStates
.
Archive
};
var
statesArray
=
new
int
[]
{
(
int
)
AllotStates
.
GenerateSucceed
,
(
int
)
AllotStates
.
Archive
};
var
templateFilePath
=
ExtractHelper
.
GetExtractFile
(
hospitalId
,
allot
,
ref
extractFilePath
,
filePath
);
var
templateFilePath
=
ExtractHelper
.
GetExtractFile
(
hospitalId
,
allot
,
ref
extractFilePath
,
filePath
);
logService
.
ReturnTheLog
(
allotId
,
groupName
,
2
,
"创建文件"
,
$"模板文件:
{
templateFilePath
}
"
,
1
,
isSingle
);
logService
.
ReturnTheLog
(
allotId
,
groupName
,
2
,
"创建文件"
,
$"模板文件:
{
FileHelper
.
GetFileName
(
templateFilePath
)
}
"
,
1
,
isSingle
);
if
(!
FileHelper
.
IsExistFile
(
templateFilePath
))
throw
new
Exception
(
"抽取文件创建失败"
);
if
(!
FileHelper
.
IsExistFile
(
templateFilePath
))
throw
new
Exception
(
"抽取文件创建失败"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment