From d533225faddf7b77497b479e8c3fe6458ffe7c40 Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期四, 20 六月 2024 19:52:31 +0800 Subject: [PATCH] 成本单价-销售单价业务修正 --- models/attribute.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/models/attribute.go b/models/attribute.go index 496178e..92ca831 100644 --- a/models/attribute.go +++ b/models/attribute.go @@ -132,7 +132,7 @@ db = db.Where("name = ?", slf.Name) } if slf.Keyword != "" { - db = db.Where("id like ? or data_type like ? or entity_type like ?", fmt.Sprintf("%%%v%%", slf.Keyword), fmt.Sprintf("%%%v%%", slf.Keyword), fmt.Sprintf("%%%v%%", slf.Keyword)) + db = db.Where("id like ? or data_type like ? ", fmt.Sprintf("%%%v%%", slf.Keyword), fmt.Sprintf("%%%v%%", slf.Keyword)) } return db -- Gitblit v1.8.0