This commit is contained in:
laodaming
2023-06-12 18:06:47 +08:00
parent 973df7a901
commit 7f4f8dddad
3 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ func (c *FsCanteenProductModel) GetAllByCanteenTypeId(ctx context.Context, typeI
if err != nil {
return nil, err
}
return nil, err
return
}
func (c *FsCanteenProductModel) UpdateById(ctx context.Context, id int64, data *FsCanteenProduct) error {
return c.db.WithContext(ctx).Model(&FsCanteenProduct{}).Where("`id` = ? ", id).Updates(&data).Error