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) {