caipin 4 年之前
父节点
当前提交
dda546718c
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      models/cm_annex.go
  2. 1 0
      models/cm_contracts_return.go
  3. 1 0
      models/cm_safe_audit.go

+ 1 - 1
models/cm_annex.go

@@ -6,7 +6,7 @@ import (
 
 type CmAnnex struct {
 	Id         int       `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
-	DataType   int       `xorm:"not null default 0 comment('类型1合同回款2.质量附件3.安全附件') TINYINT(1)"`
+	DataType   int       `xorm:"not null default 0 comment('类型1.回款证明2.质量附件3.安全附件4.合同文件') TINYINT(1)"`
 	DataId     int       `xorm:"not null default 0 comment('归属ID') INT(11)"`
 	AccountId  int       `xorm:"not null default 0 comment('账号ID') INT(11)"`
 	Name       string    `xorm:"comment('附件名称') VARCHAR(64)"`

+ 1 - 0
models/cm_contracts_return.go

@@ -16,6 +16,7 @@ type CmContractsReturn struct {
 	CreateUser   string    `xorm:"comment('创建人') VARCHAR(32)"`
 	AccountId    int       `xorm:"not null default 0 comment('项目用户ID') INT(11)"`
 	Remarks      string    `xorm:"comment('备注') VARCHAR(512)"`
+	Annexes      int       `xorm:"default 0 comment('附件数量') TINYINT(2)"`
 	CreateTime   time.Time `xorm:"comment('创建时间') DATETIME"`
 	UpdateTime   time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
 }

+ 1 - 0
models/cm_safe_audit.go

@@ -12,6 +12,7 @@ type CmSafeAudit struct {
 	AuditId      int       `xorm:"not null default 0 comment('审核人id') INT(11)"`
 	AuditOrder   int       `xorm:"not null default 0 comment('审批顺序') INT(11)"`
 	Status       int       `xorm:"default 0 comment('审核状态') INT(11)"`
+	Progress     int       `xorm:"not null default 0 comment('审批进度(0审批1整改2复查)') TINYINT(1)"`
 	CreateTime   time.Time `xorm:"comment('开始时间') DATETIME"`
 	EndTime      time.Time `xorm:"comment('结束时间') DATETIME"`
 	Opinion      string    `xorm:"comment('审批意见') VARCHAR(1024)"`