更改ID太长问题

This commit is contained in:
XM-GO
2023-09-19 10:18:50 +08:00
parent 4794e32106
commit a7d0cec2bf
16 changed files with 135 additions and 25 deletions

View File

@@ -2,10 +2,10 @@ package jobs
import (
"fmt"
"github.com/kakuilan/kgo"
"pandax/apps/job/entity"
"pandax/apps/job/services"
"pandax/pkg/global"
"pandax/pkg/tool"
logEntity "pandax/apps/job/entity"
logServices "pandax/apps/job/services"
@@ -54,7 +54,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 = kgo.KStr.Uniqid("")
jobLog.Id = tool.GenerateID()
jobLog.OrgId = e.OrgId
jobLog.Owner = e.Owner
var obj = jobList[e.InvokeTarget]