From 03915064efe8fd7f222e4aac199af7e2d37deec6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 15 十一月 2023 20:11:20 +0800
Subject: [PATCH] 增加产品类别

---
 model/test/material.go |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/model/test/material.go b/model/test/material.go
index 31d322d..25053cb 100644
--- a/model/test/material.go
+++ b/model/test/material.go
@@ -10,8 +10,6 @@
 	Name              string          `gorm:"type:varchar(191);not null;comment:鐗╂枡鍚嶇О" json:"name"`
 	MaterialType      MaterialType    `gorm:"index;type:int(11);comment:鐗╂枡绫诲瀷(鏁板瓧)" json:"materialType"`
 	Model             MaterialMode    `gorm:"type:varchar(191);not null;comment:鐗╂枡绫诲瀷(瀛楃涓�)" json:"model"`
-	Explain           string          `gorm:"type:varchar(512);comment:缂栧彿璇存槑" json:"explain"`
-	CodeStandardID    string          `gorm:"type:varchar(191);comment:缂栫爜瑙勮寖ID" json:"codeStandardID"`
 	Specs             string          `gorm:"type:varchar(191);comment:鐗╂枡瑙勬牸" json:"specs"`
 	Type              string          `gorm:"type:varchar(191);comment:鐗╂枡鍨嬪彿" json:"type"`
 	MinInventory      decimal.Decimal `gorm:"type:decimal(35,18);comment:鏈�灏忓簱瀛�" json:"minInventory"`
@@ -19,9 +17,7 @@
 	Amount            decimal.Decimal `gorm:"type:decimal(35,18);comment:鏁伴噺" json:"amount"`
 	LockAmount        decimal.Decimal `gorm:"type:decimal(35,18);default:0;comment:閿佸畾鏁伴噺" json:"lockAmount"`
 	Unit              string          `gorm:"type:varchar(100);comment:鍗曚綅" json:"unit"`
-	Note              string          `gorm:"type:varchar(1024);comment:澶囨敞" json:"note"`
 	TemplateID        string          `gorm:"type:varchar(191);comment:妯℃澘ID" json:"-"`
-	FSource           string          `gorm:"type:varchar(191);comment:鐢熶骇杞﹂棿" json:"-"`
 	Status            MaterialStatus  `gorm:"type:int(11);comment:鐘舵��" json:"status"`
 	Supplier          string          `gorm:"type:varchar(191);comment:渚涘簲鍟�" json:"supplier"`
 	PurchasePrice     decimal.Decimal `gorm:"type:decimal(35,18);comment:閲囪喘浠锋牸" json:"purchasePrice"`
@@ -29,10 +25,8 @@
 	ProduceAheadDay   int             `gorm:"type:int(11);comment:鍒堕�犳彁鍓嶆湡(澶�)" json:"produceAheadDay"`
 	MinPurchaseAmount decimal.Decimal `gorm:"type:decimal(35,18);comment:鏈�灏忛噰璐噺" json:"minPurchaseAmount"`
 	PurchaseType      PurchaseType    `gorm:"type:int(11);comment:閲囪喘绫诲瀷" json:"purchaseType"`
-	IsSale            *bool           `gorm:"type:tinyint(1);comment:鏄惁閿�鍞�" json:"isSale"`
 	SalePrice         decimal.Decimal `gorm:"type:decimal(35,18);comment:閿�鍞崟浠�" json:"salePrice"`
-	AutoIncr          uint            `gorm:"type:int(11);comment:鑷ID;default:0;" json:"autoIncr"`
-	AttachmentList    []*Attachment   `json:"attachmentList" gorm:"many2many:material_attachment"`
+	CategoryName      string          `gorm:"type:varchar(255);comment:浜у搧绫诲埆鍚嶇О" json:"categoryName"` //浜у搧绫诲埆鍚嶇О
 }
 
 // PurchaseType 閲囪喘绫诲瀷

--
Gitblit v1.8.0