From 002539c8dc7eae6e64da1608245be01a889c061c Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 02 十二月 2023 14:48:14 +0800 Subject: [PATCH] 修改销售明细 --- api/v1/contract.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/v1/contract.go b/api/v1/contract.go index 5cfdd31..a0228fc 100644 --- a/api/v1/contract.go +++ b/api/v1/contract.go @@ -161,15 +161,15 @@ return } + if params.SearchMap == nil { + params.SearchMap = make(map[string]interface{}, 0) + } userInfo := utils.GetUserInfo(c) if userInfo.UserType == constvar.UserTypeSub { - if params.SearchMap == nil { - params.SearchMap = make(map[string]interface{}, 0) - } params.SearchMap["member_ids"] = userInfo.SubUserIds } - contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.SearchMap) + contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.SearchMap, params.Keyword) if errCode != ecode.OK { ctx.Fail(errCode) return -- Gitblit v1.8.0