解决实时库存查询为null的bug
This commit is contained in:
@@ -1216,7 +1216,8 @@ public class DepotItemService {
|
||||
}
|
||||
|
||||
public BigDecimal getCurrentStockByParam(Long depotId, Long mId) {
|
||||
return depotItemMapperEx.getCurrentStockByParam(depotId, mId);
|
||||
BigDecimal stock = depotItemMapperEx.getCurrentStockByParam(depotId, mId);
|
||||
return stock!=null? stock: BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user