This commit is contained in:
suyl
2021-08-16 09:41:38 +08:00
parent b067647050
commit 140fda8927
4 changed files with 86 additions and 63 deletions

View File

@@ -982,6 +982,20 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
return 0, err
}
//if len(actMap) == 0 {
//
// return 0, fmt.Errorf("活动%d不存在或已被取消", actID)
//}
//errList := errlist.New()
//for vendorID, act := range actMap {
// if vendorID == model.VendorIDEBAI && act.CreateType != model.ActCreateTypeAPI {
// errList.AddErr(fmt.Errorf("饿百平台不支持修改或取消网页活动"))
// }
//}
//if errList.GetErrListAsOne() != nil {
// return 0, errList.GetErrListAsOne()
//}
actStoreSkuMap, err := dao.GetActStoreSkuVendorInfo(db, actID, nil, nil, nil)
if err != nil {
return 0, err
@@ -2095,3 +2109,7 @@ func GetActMtwmVendor(ctx *jxcontext.Context, storeIDs, skuIDs []int, keyword, b
func GetActMtwmVendorSku(ctx *jxcontext.Context, storeID int, keyword string, actType, offset, pageSize int) (page *model.PagedInfo, err error) {
return dao.GetActMtwmVendorSkuPage(dao.GetDB(), storeID, keyword, actType, offset, pageSize)
}
func DeleteActStoreSkuVendor(ctx *jxcontext.Context, db *dao.DaoDB, actStoreSkuParam []*ActStoreSkuParam) (err error) {
return fmt.Errorf("暂不支持直接取消平台活动,开发中……")
}