aa
This commit is contained in:
@@ -5374,8 +5374,12 @@ func StoreSkuPriceAudit(ctx *jxcontext.Context, storeSkuAudits []*model.StoreSku
|
||||
actList, _ := dao.QueryActs(db, 0, 0, 10, -1, "", -1, []int{model.ActStatusCreated},
|
||||
[]int{model.ActSkuDirectDown, model.ActSkuSecKill, model.ActSkuDiscount}, nil, storeAudit.StoreID, skuIDList, 0,
|
||||
time.Now().AddDate(0, -3, 0), time.Now(), utils.ZeroTimeValue, utils.ZeroTimeValue)
|
||||
if len(actList.Data) > 0 {
|
||||
return nil, fmt.Errorf("审核的商品正在做活动,请单个审核!活动ID:[%v],门店ID:[%v],商品nameID:[%v],商品名:[%v]", actList.Data[0].ID, storeAudit.StoreID, storeAudit.NameID, skuList[0].Name)
|
||||
if actList != nil {
|
||||
if actList.Data != nil {
|
||||
if len(actList.Data) > 0 {
|
||||
return nil, fmt.Errorf("审核的商品正在做活动,请单个审核!活动ID:[%v],门店ID:[%v],商品nameID:[%v],商品名:[%v]", actList.Data[0].ID, storeAudit.StoreID, storeAudit.NameID, skuList[0].Name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
storeAudits[0].UserID = ctx.GetUserID()
|
||||
|
||||
Reference in New Issue
Block a user