From 8a3dd1f37468aba086eb4c76d8ae8cdd0b00e5bb Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 02 十二月 2023 14:49:36 +0800
Subject: [PATCH] 修改采购单

---
 model/purchase/request/purchase.go |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/model/purchase/request/purchase.go b/model/purchase/request/purchase.go
index c21910a..673dcbe 100644
--- a/model/purchase/request/purchase.go
+++ b/model/purchase/request/purchase.go
@@ -4,13 +4,11 @@
 	"github.com/shopspring/decimal"
 	"srm/model/common/request"
 	"srm/model/purchase"
-	"time"
 )
 
 type PurchaseSearch struct {
-	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
-	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
 	request.PageInfo
+	SupplierId int `json:"supplierId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:渚涘簲鍟唅d"` // 渚涘簲鍟唅d
 }
 
 type AddPurchase struct {
@@ -32,6 +30,7 @@
 	ID                  uint                         `gorm:"primarykey"`                                                                                                 // 涓婚敭ID
 	PurchaseTypeId      int                          `json:"purchaseTypeId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:閲囪喘绫诲瀷id"`                   // 閲囪喘绫诲瀷id
 	SupplierId          int                          `json:"supplierId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:渚涘簲鍟唅d"`                          // 渚涘簲鍟唅d
+	OrderSource         string                       `json:"orderSource" gorm:"type:varchar(255);not null;default '';comment:鍗曟嵁鏉ユ簮"`                                      // 鍗曟嵁鏉ユ簮
 	Number              string                       `json:"number" form:"number" gorm:"unique;type:varchar(255);not null;default '';comment:閲囪喘缂栧彿"`                      // 閲囪喘缂栧彿
 	Name                string                       `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:閲囪喘鍚嶇О"`                                 // 閲囪喘鍚嶇О
 	Contact             string                       `json:"contact" form:"contact" gorm:"type:varchar(255);not null;default '';comment:鑱旂郴浜�"`                            // 鑱旂郴浜�

--
Gitblit v1.8.0