From 272f5651d88c08bbc959f35607e448c104d5c5c5 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 26 Jul 2019 17:34:13 +0800 Subject: [PATCH] - fk --- business/jxstore/act/act.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index ce4d17cd6..2e20c8c4a 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -31,6 +31,7 @@ type ActOrderRuleParam struct { type ActStoreSkuParam struct { model.ActStoreSku + ErrMsg string `json:"errMsg"` } 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 { + 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) } else { dao.WrapAddIDCULDEntity(actSkuMap, ctx.GetUserName())