[优化]优化目录

This commit is contained in:
PandaX
2023-11-07 16:45:23 +08:00
parent 3a4cea5b26
commit 6bdc4b1dd6
37 changed files with 97 additions and 98 deletions

View File

@@ -7,8 +7,7 @@ import (
"pandax/apps/job/services"
logServices "pandax/apps/job/services"
"pandax/pkg/global"
"pandax/pkg/global_model"
"pandax/pkg/global/model"
"sync"
"time"
@@ -53,7 +52,7 @@ type ExecJob struct {
func (e *ExecJob) Run() {
startTime := time.Now()
jobLog := logEntity.JobLog{Name: e.Name, EntryId: e.EntryId, TargetInvoke: e.InvokeTarget, Status: "0"}
jobLog.Id = global_model.GenerateID()
jobLog.Id = model.GenerateID()
jobLog.OrgId = e.OrgId
jobLog.Owner = e.Owner
var obj = jobList[e.InvokeTarget]