From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 model/contract.go |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/model/contract.go b/model/contract.go
index 63dd9cf..e437c6c 100644
--- a/model/contract.go
+++ b/model/contract.go
@@ -22,7 +22,7 @@
 		File                  string                `json:"file" gorm:"column:file;type:varchar(255);comment:鍚堝悓鏂囦欢"`
 		CreatedAt             *CustomTime           `json:"created_at" gorm:"column:created_at;type:datetime;comment:鍒涘缓鏃堕棿"`
 		CodeStandID           string                `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:缂栫爜id"`
-		//SendTime              string                `json:"sendTime" gorm:"column:send_time;type:varchar(255);comment:鍙戣揣鏃堕棿"`
+		SendTime              string                `json:"sendTime" gorm:"column:send_time;type:varchar(255);comment:鍙戣揣鏃堕棿"`
 		gormModel
 	}
 
@@ -80,6 +80,10 @@
 				if key == "member_id" {
 					db = db.Where(key+"= ?", v)
 				}
+			case []int:
+				if key == "member_ids" {
+					db = db.Where("contract.member_id in ?", v)
+				}
 			}
 		}
 	}

--
Gitblit v1.8.0