This commit is contained in:
gazebo
2019-08-08 22:42:46 +08:00
parent a06c4d471f
commit 3541fada72
2 changed files with 16 additions and 13 deletions

View File

@@ -540,16 +540,10 @@ func QueryActs(ctx *jxcontext.Context, actID int, offset, pageSize int, keyword
func GetActStoreSkuInfo(ctx *jxcontext.Context, actID int, vendorIDs []int) (actStoreSkuList []*model.ActStoreSku2, err error) {
db := dao.GetDB()
actStoreSkuMap, err := dao.GetActStoreSkuVendorInfo(db, actID, vendorIDs, nil, nil)
actStoreSkuList, err = dao.GetActStoreSkuVendorList(db, actID, vendorIDs, nil, nil)
if err != nil {
return nil, err
}
// if len(actStoreSkuMap) == 0 {
// return nil, fmt.Errorf("不能找到活动:%d", actID)
// }
for _, v := range actStoreSkuMap {
actStoreSkuList = append(actStoreSkuList, v...)
}
return actStoreSkuList, err
}