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
8c48a55e
Commit
8c48a55e
authored
Oct 22, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购校验数据修改
parent
00027e0a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PurchasePlanExcelDataVerifyListenner.java
...n/core/listener/PurchasePlanExcelDataVerifyListenner.java
+1
-1
PurchasePlanExcelReadListenner.java
...cs/plan/core/listener/PurchasePlanExcelReadListenner.java
+1
-1
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/listener/PurchasePlanExcelDataVerifyListenner.java
View file @
8c48a55e
...
@@ -54,7 +54,7 @@ public class PurchasePlanExcelDataVerifyListenner extends AnalysisEventListener<
...
@@ -54,7 +54,7 @@ public class PurchasePlanExcelDataVerifyListenner extends AnalysisEventListener<
/**
/**
* excel数据行数
* excel数据行数
*/
*/
private
Integer
excelDataRow
=
-
2
;
private
Integer
excelDataRow
=
0
;
/**
/**
* 错误信息列表
* 错误信息列表
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/listener/PurchasePlanExcelReadListenner.java
View file @
8c48a55e
...
@@ -88,7 +88,6 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
...
@@ -88,7 +88,6 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
public
void
invoke
(
ExtPuchasePlanExcelVO
extPuchasePlanExcelVO
,
AnalysisContext
analysisContext
)
{
public
void
invoke
(
ExtPuchasePlanExcelVO
extPuchasePlanExcelVO
,
AnalysisContext
analysisContext
)
{
log
.
info
(
"解析到一条数据:{}"
,
extPuchasePlanExcelVO
);
log
.
info
(
"解析到一条数据:{}"
,
extPuchasePlanExcelVO
);
if
(!
CommonUtils
.
checkAllPropertiesIsEmpty
(
extPuchasePlanExcelVO
)){
if
(!
CommonUtils
.
checkAllPropertiesIsEmpty
(
extPuchasePlanExcelVO
)){
excelDataRow
++;
cachedDataList
.
add
(
extPuchasePlanExcelVO
);
cachedDataList
.
add
(
extPuchasePlanExcelVO
);
}
}
...
@@ -105,6 +104,7 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
...
@@ -105,6 +104,7 @@ public class PurchasePlanExcelReadListenner extends AnalysisEventListener<ExtPuc
throw
new
DxBusinessException
(
"-1"
,
"导入采购计划数据有误!!"
+
errList
.
toString
());
throw
new
DxBusinessException
(
"-1"
,
"导入采购计划数据有误!!"
+
errList
.
toString
());
}
}
for
(
ExtPuchasePlanExcelVO
extPuchasePlanExcelVO
:
cachedDataList
)
{
for
(
ExtPuchasePlanExcelVO
extPuchasePlanExcelVO
:
cachedDataList
)
{
excelDataRow
++;
ExtPuchasePlanAttributeVO
extPuchasePlanAttributeVO
=
new
ExtPuchasePlanAttributeVO
();
ExtPuchasePlanAttributeVO
extPuchasePlanAttributeVO
=
new
ExtPuchasePlanAttributeVO
();
//将excel数据转换成VO对象
//将excel数据转换成VO对象
transformObject
(
extPuchasePlanAttributeVO
,
extPuchasePlanExcelVO
);
transformObject
(
extPuchasePlanAttributeVO
,
extPuchasePlanExcelVO
);
...
...
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