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
d5bb4616
Commit
d5bb4616
authored
Oct 09, 2021
by
季圣华
Browse files
优化商品条码查询获取商品信息接口
parent
39e9eeae
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialController.java
View file @
d5bb4616
...
...
@@ -491,13 +491,16 @@ public class MaterialController {
Boolean
isDefault
=
depotObj
.
getBoolean
(
"isDefault"
);
if
(
isDefault
)
{
Long
depotId
=
depotObj
.
getLong
(
"id"
);
mvo
.
setDepotId
(
depotId
);
if
(!
"CGDD"
.
equals
(
prefixNo
)
&&
!
"XSDD"
.
equals
(
prefixNo
)
)
{
//除订单之外的单据才有仓库
mvo
.
setDepotId
(
depotId
);
}
//库存
BigDecimal
stock
;
if
(
StringUtil
.
isNotEmpty
(
mvo
.
getSku
())){
stock
=
depotItemService
.
getSkuStockByParam
(
d
epotId
,
mvo
.
getMeId
(),
null
,
null
);
stock
=
depotItemService
.
getSkuStockByParam
(
mvo
.
getD
epotId
()
,
mvo
.
getMeId
(),
null
,
null
);
}
else
{
stock
=
depotItemService
.
getStockByParam
(
d
epotId
,
mvo
.
getId
(),
null
,
null
);
stock
=
depotItemService
.
getStockByParam
(
mvo
.
getD
epotId
()
,
mvo
.
getId
(),
null
,
null
);
if
(
mvo
.
getUnitId
()!=
null
){
Unit
unit
=
unitService
.
getUnit
(
mvo
.
getUnitId
());
if
(
mvo
.
getCommodityUnit
().
equals
(
unit
.
getOtherUnit
()))
{
...
...
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