From 5c425d440200e84fcbfc98c98e02d0b1420cd366 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 13 十二月 2023 16:39:02 +0800
Subject: [PATCH] 新增grpc获取编码相关代码

---
 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 87a8024..27f4a39 100644
--- a/service/test/supplier.go
+++ b/service/test/supplier.go
@@ -95,3 +95,9 @@
 	err = global.GVA_DB.Model(&test.Supplier{}).Where("id = ?", id).Update("status", status).Error
 	return err
 }
+
+func (sService *SupplierService) MaxAutoIncr() (int, error) {
+	var total int64
+	err := global.GVA_DB.Model(&test.Supplier{}).Count(&total).Error
+	return int(total), err
+}

--
Gitblit v1.8.0