Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 26ef90c

Browse files
committed
update models.
1 parent 3d6f015 commit 26ef90c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎apis/process/workOrder.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func CreateWorkOrder(c *gin.Context) {
9999
tx := orm.Eloquent.Begin()
100100
var workOrderInfo = process.WorkOrderInfo{
101101
Title: workOrderValue.Title,
102+
Priority: workOrderValue.Priority,
102103
Process: workOrderValue.Process,
103104
Classify: workOrderValue.Classify,
104105
State: workOrderValue.State,

‎models/process/workOrder.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
type WorkOrderInfo struct {
1414
base.Model
1515
Title string `gorm:"column:title; type:varchar(128)" json:"title" form:"title"` // 工单标题
16+
Priority int `gorm:"column:priority; type:int(11)" json:"priority" form:"priority"` // 工单优先级 1,正常 2,紧急 3,非常紧急
1617
Process int `gorm:"column:process; type:int(11)" json:"process" form:"process"` // 流程ID
1718
Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 分类ID
1819
IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end" form:"is_end"` // 是否结束, 0 未结束,1 已结束

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /