Merge branch 'feat-sxy-0911' into dev

This commit is contained in:
孙肖扬 2025-09-11 15:13:12 +08:00
commit 479cb7255f

View File

@ -168,7 +168,10 @@ func SaveValueAddService(in *bundle.ValueAddServiceLang) (res *bundle.SaveRespon
return res, errors.New("单价不能为空: " + parseErr1.Error()) return res, errors.New("单价不能为空: " + parseErr1.Error())
} }
if option.TotalPrice == "" { if option.TotalPrice == "" {
if option.Symbol == "=" {
return res, errors.New("总价不能为空") return res, errors.New("总价不能为空")
}
option.TotalPrice = "0"
} }
totalPrice, parseErr2 := strconv.ParseFloat(option.TotalPrice, 32) totalPrice, parseErr2 := strconv.ParseFloat(option.TotalPrice, 32)
if parseErr2 != nil { if parseErr2 != nil {