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
89ee59f8
Commit
89ee59f8
authored
Oct 15, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购计划导入数据校验
parent
0ca59bd0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
26 deletions
+97
-26
ExtPuchasePlanExcelVO.java
...a/com/yonde/dcs/plan/common/vo/ExtPuchasePlanExcelVO.java
+15
-13
IEDPlanExcelListenner.java
...m/yonde/dcs/plan/core/listener/IEDPlanExcelListenner.java
+1
-1
PurchasePlanExcelReadListenner.java
...cs/plan/core/listener/PurchasePlanExcelReadListenner.java
+80
-12
ExtIEDPlanServiceImpl.java
...nde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
+1
-0
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/vo/ExtPuchasePlanExcelVO.java
View file @
89ee59f8
...
@@ -28,17 +28,25 @@ public class ExtPuchasePlanExcelVO {
...
@@ -28,17 +28,25 @@ public class ExtPuchasePlanExcelVO {
@ExcelProperty
(
value
=
{
"采购计划"
,
"操作*"
},
index
=
0
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"操作*"
},
index
=
0
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
operation
;
private
String
operation
;
/**
* 计划编码
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"计划编号*"
},
index
=
1
)
@ColumnWidth
(
20
)
private
String
planCode
;
/**
/**
* 外协项目名称
* 外协项目名称
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"外协(外购)项目名称*"
},
index
=
1
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"外协(外购)项目名称*"
},
index
=
2
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
outsourceProjectName
;
private
String
outsourceProjectName
;
/**
/**
* 采购技术文件实际提交时间
* 采购技术文件实际提交时间
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"采购技术文件提交时间*"
},
index
=
2
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"采购技术文件提交时间*"
},
index
=
3
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
LocalDateTime
purDesignFileSubmitTime
;
private
LocalDateTime
purDesignFileSubmitTime
;
...
@@ -46,7 +54,7 @@ public class ExtPuchasePlanExcelVO {
...
@@ -46,7 +54,7 @@ public class ExtPuchasePlanExcelVO {
/**
/**
* 合同签订时间*
* 合同签订时间*
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"合同签订时间*"
},
index
=
3
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"合同签订时间*"
},
index
=
4
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
LocalDateTime
contractActualSigningTime
;
private
LocalDateTime
contractActualSigningTime
;
...
@@ -54,14 +62,14 @@ public class ExtPuchasePlanExcelVO {
...
@@ -54,14 +62,14 @@ public class ExtPuchasePlanExcelVO {
/**
/**
* 合同交付时间*
* 合同交付时间*
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"合同交付时间*"
},
index
=
4
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"合同交付时间*"
},
index
=
5
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
LocalDateTime
contractActualDeliveryTime
;
private
LocalDateTime
contractActualDeliveryTime
;
/**
/**
* 采购技术文件负责人
* 采购技术文件负责人
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"采购技术文件负责人*"
},
index
=
5
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"采购技术文件负责人*"
},
index
=
6
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
purDesignFileManager
;
private
String
purDesignFileManager
;
...
@@ -69,7 +77,7 @@ public class ExtPuchasePlanExcelVO {
...
@@ -69,7 +77,7 @@ public class ExtPuchasePlanExcelVO {
/**
/**
* 采购预算
* 采购预算
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"预算(万元)*"
},
index
=
6
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"预算(万元)*"
},
index
=
7
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
purchaseBudget
;
private
String
purchaseBudget
;
...
@@ -84,16 +92,10 @@ public class ExtPuchasePlanExcelVO {
...
@@ -84,16 +92,10 @@ public class ExtPuchasePlanExcelVO {
/**
/**
* 密级
* 密级
*/
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"密级*"
},
index
=
7
)
@ExcelProperty
(
value
=
{
"采购计划"
,
"密级*"
},
index
=
8
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
secretCode
;
private
String
secretCode
;
/**
* 计划编码
*/
@ExcelProperty
(
value
=
{
"采购计划"
,
"计划编号*"
},
index
=
8
)
@ColumnWidth
(
20
)
private
String
planCode
;
/**
/**
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/listener/IEDPlanExcelListenner.java
View file @
89ee59f8
...
@@ -290,7 +290,7 @@ public class IEDPlanExcelListenner extends AnalysisEventListener<ExtIEDPlanExcel
...
@@ -290,7 +290,7 @@ public class IEDPlanExcelListenner extends AnalysisEventListener<ExtIEDPlanExcel
}
}
extIEDPlanVO
.
setEditor
(
extIEDPlanExcelVO
.
getEditor
());
extIEDPlanVO
.
setEditor
(
extIEDPlanExcelVO
.
getEditor
());
Map
<
String
,
Object
>
dynamicAttrs
=
new
HashMap
<>();
Map
<
String
,
Object
>
dynamicAttrs
=
new
HashMap
<>();
dynamicAttrs
.
put
(
"editorName"
,
userUtils
.
getUserById
(
Long
.
valueOf
(
extIEDPlanExcelVO
.
getEditor
())
));
dynamicAttrs
.
put
(
"editorName"
,
userUtils
.
getUserById
(
Long
.
valueOf
(
extIEDPlanExcelVO
.
getEditor
())).
getName
(
));
extIEDPlanVO
.
setDynamicAttrs
(
dynamicAttrs
);
extIEDPlanVO
.
setDynamicAttrs
(
dynamicAttrs
);
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/listener/PurchasePlanExcelReadListenner.java
View file @
89ee59f8
This diff is collapsed.
Click to expand it.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
View file @
89ee59f8
...
@@ -208,6 +208,7 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
...
@@ -208,6 +208,7 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
dxDocumentVO
.
setDynamicAttrs
(
dynamicAttrs
);
dxDocumentVO
.
setDynamicAttrs
(
dynamicAttrs
);
//创建时间
//创建时间
dxDocumentVO
.
setCreateTime
(
LocalDateTime
.
now
());
dxDocumentVO
.
setCreateTime
(
LocalDateTime
.
now
());
//todo wq 设备号和项目代号需要产品解决,暂时注释
//文档扩展类的设备号
//文档扩展类的设备号
dxDocumentExpand
.
setOwnedEquipment
(
extIEDPlanVO
.
getDeviceNumber
());
dxDocumentExpand
.
setOwnedEquipment
(
extIEDPlanVO
.
getDeviceNumber
());
//文档扩展类的项目代号
//文档扩展类的项目代号
...
...
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