Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
d69424ef
Commit
d69424ef
authored
Mar 20, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料导入优化
parent
0dbe592d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
XlsImporter.java
...ava/com/baosight/hpjx/util/importer/impl/XlsImporter.java
+13
-1
No files found.
src/main/java/com/baosight/hpjx/util/importer/impl/XlsImporter.java
View file @
d69424ef
...
@@ -115,9 +115,21 @@ public class XlsImporter implements Importer {
...
@@ -115,9 +115,21 @@ public class XlsImporter implements Importer {
if
(
keyCname
.
equals
(
cell
.
getContents
())){
if
(
keyCname
.
equals
(
cell
.
getContents
())){
//处理字典
//处理字典
if
(
columnValue
.
indexOf
(
"-"
)
>
0
)
{
/*
if (columnValue.indexOf("-") > 0) {
beanValue.put(keyValue, columnValue.split("-")[0]);
beanValue.put(keyValue, columnValue.split("-")[0]);
continue;
continue;
}*/
if
(
columnValue
.
equals
(
"3-零件"
))
{
beanValue
.
put
(
keyValue
,
"3"
);
continue
;
}
if
(
columnValue
.
equals
(
"4-部件"
))
{
beanValue
.
put
(
keyValue
,
"4"
);
continue
;
}
if
(
columnValue
.
equals
(
"2-耗材"
))
{
beanValue
.
put
(
keyValue
,
"2"
);
continue
;
}
}
//数字进行特定转换
//数字进行特定转换
if
(
column
.
getType
()==
"N"
){
if
(
column
.
getType
()==
"N"
){
...
...
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