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
9fc1509d
Commit
9fc1509d
authored
Oct 11, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改IED的审核时间和提交时间的格式
parent
f38ddacc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
ExtIEDPlanExcelVO.java
.../java/com/yonde/dcs/plan/common/vo/ExtIEDPlanExcelVO.java
+2
-2
IEDPlanExcelListenner.java
...m/yonde/dcs/plan/core/listener/IEDPlanExcelListenner.java
+19
-2
ExtIEDPlanServiceImpl.java
...nde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
+7
-2
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/vo/ExtIEDPlanExcelVO.java
View file @
9fc1509d
...
@@ -87,14 +87,14 @@ public class ExtIEDPlanExcelVO {
...
@@ -87,14 +87,14 @@ public class ExtIEDPlanExcelVO {
*/
*/
@ExcelProperty
(
value
=
{
"IED计划"
,
"节点审核时间*"
},
index
=
9
)
@ExcelProperty
(
value
=
{
"IED计划"
,
"节点审核时间*"
},
index
=
9
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
LocalDateTime
auditTime
;
private
String
auditTime
;
/**
/**
* 文件提交时间
* 文件提交时间
*/
*/
@ExcelProperty
(
value
=
{
"IED计划"
,
"文件提交时间*"
},
index
=
10
)
@ExcelProperty
(
value
=
{
"IED计划"
,
"文件提交时间*"
},
index
=
10
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
LocalDateTime
fileSubmitTime
;
private
String
fileSubmitTime
;
/**
/**
* 编写者
* 编写者
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/listener/IEDPlanExcelListenner.java
View file @
9fc1509d
...
@@ -25,6 +25,7 @@ import org.springframework.stereotype.Component;
...
@@ -25,6 +25,7 @@ import org.springframework.stereotype.Component;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
...
@@ -203,8 +204,24 @@ public class IEDPlanExcelListenner extends AnalysisEventListener<ExtIEDPlanExcel
...
@@ -203,8 +204,24 @@ public class IEDPlanExcelListenner extends AnalysisEventListener<ExtIEDPlanExcel
extIEDPlanVO
.
setSystemNumber
(
extIEDPlanExcelVO
.
getSystemNumber
());
extIEDPlanVO
.
setSystemNumber
(
extIEDPlanExcelVO
.
getSystemNumber
());
extIEDPlanVO
.
setDeviceNumber
(
extIEDPlanExcelVO
.
getDeviceNumber
());
extIEDPlanVO
.
setDeviceNumber
(
extIEDPlanExcelVO
.
getDeviceNumber
());
extIEDPlanVO
.
setPhase
(
extIEDPlanExcelVO
.
getPhase
());
extIEDPlanVO
.
setPhase
(
extIEDPlanExcelVO
.
getPhase
());
extIEDPlanVO
.
setAuditTime
(
extIEDPlanExcelVO
.
getAuditTime
());
if
(!
ObjectUtils
.
isEmpty
(
extIEDPlanExcelVO
.
getAuditTime
())){
extIEDPlanVO
.
setFileSubmitTime
(
extIEDPlanExcelVO
.
getFileSubmitTime
());
try
{
LocalDateTime
auditTime
=
LocalDateTime
.
parse
(
extIEDPlanExcelVO
.
getAuditTime
());
extIEDPlanVO
.
setAuditTime
(
auditTime
);
}
catch
(
Exception
e
){
throw
new
DxBusinessException
(
"-1"
,
"审核时间格式不正确!"
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
extIEDPlanExcelVO
.
getFileSubmitTime
())){
try
{
LocalDateTime
submitTime
=
LocalDateTime
.
parse
(
extIEDPlanExcelVO
.
getFileSubmitTime
());
extIEDPlanVO
.
setFileSubmitTime
(
submitTime
);
}
catch
(
Exception
e
){
throw
new
DxBusinessException
(
"-1"
,
"文件提交时间格式不正确!"
);
}
}
extIEDPlanVO
.
setEditor
(
extIEDPlanExcelVO
.
getEditor
());
extIEDPlanVO
.
setEditor
(
extIEDPlanExcelVO
.
getEditor
());
extIEDPlanVO
.
setChecker
(
extIEDPlanExcelVO
.
getChecker
());
extIEDPlanVO
.
setChecker
(
extIEDPlanExcelVO
.
getChecker
());
extIEDPlanVO
.
setAuditor
(
extIEDPlanExcelVO
.
getAuditor
());
extIEDPlanVO
.
setAuditor
(
extIEDPlanExcelVO
.
getAuditor
());
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
View file @
9fc1509d
...
@@ -43,6 +43,7 @@ import java.io.FileInputStream;
...
@@ -43,6 +43,7 @@ import java.io.FileInputStream;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -144,8 +145,12 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
...
@@ -144,8 +145,12 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
extIEDPlanExcelVO
.
setSystemNumber
(
extIEDPlanVO
.
getSystemNumber
());
extIEDPlanExcelVO
.
setSystemNumber
(
extIEDPlanVO
.
getSystemNumber
());
extIEDPlanExcelVO
.
setDeviceNumber
(
extIEDPlanVO
.
getDeviceNumber
());
extIEDPlanExcelVO
.
setDeviceNumber
(
extIEDPlanVO
.
getDeviceNumber
());
extIEDPlanExcelVO
.
setPhase
(
extIEDPlanVO
.
getPhase
());
extIEDPlanExcelVO
.
setPhase
(
extIEDPlanVO
.
getPhase
());
extIEDPlanExcelVO
.
setAuditTime
(
extIEDPlanVO
.
getAuditTime
());
if
(!
ObjectUtil
.
isEmpty
(
extIEDPlanVO
.
getAuditTime
())){
extIEDPlanExcelVO
.
setFileSubmitTime
(
extIEDPlanVO
.
getFileSubmitTime
());
extIEDPlanExcelVO
.
setAuditTime
(
extIEDPlanVO
.
getAuditTime
().
format
(
DateTimeFormatter
.
ISO_DATE
));
}
if
(!
ObjectUtil
.
isEmpty
(
extIEDPlanVO
.
getFileSubmitTime
())){
extIEDPlanExcelVO
.
setFileSubmitTime
(
extIEDPlanVO
.
getFileSubmitTime
().
format
(
DateTimeFormatter
.
ISO_DATE
));
}
extIEDPlanExcelVO
.
setEditor
(
extIEDPlanVO
.
getEditor
());
extIEDPlanExcelVO
.
setEditor
(
extIEDPlanVO
.
getEditor
());
extIEDPlanExcelVO
.
setChecker
(
extIEDPlanVO
.
getChecker
());
extIEDPlanExcelVO
.
setChecker
(
extIEDPlanVO
.
getChecker
());
extIEDPlanExcelVO
.
setAuditor
(
extIEDPlanVO
.
getAuditor
());
extIEDPlanExcelVO
.
setAuditor
(
extIEDPlanVO
.
getAuditor
());
...
...
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