This commit is contained in:
苏尹岚
2020-10-20 17:42:26 +08:00
parent c30588b9ea
commit 9c3be6bcc7
3 changed files with 17 additions and 1 deletions

View File

@@ -131,6 +131,17 @@ func GetJobsNoPage(db *DaoDB, userIDs []string, categoryIDs, statuss []int, from
v.JobSteps = jobSteps
}
}
for _, v := range jobs {
var jobImgs []*model.JobImg
sql3 := `
SELECT *
FROM job_img
WHERE job_id = ?
`
sqlParams3 := []interface{}{v.ID}
err = GetRows(db, &jobImgs, sql3, sqlParams3)
v.JobImgs = jobImgs
}
return jobs, err
}