From 9ec6be5e493b4867857a7ad50b5b31923539e9f6 Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期四, 20 六月 2024 17:08:12 +0800
Subject: [PATCH] 查询属性值和对象 通过主键ID查询
---
controllers/attribute.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/controllers/attribute.go b/controllers/attribute.go
index 926a09f..6567cea 100644
--- a/controllers/attribute.go
+++ b/controllers/attribute.go
@@ -156,7 +156,7 @@
util.ResponseFormat(c, code.RequestParamError, err.Error())
return
}
- list, count, err := models.NewAttributeSearch().SetPage(params.Page, params.PageSize).SetOrder("id desc").Find()
+ list, count, err := models.NewAttributeSearch().SetEntityType(params.EntityType).SetPage(params.Page, params.PageSize).SetOrder("id desc").Find()
if err != nil {
util.ResponseFormat(c, code.RequestParamError, "鏌ヨ澶辫触")
return
--
Gitblit v1.8.0