aa
This commit is contained in:
@@ -2195,9 +2195,7 @@ func MtUnionJobAutoUpdate(ctx *jxcontext.Context) (err error) {
|
||||
percentage = utils.Str2Int(ratios[1])
|
||||
}
|
||||
}
|
||||
_, _, err = PublishJob(ctx, &model.JobExt{
|
||||
FinishedAtStr: utils.Time2Str(v.DateEnd),
|
||||
Job: model.Job{
|
||||
job := &model.Job{
|
||||
VendorID: model.VendorIDMTWM,
|
||||
Title: v.ActName,
|
||||
JobCategoryID: model.JobCategoryIDUnion,
|
||||
@@ -2217,8 +2215,10 @@ func MtUnionJobAutoUpdate(ctx *jxcontext.Context) (err error) {
|
||||
UnionActID: utils.Int2Str(v.ActID),
|
||||
Percentage: percentage,
|
||||
UserID: "1439B3E07D3911EA881A525400E86DC0",
|
||||
},
|
||||
})
|
||||
FinishedAt: &v.DateEnd,
|
||||
}
|
||||
dao.WrapAddIDCULDEntity(job, ctx.GetUserName())
|
||||
dao.CreateEntity(db, job)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user