From 1572f45e72cc0fa15c029f9ee2a08474104435e6 Mon Sep 17 00:00:00 2001 From: selfcheer <selfcheer@gmail.com> Date: 星期五, 19 七月 2024 00:48:43 +0800 Subject: [PATCH] 采购单产品列表去掉过滤重复产品的逻辑 --- model/purchase/purchase_type.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/model/purchase/purchase_type.go b/model/purchase/purchase_type.go index 8fc0535..402269c 100644 --- a/model/purchase/purchase_type.go +++ b/model/purchase/purchase_type.go @@ -6,7 +6,7 @@ type PurchaseType struct { global.GVA_MODEL - ID uint `gorm:"primarykey"` // 涓婚敭ID + ID uint `json:"id,string" gorm:"primarykey"` // 涓婚敭ID Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:閲囪喘绫诲瀷"` // 閲囪喘绫诲瀷 Sort int `json:"sort" form:"sort" gorm:"type:int(11);not null;default 0;comment:鎺掑簭"` // 鎺掑簭 Pin bool `json:"pin" form:"pin" gorm:"type:tinyint(1);not null;default 0;comment:閲囪喘鍚嶇О"` // 鏄惁缃《 -- Gitblit v1.8.0