diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index ed6c9a1..8a7574b 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -223,7 +223,7 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, to Table("cast_cost_log ccl"). Select("ccl.*,cwl.cost_type"). Joins("left join cast_work_log cwl on cwl.work_uuid = ccl.work_uuid"). - Where("cwl.work_status = 1") + Where("cwl.work_status = 1 and cwl.deleted_at = 0 and ccl.deleted_at = 0") if req.WorkTitle != "" { session = session.Where("ccl.work_title like ?", "%"+req.WorkTitle+"%") }