From 1c8f39c41f903d3c07e8efc8dc49ef7014b45b8e Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 02 七月 2024 18:27:01 +0800
Subject: [PATCH] 未选出入库类型的业务操作在仓库月度报表里归为其他
---
models/file_template_attachment.go | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/models/file_template_attachment.go b/models/file_template_attachment.go
index 1b1a89f..a55c0db 100644
--- a/models/file_template_attachment.go
+++ b/models/file_template_attachment.go
@@ -10,10 +10,9 @@
type (
FileTemplateAttachment struct {
WmsModel
- Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
- Category constvar.FileTemplateCategory `json:"category" gorm:"type:int(11);comment:妯$増绉嶇被"`
- WarehouseId int `json:"warehouseId" gorm:"type:int(11);comment:浠撳簱id"`
- Name string `json:"name" gorm:"type:varchar(63);comment:妯$増鍚嶇О"`
+ Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
+ Category constvar.FileTemplateCategory `json:"category" gorm:"type:int(11);comment:妯$増绉嶇被"`
+ Name string `json:"name" gorm:"type:varchar(63);comment:妯$増鍚嶇О"`
//AttachmentId uint `json:"attachmentId" gorm:"comment:闄勪欢琛ㄥ閿�"`
//Attachment Attachment `json:"attachment" gorm:"foreignKey:AttachmentId;references:Id"`
TableInfo string `json:"tableInfo" gorm:"type:varchar(31);comment:琛ㄥ悕"`
@@ -52,10 +51,6 @@
slf.Order = order
return slf
}
-func (slf *FileTemplateAttachmentSearch) SetWarehouseId(warehouseId int) *FileTemplateAttachmentSearch {
- slf.WarehouseId = warehouseId
- return slf
-}
func (slf *FileTemplateAttachmentSearch) SetID(id int) *FileTemplateAttachmentSearch {
slf.Id = id
@@ -82,9 +77,6 @@
if slf.Id != 0 {
db = db.Where("id = ?", slf.Id)
- }
- if slf.WarehouseId != 0 {
- db = db.Where("warehouse_id = ?", slf.Id)
}
if slf.Order != "" {
db = db.Order(slf.Order)
--
Gitblit v1.8.0