Browse Source

后端:目录管理表添加责任部室字段

baichengfei 5 năm trước cách đây
mục cha
commit
6083e2b502

+ 5 - 2
src/dashoo.cn/backend/api/business/oilsupplier/oilcatalog/oilcatalog.go

@@ -1,7 +1,7 @@
 package oilcatalog
 
 import (
-"time"
+	"time"
 )
 
 type OilCatalog struct {
@@ -19,6 +19,10 @@ type OilCatalog struct {
 	Business       string    `xorm:"comment('业务范围') TEXT"`
 	ValidityFrom   time.Time `xorm:"comment('有效期起') DATETIME"`
 	ValidityTo     time.Time `xorm:"comment('有效期止') DATETIME"`
+	DeptId         int       `xorm:"INT(11)"`
+	Dept           string    `xorm:"comment('申报单位') VARCHAR(255)"`
+	DutyDeptId     int       `xorm:"INT(11)"`
+	DutyDept       string    `xorm:"comment('责任处室') VARCHAR(255)"`
 	Remark         string    `xorm:"comment('备注') VARCHAR(255)"`
 	Status         string    `xorm:"VARCHAR(10)"`
 	FirstAudit     int       `xorm:"comment('初审人') INT(11)"`
@@ -32,4 +36,3 @@ type OilCatalog struct {
 	ModifiedUserId int       `xorm:"INT(11)"`
 	ModifiedBy     string    `xorm:"VARCHAR(50)"`
 }
-