zqbao 5 hónapja
szülő
commit
136cbec964
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      services/data/edb_info.go

+ 5 - 0
services/data/edb_info.go

@@ -2427,6 +2427,11 @@ func formatCalculateFormula(calculateFormula string) (ruleTitle string) {
 			} else {
 				singleFormula["公式"] = val
 			}
+			if fLen == 1 {
+				singleFormula["日期"] = "全部"
+				newCalculateFormula = append(newCalculateFormula, singleFormula)
+				break
+			}
 			date, ok := tmpCalculateFormula[i]["d"]
 			if ok {
 				var tmpDate string