Browse Source

消除初始化时间0值报错

pixel 4 years ago
parent
commit
50789c0e24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/model/sys_workflow.go

+ 1 - 1
server/model/sys_workflow.go

@@ -110,7 +110,7 @@ type WorkflowNode struct {
 	Cycle             string         `json:"cycle" gorm:"comment:循环时间"`
 	Duration          string         `json:"duration" gorm:"comment:持续时间"`
 	HideIcon          bool           `json:"hideIcon" gorm:"comment:是否隐藏图标"`
-	DueDate           time.Time      `json:"dueDate" gorm:"comment:到期时间"`
+	DueDate           *time.Time     `json:"dueDate" gorm:"comment:到期时间"`
 	AssignType        string         `json:"assignType" gorm:"comment:审批类型"`
 	AssignValue       string         `json:"assignValue" gorm:"comment:审批类型值"`
 	Success           bool           `json:"success" gorm:"comment:是否成功"`