From f94dabd45e749d49cbefe775b1948cf4d18e8b26 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 11 Oct 2024 09:54:30 +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 --- consume/zhios_valid_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/zhios_valid_user.go b/consume/zhios_valid_user.go index 7b3735e..8da513d 100644 --- a/consume/zhios_valid_user.go +++ b/consume/zhios_valid_user.go @@ -188,7 +188,7 @@ WHERE olr.uid = ? AND ol.state IN (1,2,3); count1, _ := eg.Where("uid=?", user.Uid).In("state", []string{"1", "2", "3"}).Sum(&model.MallOrd{}, "cost_price") count2, _ := eg.Where("uid=?", user.Uid).In("state", []string{"1", "2", "3"}).Sum(&model2.O2oOrd{}, "cost_price") count3, _ := eg.Where("uid=?", user.Uid).In("state", []string{"1", "2", "3"}).Sum(&model2.B2cOrd{}, "cost_price") - if count+count3+count2+count1 > utils.AnyToFloat64(v) { + if count+count3+count2+count1 >= utils.AnyToFloat64(v) { todone-- } case "receive":