This commit is contained in:
苏尹岚
2020-08-21 09:57:21 +08:00
parent 97c3fc87cc
commit 5f06161241

View File

@@ -424,6 +424,7 @@ func getActRule(vendorID, actType int) (actRule *tActRuleInfo, err error) {
func checkDiscountValidation(vendorIDs []int, actType int, pricePercentage float64) (err error) {
pricePercentageMin := int(math.Floor(pricePercentage))
pricePercentageMax := int(math.Ceil(pricePercentage))
fmt.Println(pricePercentageMin, pricePercentageMax, pricePercentage)
errList := errlist.New()
for _, vendorID := range vendorIDs {
actRule, err2 := getActRule(vendorID, actType)