From 18ddec2d24989f9a245f929ac3c7f3d343548e54 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 16 十一月 2023 15:39:25 +0800
Subject: [PATCH] 采购单修改
---
model/test/supplier.go | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/model/test/supplier.go b/model/test/supplier.go
index 4fef2df..acba403 100644
--- a/model/test/supplier.go
+++ b/model/test/supplier.go
@@ -8,24 +8,25 @@
// 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;"`
+ 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