This commit is contained in:
laodaming 2023-09-20 15:52:34 +08:00
parent 591abd34e0
commit 5042971472
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ func (p *FsProductPriceModel) GetSimplePriceListByProductIds(ctx context.Context
return
}
func (p *FsProductPriceModel) GetPriceListByProductIdsSizeIds(ctx context.Context, productIds, sizeIds []int64) (resp []FsProductPrice, err error) {
if len(sizeIds) == 0 || len(productIds) == 0 {
return
}

View File

@ -85,7 +85,7 @@ func (s *FsShoppingCartModel) Create(ctx context.Context, data *FsShoppingCart)
}
// 删除
func (s *FsShoppingCartModel) Delete(ctx context.Context, id, userId int64) error {
func (s *FsShoppingCartModel) Delete(ctx context.Context, userId, id int64) error {
return s.db.WithContext(ctx).Model(&FsShoppingCart{}).Where("user_id = ? and id = ?", userId, id).Delete(&FsShoppingCart{}).Error
}