From 9f98932726cb41697fabccbbbd876205e7255c95 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 11:40:28 +0800
Subject: [PATCH] add

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

diff --git a/service/test/supplier.go b/service/test/supplier.go
index 915190c..07110a2 100644
--- a/service/test/supplier.go
+++ b/service/test/supplier.go
@@ -68,3 +68,9 @@
 	err = db.Limit(limit).Offset(offset).Find(&ss).Error
 	return ss, total, err
 }
+
+// ChangeStatus Change supplier status
+func (sService *SupplierService) ChangeStatus(id uint, status int) (err error) {
+	err = global.GVA_DB.Model(&test.Supplier{}).Where("id = ?", id).Update("status", status).Error
+	return err
+}

--
Gitblit v1.8.0