From 88324f3d47dab99da5b4bd9422e50b63b97c242c Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 30 八月 2023 19:51:00 +0800
Subject: [PATCH] fix

---
 service/test/supplier.go |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/service/test/supplier.go b/service/test/supplier.go
index 39595c7..4ce559f 100644
--- a/service/test/supplier.go
+++ b/service/test/supplier.go
@@ -66,6 +66,18 @@
 	if info.SupplierType != "" {
 		db = db.Where("supplier_type LIKE ?", "%"+info.SupplierType+"%")
 	}
+	if info.Industry != "" {
+		db = db.Where("industry LIKE ?", "%"+info.Industry+"%")
+	}
+	if info.Contact != "" {
+		db = db.Where("contact LIKE ?", "%"+info.Contact+"%")
+	}
+	if info.Phone != "" {
+		db = db.Where("phone LIKE ?", "%"+info.Phone+"%")
+	}
+	if info.CreatedAt != nil {
+		db = db.Where("created_at = ?", info.CreatedAt)
+	}
 	err = db.Count(&total).Error
 	if err != nil {
 		return

--
Gitblit v1.8.0