Skip to content

Commit

Permalink
修复自定义查询 in 查询bug
Browse files Browse the repository at this point in the history
  • Loading branch information
windha committed Sep 9, 2021
1 parent 0801923 commit 6ae0bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/view/genfunc/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type Condition struct {
}
// And a condition by and .and 一个条件
func (c *Condition) And(column string, cases string, value ...interface{}) {
func (c *Condition) And(column string, cases string, value interface{}) {
c.list = append(c.list, &conditionInfo{
andor: "and",
column: column, // 列名
Expand All @@ -127,7 +127,7 @@ func (c *Condition) And(column string, cases string, value ...interface{}) {
}
// Or a condition by or .or 一个条件
func (c *Condition) Or(column string, cases string, value ...interface{}) {
func (c *Condition) Or(column string, cases string, value interface{}) {
c.list = append(c.list, &conditionInfo{
andor: "or",
column: column, // 列名
Expand Down
4 changes: 2 additions & 2 deletions data/view/genfunc/model/gen.base.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type Condition struct {
}

// And a condition by and .and 一个条件
func (c *Condition) And(column string, cases string, value ...interface{}) {
func (c *Condition) And(column string, cases string, value interface{}) {
c.list = append(c.list, &conditionInfo{
andor: "and",
column: column, // 列名
Expand All @@ -108,7 +108,7 @@ func (c *Condition) And(column string, cases string, value ...interface{}) {
}

// Or a condition by or .or 一个条件
func (c *Condition) Or(column string, cases string, value ...interface{}) {
func (c *Condition) Or(column string, cases string, value interface{}) {
c.list = append(c.list, &conditionInfo{
andor: "or",
column: column, // 列名
Expand Down

0 comments on commit 6ae0bf4

Please sign in to comment.