|
@@ -584,7 +584,7 @@ public class WebsitSalesLogic {
|
|
}
|
|
}
|
|
|
|
|
|
public List<WebsitSalesGoodsVO> existStockGoods(String saleType, String websitId, String categoryId, WebsitGoodsTypeEnum type,
|
|
public List<WebsitSalesGoodsVO> existStockGoods(String saleType, String websitId, String categoryId, WebsitGoodsTypeEnum type,
|
|
- String goodsName, String orderEnginBaseId) {
|
|
|
|
|
|
+ String goodsName, String orderEnginBaseId, String storageId) {
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
String companyId = "";
|
|
String companyId = "";
|
|
if (Objects.nonNull(adminUser.getAdminCompanyWechat())) {
|
|
if (Objects.nonNull(adminUser.getAdminCompanyWechat())) {
|
|
@@ -596,7 +596,7 @@ public class WebsitSalesLogic {
|
|
}
|
|
}
|
|
List<WebsitSalesGoodsVO> goodsList;
|
|
List<WebsitSalesGoodsVO> goodsList;
|
|
if (type.getKey().equals(WebsitGoodsTypeEnum.M.getKey())) {
|
|
if (type.getKey().equals(WebsitGoodsTypeEnum.M.getKey())) {
|
|
- goodsList = materialMapper.existStockGoods(companyId, websitId, type.getKey(), categoryId, goodsName, null, null);
|
|
|
|
|
|
+ goodsList = materialMapper.existStockGoods(companyId, websitId, type.getKey(), categoryId, goodsName, null, null, storageId);
|
|
} else {
|
|
} else {
|
|
goodsList = materialMapper.notStockGoods(companyId, websitId, type.getKey(), goodsName);
|
|
goodsList = materialMapper.notStockGoods(companyId, websitId, type.getKey(), goodsName);
|
|
}
|
|
}
|
|
@@ -685,7 +685,8 @@ public class WebsitSalesLogic {
|
|
|
|
|
|
|
|
|
|
public List<WebsitSalesGoodsVO> existStockGoodsList(String websitId, String categoryId, WebsitGoodsTypeEnum type,
|
|
public List<WebsitSalesGoodsVO> existStockGoodsList(String websitId, String categoryId, WebsitGoodsTypeEnum type,
|
|
- String goodsName, String goodsSpecification, String partType) {
|
|
|
|
|
|
+ String goodsName, String goodsSpecification, String partType,
|
|
|
|
+ String storageId) {
|
|
|
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
String companyId = "";
|
|
String companyId = "";
|
|
@@ -693,7 +694,7 @@ public class WebsitSalesLogic {
|
|
companyId = adminUser.getAdminCompanyWechat().getCompanyWechatId();
|
|
companyId = adminUser.getAdminCompanyWechat().getCompanyWechatId();
|
|
}
|
|
}
|
|
|
|
|
|
- List<WebsitSalesGoodsVO> goodsList = materialMapper.existStockGoods(companyId, websitId, type.getKey(), categoryId, goodsName, goodsSpecification, partType);
|
|
|
|
|
|
+ List<WebsitSalesGoodsVO> goodsList = materialMapper.existStockGoods(companyId, websitId, type.getKey(), categoryId, goodsName, goodsSpecification, partType, storageId);
|
|
if (CollectionUtil.isNotEmpty(goodsList) && WebsitGoodsTypeEnum.P.getKey().equals(type.getKey())) {
|
|
if (CollectionUtil.isNotEmpty(goodsList) && WebsitGoodsTypeEnum.P.getKey().equals(type.getKey())) {
|
|
for (WebsitSalesGoodsVO vo : goodsList) {
|
|
for (WebsitSalesGoodsVO vo : goodsList) {
|
|
this.computeSalesPrice(companyId, vo);
|
|
this.computeSalesPrice(companyId, vo);
|