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

+ 15 - 0
models/cm_annex.go

@@ -0,0 +1,15 @@
+package models
+
+import (
+	"time"
+)
+
+type CmAnnex struct {
+	Id         int       `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
+	DataType   int       `xorm:"not null default 0 comment('类型1合同回款') TINYINT(1)"`
+	DataId     int       `xorm:"not null default 0 comment('归属ID') INT(11)"`
+	Name       string    `xorm:"comment('附件名称') VARCHAR(64)"`
+	OssUrl     string    `xorm:"comment('访问路径') VARCHAR(255)"`
+	CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
+	UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
+}

+ 1 - 7
models/cm_contracts_return.go

@@ -1,9 +1,3 @@
-/*
- * @description:
- * @Author: CP
- * @Date: 2020-11-26 11:30:27
- * @FilePath: \construction_management\models\cm_contracts_return.go
- */
 package models
 
 import (
@@ -20,7 +14,7 @@ type CmContractsReturn struct {
 	Price        string    `xorm:"default 0.00 comment('回款金额') DECIMAL(12,2)"`
 	Way          string    `xorm:"comment('回款方式') VARCHAR(32)"`
 	CreateUser   string    `xorm:"comment('创建人') VARCHAR(32)"`
-	AccountId    int       `xorm:"not null default '0' comment('项目用户ID') 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"`