From 34ef7217a034599217a7fdd1e28e1ae6910e1b4b Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 11 十月 2023 20:15:21 +0800
Subject: [PATCH] 菜单获取编码规则

---
 service/receipt.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/receipt.go b/service/receipt.go
index 210b4b7..054c552 100644
--- a/service/receipt.go
+++ b/service/receipt.go
@@ -189,7 +189,7 @@
 		}
 	}
 	err = model.WithTransaction(func(db *gorm.DB) error {
-		err = model.NewReceiptSearch().SetId(receipt.Id).Save(receipt)
+		err = model.NewReceiptSearch().SetId(receipt.Id).Update(receipt)
 		if err != nil {
 			return err
 		}

--
Gitblit v1.8.0