Explorar el Código

Merge branch 'bzq1/pool_317_stl_rename' of eta_server/eta_api into debug

baoziqiang hace 1 día
padre
commit
fd0d183578
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/data/stl/stl.go

+ 1 - 1
services/data/stl/stl.go

@@ -67,7 +67,7 @@ func GenerateStlEdbData(req *request.StlConfigReq, adminId int) (resp *response.
 	case LAST_N_YEARS:
 		condition += " AND data_time >=?"
 		year := time.Now().Year()
-		lastNyear, er := strconv.Atoi(req.LastNYear)
+		lastNyear, er := strconv.Atoi(confReq.LastNYear)
 		if er != nil {
 			msg = "最近N年输入不合法"
 			err = er