Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
server
dcs-plan
Commits
400aad38
Commit
400aad38
authored
Sep 29, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加下载进度计划模板
parent
70313efc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Constants.java
...n/java/com/yonde/dcs/plan/common/constants/Constants.java
+6
-0
ExtFileTemplateManagerServiceImpl.java
.../core/service/impl/ExtFileTemplateManagerServiceImpl.java
+3
-0
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/constants/Constants.java
View file @
400aad38
...
...
@@ -436,6 +436,12 @@ public class Constants {
public
static
final
String
ICM_PLAN_EXCEL_NAME
=
"\\ICM计划列表.xlsx"
;
public
static
final
String
ICM_PLAN_TEMP_FILE_CODE_NAME
=
"ICM计划001模板"
;
/**
* 进度计划
*/
public
static
final
String
PROGRESS_PLAN_EXCEL_NAME
=
"\\进度计划列表.xlsx"
;
public
static
final
String
PROGRESS_TEMP_FILE_CODE_NAME
=
"进度计划001模板"
;
/**
* 计划模板
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtFileTemplateManagerServiceImpl.java
View file @
400aad38
...
...
@@ -42,8 +42,11 @@ public class ExtFileTemplateManagerServiceImpl implements ExtFileTemplateManager
fileId
=
systemFileFeignService
.
getSystemFileId
(
Constants
.
IED_PLAN_TEMP_FILE_CODE_NAME
);
}
else
if
(
fileType
==
3
){
//ICM计划模板下载
fileId
=
systemFileFeignService
.
getSystemFileId
(
Constants
.
ICM_PLAN_TEMP_FILE_CODE_NAME
);
}
else
if
(
fileType
==
4
){
fileId
=
systemFileFeignService
.
getSystemFileId
(
Constants
.
PROGRESS_TEMP_FILE_CODE_NAME
);
}
else
{
log
.
info
(
"未知文件类型:{}"
,
fileType
);
throw
new
DxBusinessException
(
"500"
,
"未知文件类型:"
+
fileType
);
}
multipartFile
=
fileManagerFeignService
.
feignDownloadIO
(
fileId
);
}
catch
(
IOException
e
)
{
...
...
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