浏览代码

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

baoziqiang 1 天之前
父节点
当前提交
fd0d183578
共有 1 个文件被更改,包括 1 次插入1 次删除
  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