|
mathFormula := []string{"MAX", "MIN", "ABS", "ACOS", "ASIN", "CEIL", "MOD", "POW", "ROUND", "SIGN", "SIN", "TAN", "LOG10", "LOG2", "LOG"}
|
|
mathFormula := []string{"MAX", "MIN", "ABS", "ACOS", "ASIN", "CEIL", "MOD", "POW", "ROUND", "SIGN", "SIN", "TAN", "LOG10", "LOG2", "LOG"}
|
|
@@ -56,7 +55,9 @@ func ReplaceFormula(edbInfoIdArr []*data_manage.EdbInfo, valArr map[int]float64,
|
|
if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
|
|
if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
|
|
formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
|
|
formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
|