From bb3aa53466233d550b27629735b228418d3fee87 Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 23 Oct 2019 21:49:42 +0800 Subject: [PATCH] add nothing --- src/contexts/cli/version.go | 2 +- src/contexts/mdb/mdb.go | 5 ++++- usr/librarys/example.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/contexts/cli/version.go b/src/contexts/cli/version.go index 54903851..54ba7aa4 100644 --- a/src/contexts/cli/version.go +++ b/src/contexts/cli/version.go @@ -7,5 +7,5 @@ var version = struct { self int }{ []string{"2017-11-01 01:02:03", "2019-07-13 18:02:21"}, - `2019-10-23 08:31:12`, `mac`, 647, + `2019-10-23 16:00:00`, `centos`, 635, } diff --git a/src/contexts/mdb/mdb.go b/src/contexts/mdb/mdb.go index 643193e4..40960f58 100644 --- a/src/contexts/mdb/mdb.go +++ b/src/contexts/mdb/mdb.go @@ -232,7 +232,7 @@ var Index = &ctx.Context{Name: "mdb", Help: "数据中心", return }}, "show": &ctx.Command{Name: "show table fields...", Help: "查询数据, table: 表名, fields: 字段, where: 查询条件, group: 聚合字段, order: 排序字段", - Form: map[string]int{"where": 1, "eq": 2, "in": 2, "like": 2, "begin": 2, "group": 1, "order": 1, "desc": 0, "limit": 1, "offset": 1, "other": -1}, + Form: map[string]int{"where": 1, "eq": 2, "ne": 2, "in": 2, "like": 2, "begin": 2, "group": 1, "order": 1, "desc": 0, "limit": 1, "offset": 1, "other": -1}, Hand: func(m *ctx.Message, c *ctx.Context, key string, arg ...string) (e error) { if len(arg) == 0 { m.Cmdy(".query", "show tables") @@ -251,6 +251,9 @@ var Index = &ctx.Context{Name: "mdb", Help: "数据中心", for i := 0; i < len(m.Meta["eq"]); i += 2 { where = append(where, fmt.Sprintf("%s='%s'", m.Meta["eq"][i], m.Meta["eq"][i+1])) } + for i := 0; i < len(m.Meta["ne"]); i += 2 { + where = append(where, fmt.Sprintf("%s!='%s'", m.Meta["ne"][i], m.Meta["ne"][i+1])) + } for i := 0; i < len(m.Meta["in"]); i += 2 { where = append(where, fmt.Sprintf("%s in (%s)", m.Meta["in"][i], m.Meta["in"][i+1])) } diff --git a/usr/librarys/example.js b/usr/librarys/example.js index 9a98d531..49d99232 100644 --- a/usr/librarys/example.js +++ b/usr/librarys/example.js @@ -1035,7 +1035,7 @@ function Plugin(page, pane, field, inits, runs) { break case "textarea": kit.AppendChild(option, "br") - input.type = "textarea", item.style = "height:"+(item.height||"50px")+";width:"+(pane.target.clientWidth-30)+"px" + input.type = "textarea", item.style = "height:"+(item.height||"50px")+";width:"+(pane.target.clientWidth-35)+"px" // no break case "text": item.value = value || item.value || ""