From cc6f1577a162db49282ad3e004ae946cedd416a7 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Wed, 22 Oct 2025 15:22:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=89=A9=E5=B1=95=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=AE=97=E4=BD=9C=E5=A2=9E=E5=80=BC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleExtend.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index 1df79fa..94dbbc6 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -398,7 +398,11 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, to session = session.Where("ccl.submit_time >= ?", time.UnixMilli(req.SubmitTimeStart)) } if req.CostType != 0 { - session = session.Where("cwl.cost_type = ?", req.CostType) + if req.CostType == 1 { + session = session.Where("cwl.cost_type = ?", req.CostType) + } else { + session = session.Where("cwl.cost_type in ?", []int{3, 2}) + } } if req.User != "" { if utils.IsPhoneNumber(req.User) {