caipin 4 years ago
parent
commit
32c70a52fe
2 changed files with 8 additions and 7 deletions
  1. 1 1
      models/cm_annex.go
  2. 7 6
      models/cm_rule.go

+ 1 - 1
models/cm_annex.go

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

+ 7 - 6
models/cm_rule.go

@@ -1,10 +1,11 @@
 package models
 package models
 
 
 type CmRule struct {
 type CmRule struct {
-	Id           int    `xorm:"not null pk autoincr comment('自增id') INT(11)"`
-	ProjectId    int    `xorm:"not null default 0 comment('项目ID') INT(11)"`
-	BidsectionId int    `xorm:"not null default 0 comment('标段ID') INT(11)"`
-	SafeRule     string `xorm:"comment('安全巡检编号规则') VARCHAR(255)"`
-	QualityRule  string `xorm:"comment('质量巡检编号规则') VARCHAR(255)"`
-	ContractRule string `xorm:"comment('合同编号规则') VARCHAR(255)"`
+	Id                 int    `xorm:"not null pk autoincr comment('自增id') INT(11)"`
+	ProjectId          int    `xorm:"not null default 0 comment('项目ID') INT(11)"`
+	BidsectionId       int    `xorm:"not null default 0 comment('标段ID') INT(11)"`
+	SafeRule           string `xorm:"comment('安全巡检编号规则') VARCHAR(255)"`
+	QualityRule        string `xorm:"comment('质量巡检编号规则') VARCHAR(255)"`
+	ContractReturnRule string `xorm:"comment('合同收入编号规则') VARCHAR(255)"`
+	ContractPaidRule   string `xorm:"comment('合同支出编号规则') VARCHAR(255)"`
 }
 }