From 0ddbf564f6e2a33c4f73141423ad0905da4278d0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 16:36:33 +0800
Subject: [PATCH] 增加查询字段接口,保存字典接口
---
service/test/industry.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/service/test/industry.go b/service/test/industry.go
index bf459bc..1ac2a4c 100644
--- a/service/test/industry.go
+++ b/service/test/industry.go
@@ -34,7 +34,7 @@
// UpdateIndustry 鏇存柊Industry璁板綍
// Author [piexlmax](https://github.com/piexlmax)
func (iService *IndustryService) UpdateIndustry(i test.Industry) (err error) {
- err = global.GVA_DB.Save(&i).Error
+ err = global.GVA_DB.Updates(&i).Error
return err
}
--
Gitblit v1.8.0