From a07fc02a9f0aa49aaaf273f5ff9cce4c6d546de9 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 21 九月 2023 15:25:36 +0800
Subject: [PATCH] 位置字段添加

---
 models/operation_type.go |    2 ++
 models/location.go       |    3 +++
 controllers/location.go  |    2 +-
 3 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/controllers/location.go b/controllers/location.go
index 421958b..595a2ba 100644
--- a/controllers/location.go
+++ b/controllers/location.go
@@ -35,7 +35,7 @@
 		util.ResponseFormat(c, code.RequestParamError, "鍒涘缓澶辫触")
 		return
 	}
-	util.ResponseFormat(c, code.RequestParamError, "鍒涘缓鎴愬姛")
+	util.ResponseFormat(c, code.Success, "鍒涘缓鎴愬姛")
 }
 
 // GetLocationList
diff --git a/models/location.go b/models/location.go
index 4c0338c..1b147a5 100644
--- a/models/location.go
+++ b/models/location.go
@@ -22,6 +22,9 @@
 		IsReturnLocation     bool                          `json:"isReturnLocation" gorm:"type:tinyint;comment:鏄惁閫�璐т綅缃�"`       //鏄惁閫�璐т綅缃�
 		ReplenishLocation    bool                          `json:"replenishLocation" gorm:"type:tinyint;comment:鏄惁琛ュ厖浣嶇疆"`      //鏄惁琛ュ厖浣嶇疆
 		ForceRemovalStrategy constvar.ForceRemovalStrategy `json:"forceRemovalStrategy" gorm:"type:tinyint;comment:涓嬫灦绛栫暐"`     //涓嬫灦绛栫暐
+		Notes                string                        `json:"notes" gorm:"type:varchar(255);comment:澶栭儴澶囨敞"`               //澶栭儴澶囨敞
+		RecentlyCount        string                        `json:"recentlyCount" gorm:"type:varchar(255);comment:鏈�杩戠洏鐐�"`       //鏈�杩戠洏鐐�
+		NextCount            string                        `json:"nextCount" gorm:"type:varchar(255);comment:涓嬫鐩樼偣"`           //涓嬫鐩樼偣
 	}
 
 	LocationSearch struct {
diff --git a/models/operation_type.go b/models/operation_type.go
index aac39b3..b97e0b0 100644
--- a/models/operation_type.go
+++ b/models/operation_type.go
@@ -18,6 +18,7 @@
 		Company           Company                    `json:"company" gorm:"foreignKey:CompanyId"`                           //鍏徃
 		WarehouseId       int                        `json:"warehouseId" gorm:"type:int;not null;comment:浠撳簱id"`             //浠撳簱id
 		Warehouse         Warehouse                  `json:"warehouse" gorm:"foreignKey:WarehouseId"`                       //浠撳簱
+		Prefix            string                     `json:"prefix" gorm:"type:varchar(255);comment:鍓嶇紑"`                    //鍓嶇紑
 
 		DefaultLocationSrcId  int      `json:"defaultLocationSrcId"   gorm:"type:int;not null;comment:榛樿婧愪綅缃甶d"`  //榛樿婧愪綅缃甶d
 		DefaultLocationSrc    Location `json:"defaultLocationSrc"     gorm:"foreignKey:DefaultLocationSrcId"`    //榛樿婧愪綅缃�
@@ -29,6 +30,7 @@
 		ReservationDaysBefore         int                        `json:"reservationDaysBefore" gorm:"type:int;"`                         //鏀惰揣鍓嶅嚑澶�
 		ReservationDaysBeforePriority int                        `json:"ReservationDaysBeforePriority" gorm:"type:int;"`                 //鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ
 		ShowOperations                bool                       `json:"showOperations" gorm:"column:show_operations;type:int"`          //鏄剧ず浣滀笟璇︽儏
+		EarlyOperations               bool                       `json:"earlyOperations" gorm:"type:int;comment:棰勫~鍐欎綔涓氳鎯�"`                //棰勫~鍐欎綔涓氳鎯�
 		CreateBackorder               constvar.WhetherType       `json:"createBackorder" gorm:"column:create_backorder"`                 //鍒涘缓娆犲崟
 		ReturnOperationTypeID         int                        `json:"returnOperationTypeID" gorm:"column:return_job_type_id"`         //閫�璐х被鍨婭D
 		ReturnOperationType           string                     `json:"returnOperationType" gorm:"-"`                                   //閫�璐х被鍨嬪悕绉�

--
Gitblit v1.8.0