From 6ae9a1f35f59d13075ac931558bc38a11b7a6e54 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 28 十二月 2023 10:12:08 +0800 Subject: [PATCH] grpc接口关于operation 位置信息数据结构的变动 --- models/material.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/models/material.go b/models/material.go index c77b4b9..3c5a92e 100644 --- a/models/material.go +++ b/models/material.go @@ -75,6 +75,9 @@ PredictionAmount decimal.Decimal `json:"predictionAmount" gorm:"-"` InputAmount decimal.Decimal `json:"inputAmount" gorm:"-"` OutputAmount decimal.Decimal `json:"outputAmount" gorm:"-"` + MinInventoryRule decimal.Decimal `json:"minInventoryRule" gorm:"-"` //鏈�灏忓簱瀛� + MaxInventoryRule decimal.Decimal `json:"maxInventoryRule" gorm:"-"` //鏈�澶у簱瀛� + ReorderRuleNum int64 `json:"reorderRuleNum"` } MaterialSearch struct { @@ -188,6 +191,8 @@ func (slf *MaterialSearch) build() *gorm.DB { var db = slf.Orm.Table(slf.TableName()) + db = db.Where("material_type != ", constvar.MaterialTypeVirtual) //铏氭嫙鐗╂枡鏃犲簱瀛橈紝涓嶈繘琛屽嚭鍏ュ簱 + if slf.ID != "" { db = db.Where("id = ?", slf.ID) } -- Gitblit v1.8.0