Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
761721ec
Commit
761721ec
authored
Jun 06, 2020
by
季圣华
Browse files
优化商品导入功能
parent
748da238
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
761721ec
...
@@ -387,7 +387,6 @@ public class MaterialService {
...
@@ -387,7 +387,6 @@ public class MaterialService {
Long
categoryId
=
materialCategoryService
.
getCategoryIdByName
(
categoryName
);
Long
categoryId
=
materialCategoryService
.
getCategoryIdByName
(
categoryName
);
m
.
setCategoryid
(
categoryId
);
m
.
setCategoryid
(
categoryId
);
m
.
setSafetystock
(
parseBigDecimalEx
(
safetyStock
));
m
.
setSafetystock
(
parseBigDecimalEx
(
safetyStock
));
m
.
setUnit
(
unit
);
String
manyUnit
=
ExcelUtils
.
getContent
(
src
,
i
,
7
);
//副单位
String
manyUnit
=
ExcelUtils
.
getContent
(
src
,
i
,
7
);
//副单位
String
barCode
=
ExcelUtils
.
getContent
(
src
,
i
,
8
);
//基础条码
String
barCode
=
ExcelUtils
.
getContent
(
src
,
i
,
8
);
//基础条码
String
manyBarCode
=
ExcelUtils
.
getContent
(
src
,
i
,
9
);
//副条码
String
manyBarCode
=
ExcelUtils
.
getContent
(
src
,
i
,
9
);
//副条码
...
@@ -417,6 +416,8 @@ public class MaterialService {
...
@@ -417,6 +416,8 @@ public class MaterialService {
otherObj
.
put
(
"wholesaleDecimal"
,
parsePrice
(
wholesaleDecimal
,
ratio
));
otherObj
.
put
(
"wholesaleDecimal"
,
parsePrice
(
wholesaleDecimal
,
ratio
));
otherObj
.
put
(
"lowDecimal"
,
parsePrice
(
lowDecimal
,
ratio
));
otherObj
.
put
(
"lowDecimal"
,
parsePrice
(
lowDecimal
,
ratio
));
materialExObj
.
put
(
"other"
,
otherObj
);
materialExObj
.
put
(
"other"
,
otherObj
);
}
else
{
m
.
setUnit
(
unit
);
}
}
m
.
setMaterialExObj
(
materialExObj
);
m
.
setMaterialExObj
(
materialExObj
);
String
enabled
=
ExcelUtils
.
getContent
(
src
,
i
,
15
);
//状态
String
enabled
=
ExcelUtils
.
getContent
(
src
,
i
,
15
);
//状态
...
...
Write
Preview
Supports
Markdown
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