This commit is contained in:
gazebo
2019-07-26 17:34:13 +08:00
parent 08e224a35e
commit 272f5651d8

View File

@@ -31,6 +31,7 @@ type ActOrderRuleParam struct {
type ActStoreSkuParam struct { type ActStoreSkuParam struct {
model.ActStoreSku model.ActStoreSku
ErrMsg string `json:"errMsg"`
} }
type ActDetail struct { type ActDetail struct {
@@ -147,6 +148,7 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac
} }
} }
if err2 := checkDiscountValidation(act.Type, int(actSkuMap.ActualActPrice*100/actSkuMap.VendorPrice)); err2 != nil { if err2 := checkDiscountValidation(act.Type, int(actSkuMap.ActualActPrice*100/actSkuMap.VendorPrice)); err2 != nil {
v.ErrMsg = fmt.Sprintf("err:%s, actPrice:%d, vendorPrice:%d, discount:%d", err2.Error(), actSkuMap.ActualActPrice, actSkuMap.VendorPrice, int(actSkuMap.ActualActPrice*100/actSkuMap.VendorPrice))
wrongSkuList = append(wrongSkuList, v) wrongSkuList = append(wrongSkuList, v)
} else { } else {
dao.WrapAddIDCULDEntity(actSkuMap, ctx.GetUserName()) dao.WrapAddIDCULDEntity(actSkuMap, ctx.GetUserName())