Merge branch 'feat-sxy-0911' into dev
This commit is contained in:
commit
479cb7255f
@ -168,8 +168,11 @@ 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 {
|
||||||
fmt.Println("总价转换失败: ", parseErr2)
|
fmt.Println("总价转换失败: ", parseErr2)
|
||||||
|
Loading…
Reference in New Issue
Block a user