jobimg
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user