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

@@ -108,6 +108,11 @@ func PublishJob(ctx *jxcontext.Context, job *model.Job) (err error) {
v.JobID = job.ID
err = dao.CreateEntity(db, v)
}
for _, v := range job.JobImgs {
dao.WrapAddIDCULEntity(v, ctx.GetUserName())
v.JobID = job.ID
err = dao.CreateEntity(db, v)
}
if err != nil {
dao.Rollback(db)
}