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
6a3046ff
Commit
6a3046ff
authored
Dec 27, 2020
by
季圣华
Browse files
优化商品
parent
b2c07fa4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
6a3046ff
...
@@ -172,7 +172,7 @@ public class MaterialService {
...
@@ -172,7 +172,7 @@ public class MaterialService {
if
(
jsonObj
.
get
(
"depotId"
)!=
null
&&
jsonObj
.
get
(
"number"
)!=
null
)
{
if
(
jsonObj
.
get
(
"depotId"
)!=
null
&&
jsonObj
.
get
(
"number"
)!=
null
)
{
String
number
=
jsonObj
.
getString
(
"number"
);
String
number
=
jsonObj
.
getString
(
"number"
);
Long
depotId
=
jsonObj
.
getLong
(
"depotId"
);
Long
depotId
=
jsonObj
.
getLong
(
"depotId"
);
if
(
number
!=
null
&&
Double
.
valueOf
(
number
)>
0
)
{
if
(
StringUtil
.
isNotEmpty
(
number
)
&&
Double
.
valueOf
(
number
)>
0
)
{
insertStockByMaterialAndDepot
(
depotId
,
mId
,
parseBigDecimalEx
(
number
));
insertStockByMaterialAndDepot
(
depotId
,
mId
,
parseBigDecimalEx
(
number
));
}
}
}
}
...
@@ -210,7 +210,7 @@ public class MaterialService {
...
@@ -210,7 +210,7 @@ public class MaterialService {
MaterialInitialStockExample
example
=
new
MaterialInitialStockExample
();
MaterialInitialStockExample
example
=
new
MaterialInitialStockExample
();
example
.
createCriteria
().
andMaterialIdEqualTo
(
id
).
andDepotIdEqualTo
(
depotId
);
example
.
createCriteria
().
andMaterialIdEqualTo
(
id
).
andDepotIdEqualTo
(
depotId
);
materialInitialStockMapper
.
deleteByExample
(
example
);
materialInitialStockMapper
.
deleteByExample
(
example
);
if
(
number
!=
null
&&
Double
.
valueOf
(
number
)
>
0
)
{
if
(
StringUtil
.
isNotEmpty
(
number
)
&&
Double
.
valueOf
(
number
)
>
0
)
{
insertStockByMaterialAndDepot
(
depotId
,
id
,
parseBigDecimalEx
(
number
));
insertStockByMaterialAndDepot
(
depotId
,
id
,
parseBigDecimalEx
(
number
));
}
}
}
}
...
...
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