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