From e1c0fe2768d32f79920ceda92383981d4ff12058 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 15 三月 2024 10:07:50 +0800
Subject: [PATCH] 获取销售明细产品信息
---
service/contract.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/service/contract.go b/service/contract.go
index 2910f87..b6825ef 100644
--- a/service/contract.go
+++ b/service/contract.go
@@ -31,9 +31,9 @@
return ecode.OK
}
-func (ContractService) GetContractList(page, pageSize int, data map[string]interface{}) ([]*model.Contract, int64, int) {
+func (ContractService) GetContractList(page, pageSize int, data map[string]interface{}, keyword string) ([]*model.Contract, int64, int) {
// get contact list
- contacts, total, err := model.NewContractSearch().SetPage(page, pageSize).SetSearchMap(data).FindAll()
+ contacts, total, err := model.NewContractSearch().SetPage(page, pageSize).SetSearchMap(data).SetKeyword(keyword).FindAll()
if err != nil {
return nil, 0, ecode.ContractListErr
}
--
Gitblit v1.8.0