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
2f7b0961
"erp_web/css/common.css" did not exist on "53ee7dfea8ae6ed4a7439ad02a9d2adace54ddfb"
Commit
2f7b0961
authored
Jun 06, 2020
by
季圣华
Browse files
解决商品导入的bug
parent
0dde92a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
2f7b0961
...
...
@@ -20,6 +20,7 @@ import com.jsh.erp.service.user.UserService;
import
com.jsh.erp.utils.BaseResponseInfo
;
import
com.jsh.erp.utils.ExcelUtils
;
import
com.jsh.erp.utils.StringUtil
;
import
jxl.Cell
;
import
jxl.Sheet
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -424,7 +425,8 @@ public class MaterialService {
m
.
setEnabled
(
enabled
.
equals
(
"1"
)?
true
:
false
);
//缓存各个仓库的库存信息
Map
<
Long
,
BigDecimal
>
stockMap
=
new
HashMap
<
Long
,
BigDecimal
>();
for
(
int
j
=
1
;
j
<=
depotCount
;
j
++)
{
int
depotSize
=
depotCount
>
10
?
10
:
depotCount
;
//excel里面的仓库数量
for
(
int
j
=
1
;
j
<=
depotSize
;
j
++)
{
int
col
=
15
+
j
;
if
(
col
<=
src
.
getColumns
()){
String
depotName
=
ExcelUtils
.
getContent
(
src
,
1
,
col
);
//获取仓库名称
...
...
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