| | |
| | | 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 { |
| | |
| | | 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) |
| | | } |