瀏覽代碼

新增数据刷新时间

hongze 3 年之前
父節點
當前提交
672e2ee796
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/data_manage/edb_info.go

+ 1 - 1
models/data_manage/edb_info.go

@@ -75,7 +75,7 @@ func GetEdbInfoMaxAndMinInfo(source int, edbCode string) (item *EdbInfoMaxAndMin
 func ModifyEdbInfoMaxAndMinInfo(edbInfoId int, item *EdbInfoMaxAndMinInfo) (err error) {
 	o := orm.NewOrm()
 	o.Using("data")
-	sql := ` UPDATE edb_info SET start_date=?,end_date=?,min_value=?,max_value=? WHERE edb_info_id=? `
+	sql := ` UPDATE edb_info SET start_date=?,end_date=?,min_value=?,max_value=?,modify_time=NOW() WHERE edb_info_id=? `
 	_, err = o.Raw(sql, item.MinDate, item.MaxDate, item.MinValue, item.MaxValue, edbInfoId).Exec()
 	return
 }