From 221108b0e0416968ca8417513ebf65c8b5109662 Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期三, 26 六月 2024 11:40:47 +0800
Subject: [PATCH] 库存盘点应用按钮记录创建人,创建时间,应用时间、应用人员等信息;根据条形码查询产品详情;新增编辑产品增加条形码字段->添加条形码被使用验证
---
models/attachment.go | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/models/attachment.go b/models/attachment.go
index 24438cc..d3ff610 100644
--- a/models/attachment.go
+++ b/models/attachment.go
@@ -9,8 +9,8 @@
type (
Attachment struct {
- WmsModel
- Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
+ BaseModelInt
+ Id uint `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
FileName string `json:"fileName" gorm:"type:varchar(127);comment:鏂囦欢鍚�"`
FileUrl string `json:"FileUrl" gorm:"type:varchar(255);comment:鏂囦欢鍦板潃"`
Ext string `json:"ext" gorm:"type:varchar(15);comment:鏂囦欢鍚庣紑鍚�"`
@@ -29,7 +29,7 @@
)
func (slf *Attachment) TableName() string {
- return "wms_attachment"
+ return "attachment"
}
func NewAttachmentSearch() *AttachmentSearch {
@@ -51,7 +51,7 @@
return slf
}
-func (slf *AttachmentSearch) SetID(ID int) *AttachmentSearch {
+func (slf *AttachmentSearch) SetID(ID uint) *AttachmentSearch {
slf.Id = ID
return slf
}
--
Gitblit v1.8.0