From 3f5aa5f14c56e55a05902c7e3b9b112eb23ee80d Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 03 一月 2024 17:27:04 +0800
Subject: [PATCH] 采购类型修改

---
 model/test/supplier.go |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/model/test/supplier.go b/model/test/supplier.go
index 4fef2df..5519a66 100644
--- a/model/test/supplier.go
+++ b/model/test/supplier.go
@@ -7,25 +7,26 @@
 
 // Supplier 缁撴瀯浣�
 type Supplier struct {
-	global.GVA_MODEL
-	Number              string `json:"number" form:"number" gorm:"column:number;comment:渚涘簲鍟嗙紪鍙�;size:255;"`
-	Name                string `json:"name" form:"name" gorm:"column:name;comment:鍚嶇О;size:255;"`
-	SupplierType        string `json:"supplierType" form:"supplierType" gorm:"column:supplier_type;comment:渚涘簲鍟嗙被鍨�;size:255;"`
-	Industry            string `json:"industry" form:"industry" gorm:"column:industry;comment:鎵�灞炶涓�;size:255;"`
-	Contact             string `json:"contact" form:"contact" gorm:"column:contact;comment:鑱旂郴浜�;size:255;"`
-	Phone               string `json:"phone" form:"phone" gorm:"column:phone;comment:鐢佃瘽;size:255;"`
-	ResponsiblePersonId *int   `json:"responsiblePersonId" form:"responsiblePersonId" gorm:"column:responsible_person_id;comment:璐熻矗浜篿d;size:11;"`
-	Email               string `json:"email" form:"email" gorm:"column:email;comment:閭;size:255;"`
-	DetailAddress       string `json:"detailAddress" form:"detailAddress" gorm:"column:detail_address;comment:璇︾粏鍦板潃;type:text;"`
-	Url                 string `json:"url" form:"url" gorm:"column:url;comment:缃戝潃;size:255;"`
-	AccountName         string `json:"accountName" form:"accountName" gorm:"column:account_name;comment:鎴峰悕;size:255;"`
-	Account             string `json:"account" form:"account" gorm:"column:account;comment:璐﹀彿;size:255;"`
-	Bank                string `json:"bank" form:"bank" gorm:"column:bank;comment:寮�鎴疯;size:255;"`
-	FileId              *int   `json:"fileId" form:"fileId" gorm:"column:file_id;comment:闄勪欢id;size:11;"`
-	Status              int    `json:"status" form:"status" gorm:"column:status;comment:鐘舵��;size:11;"`
+	global.GVA_MODEL_INT
+	Number                string   `json:"number" form:"number" gorm:"column:number;comment:渚涘簲鍟嗙紪鍙�;size:255;"`
+	Name                  string   `json:"name" form:"name" gorm:"column:name;comment:鍚嶇О;size:255;"`
+	SupplierType          string   `json:"supplierType" form:"supplierType" gorm:"column:supplier_type;comment:渚涘簲鍟嗙被鍨�;size:255;"`
+	Industry              string   `json:"industry" form:"industry" gorm:"column:industry;comment:鎵�灞炶涓�;size:255;"`
+	Contact               string   `json:"contact" form:"contact" gorm:"column:contact;comment:鑱旂郴浜�;size:255;"`
+	Phone                 string   `json:"phone" form:"phone" gorm:"column:phone;comment:鐢佃瘽;size:255;"`
+	ResponsiblePersonName string   `json:"responsiblePersonName" form:"responsiblePersonName" gorm:"column:responsible_person_name;comment:璐熻矗浜�;size:255;"`
+	Email                 string   `json:"email" form:"email" gorm:"column:email;comment:閭;size:255;"`
+	DetailAddress         string   `json:"detailAddress" form:"detailAddress" gorm:"column:detail_address;comment:璇︾粏鍦板潃;type:text;"`
+	Url                   string   `json:"url" form:"url" gorm:"column:url;comment:缃戝潃;size:255;"`
+	AccountName           string   `json:"accountName" form:"accountName" gorm:"column:account_name;comment:鎴峰悕;size:255;"`
+	Account               string   `json:"account" form:"account" gorm:"column:account;comment:璐﹀彿;size:255;"`
+	Bank                  string   `json:"bank" form:"bank" gorm:"column:bank;comment:寮�鎴疯;size:255;"`
+	FileId                *int     `json:"fileId" form:"fileId" gorm:"column:file_id;comment:闄勪欢id;size:11;"`
+	Contract              Contract `json:"contract" form:"contract" gorm:"foreignKey:FileId;comment:鍚堝悓;"`
+	Status                int      `json:"status" form:"status" gorm:"column:status;comment:鐘舵��;size:11;"`
 }
 
 // TableName Supplier 琛ㄥ悕
 func (Supplier) TableName() string {
-	return "supplier"
+	return "srm_supplier"
 }

--
Gitblit v1.8.0