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
46a588e7
Commit
46a588e7
authored
Dec 05, 2021
by
季圣华
Browse files
解决商品录入初始库存不能为负数的bug
parent
a20b5ebf
Changes
1
Show whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
46a588e7
...
...
@@ -242,7 +242,7 @@ public class MaterialService {
MaterialInitialStockExample
example
=
new
MaterialInitialStockExample
();
example
.
createCriteria
().
andMaterialIdEqualTo
(
material
.
getId
()).
andDepotIdEqualTo
(
depotId
);
materialInitialStockMapper
.
deleteByExample
(
example
);
if
(
StringUtil
.
isNotEmpty
(
number
)
&&
Double
.
valueOf
(
number
)
>
0
||
lowSafeStock
!=
null
||
highSafeStock
!=
null
)
{
if
(
StringUtil
.
isNotEmpty
(
number
)
&&
Double
.
parseDouble
(
number
)
!=
0
||
lowSafeStock
!=
null
||
highSafeStock
!=
null
)
{
insertInitialStockByMaterialAndDepot
(
depotId
,
material
.
getId
(),
parseBigDecimalEx
(
number
),
lowSafeStock
,
highSafeStock
);
}
//更新当前库存
...
...
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