From 08d858716ad674ebe81e9c11c62c9ec4b6ce8d87 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 17 八月 2023 20:00:45 +0800 Subject: [PATCH] add --- model/quotation.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/model/quotation.go b/model/quotation.go index 99d70fe..68a0df0 100644 --- a/model/quotation.go +++ b/model/quotation.go @@ -147,3 +147,7 @@ slf.SearchMap = searchMap return slf } +func (slf *QuotationSearch) SetIds(ids []int) *QuotationSearch { + slf.Orm = slf.Orm.Where("id in (?)", ids) + return slf +} -- Gitblit v1.8.0