|
@@ -848,21 +848,6 @@ func handleDateDataMapZero(saveDataMap map[string]map[int]float64, date string,
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-func GetFormulaMaxMinReplace(index, edbInfoId int, formulaStr string, edbInfoIdBytes []string, formulaMap map[string]string, valArr map[int]float64) (formulaResult string, isReplace bool) {
|
|
|
- formulaStr = GetMaxMinEdbInfo(formulaStr)
|
|
|
- formulaResult = formulaStr
|
|
|
- dKey := edbInfoIdBytes[index]
|
|
|
- if _, ok := formulaMap[dKey]; ok {
|
|
|
-
|
|
|
- if val, valOk := valArr[edbInfoId]; valOk {
|
|
|
- dvStr := fmt.Sprintf("%v", val)
|
|
|
- formulaResult = strings.Replace(formulaStr, dKey, dvStr, -1)
|
|
|
- isReplace = true
|
|
|
- }
|
|
|
- }
|
|
|
- return
|
|
|
-}
|
|
|
-
|
|
|
func GetMaxMinEdbInfo(formula string) string {
|
|
|
|
|
|
|