过滤重复作品
This commit is contained in:
parent
76390c3f66
commit
f0dbb9c9be
@ -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+"%")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user