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
1c74faab
Commit
1c74faab
authored
Jun 06, 2020
by
季圣华
Browse files
解决商品导入的bug
parent
2f7b0961
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
1c74faab
...
...
@@ -425,10 +425,9 @@ public class MaterialService {
m
.
setEnabled
(
enabled
.
equals
(
"1"
)?
true
:
false
);
//缓存各个仓库的库存信息
Map
<
Long
,
BigDecimal
>
stockMap
=
new
HashMap
<
Long
,
BigDecimal
>();
int
depotSize
=
depotCount
>
10
?
10
:
depotCount
;
//excel里面的仓库数量
for
(
int
j
=
1
;
j
<=
depotSize
;
j
++)
{
for
(
int
j
=
1
;
j
<=
depotCount
;
j
++)
{
int
col
=
15
+
j
;
if
(
col
<
=
src
.
getColumns
()){
if
(
col
<
src
.
getColumns
()){
String
depotName
=
ExcelUtils
.
getContent
(
src
,
1
,
col
);
//获取仓库名称
Long
depotId
=
depotService
.
getIdByName
(
depotName
);
if
(
depotId
!=
0L
){
...
...
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