From 90928cf5c8b5e4f8d5a102ba30f8a885d2955863 Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Wed, 18 Jun 2025 16:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleDao.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index a31b975..4e26c7d 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -224,7 +224,7 @@ func BundleListV2(req *bundle.BundleListRequest) (res *bundle.BundleListResponse func BundleDetailV2(req *bundle.BundleDetailRequest) (res *model.BundleProfile, err error) { var data model.BundleProfile - err = app.ModuleClients.BundleDB.Model(&model.BundleProfile{}).Where("uuid = ? AND deleted_at = 0", req.Uuid). + err = app.ModuleClients.BundleDB.Model(&model.BundleProfile{}).Where("uuid = ? ", req.Uuid). Preload("BundleProfileLang"). Preload("BundleToValueAddService"). First(&data).Error @@ -237,7 +237,7 @@ func BundleDetailV2(req *bundle.BundleDetailRequest) (res *model.BundleProfile, // 套餐上下架 func HandShelf(uuid string, shelfStatus int64) (res *bundle.CommonResponse, err error) { res = new(bundle.CommonResponse) - err = app.ModuleClients.BundleDB.Model(&model.BundleProfile{}).Where("uuid = ? AND deleted_at = 0", uuid).Update("shelf_status", shelfStatus).Error + err = app.ModuleClients.BundleDB.Model(&model.BundleProfile{}).Where("uuid = ?", uuid).Update("shelf_status", shelfStatus).Error if err != nil { res.Msg = "套餐上下架操作失败" @@ -275,7 +275,7 @@ func TxCreateBundleLang(tx *gorm.DB, req *model.BundleProfileLang) (err error) { return } func TxUpdateBundle(tx *gorm.DB, uuid string, columns map[string]interface{}) (err error) { - err = tx.Model(&model.BundleProfile{}).Where("uuid =? and deleted_at = 0", uuid).Updates(columns).Error + err = tx.Model(&model.BundleProfile{}).Where("uuid =?", uuid).Updates(columns).Error if err != nil { return commonErr.ReturnError(err, msg.ErrorUpdateBundleInfo, "更新套餐信息失败: ") }