From 372d7c67ebeab602396994f47b496b2c03645ddc Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 22 May 2024 11:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/consume_integral_settlement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index da7bfb2..e299f26 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -306,8 +306,8 @@ func Total(sess *xorm.Session, date, dayPayAmount string) error { data.AllAmount = AllAmount data.AllIntegral = AllIntegral data.AllIntegralAmount = AllIntegralAmount - update, err := sess.Where("id=?", data.Id).Update(&data) - if update == 0 || err != nil { + _, err := sess.Where("id=?", data.Id).Update(&data) + if err != nil { return errors.New("失败") } return nil