diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index 2a2be87..8ad68c2 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -592,7 +592,7 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, to Table("cast_cost_log ccl"). Select("ccl.*,cwe.cost_type"). Joins("left join cast_work_extra cwe on cwe.work_uuid = ccl.work_uuid"). - Joins("left join bundle_order_record bor on bor.uuid = ccl.order_uuid"). + Joins("left join bundle_order_record bor on bor.uuid = cwe.bundle_order_uuid"). Where("bor.order_type = ?", req.BundleType). Where("cwe.deleted_at = 0 and ccl.deleted_at = 0 and bor.deleted_at is null") if req.WorkTitle != "" {