From 8c9f3126af1a7a6f7cc2cff51449da6f77f56e01 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 18 八月 2023 17:36:11 +0800 Subject: [PATCH] fix --- model/salesDetailsProduct.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/salesDetailsProduct.go b/model/salesDetailsProduct.go index 467b869..a803e83 100644 --- a/model/salesDetailsProduct.go +++ b/model/salesDetailsProduct.go @@ -10,8 +10,8 @@ type ( // SalesDetailsProduct 閿�鍞槑缁嗗拰浜у搧鍏宠仈 SalesDetailsProduct struct { - SalesDetailsId int `json:"id" gorm:"column:id;type:int;primary_key;AUTO_INCREMENT"` - ProductId uint `json:"name" gorm:"primary_key;column:name;type:varchar(255);not null;default:'';comment:鍚嶇О"` + SalesDetailsId int `json:"id" gorm:"column:sales_details_id;type:int;primary_key;not null;default:0"` + ProductId uint `json:"name" gorm:"primary_key;column:product_id;type:int;not null;default:0;comment:浜у搧id"` } // SalesDetailsProductSearch 閿�鍞槑缁嗗拰浜у搧鍏宠仈鎼滅储鏉′欢 -- Gitblit v1.8.0