分类 退菜退库存模式
This commit is contained in:
@@ -149,4 +149,14 @@ public class ShopProdCategoryServiceImpl extends ServiceImpl<ShopProdCategoryMap
|
||||
productService.clearProductCache(id);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void upRefundStock(Long id, Integer isRefundStock) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
ShopProdCategory prodCategory = new ShopProdCategory();
|
||||
prodCategory.setIsRefundStock(isRefundStock);
|
||||
update(prodCategory, query().eq(ShopProdCategory::getId, id).eq(ShopProdCategory::getShopId, shopId));
|
||||
productService.clearProductCache(id);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user