From 1109d0c6565e3413e54d9f28e68dda8ca26b99c4 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 25 七月 2023 11:19:52 +0800
Subject: [PATCH] fix
---
model/salesDetails.go | 3 +++
api/v1/salesDetails.go | 3 +++
model/request/saleDetails.go | 3 +++
3 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/api/v1/salesDetails.go b/api/v1/salesDetails.go
index 9a4df8f..d7f8bec 100644
--- a/api/v1/salesDetails.go
+++ b/api/v1/salesDetails.go
@@ -162,6 +162,9 @@
salesDetailsModel.Addressee = salesDetails.Addressee
salesDetailsModel.Conditions = salesDetails.Conditions
salesDetailsModel.Products = salesDetails.Products
+ salesDetailsModel.LogisticCompany = salesDetails.LogisticCompany
+ salesDetailsModel.LogisticNumber = salesDetails.LogisticNumber
+ salesDetailsModel.LogisticCost = salesDetails.LogisticCost
return ecode.OK, salesDetailsModel
}
diff --git a/model/request/saleDetails.go b/model/request/saleDetails.go
index 1d45f18..c70d201 100644
--- a/model/request/saleDetails.go
+++ b/model/request/saleDetails.go
@@ -23,6 +23,9 @@
Conditions string `json:"conditions" gorm:"column:conditions;type:text;comment:鏉′欢"`
Remark string `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
Products []model.Product `json:"products" gorm:"many2many:salesDetails_product;"`
+ LogisticCompany string `json:"logisticCompany" gorm:"column:logistic_company;type:varchar(255);comment:鐗╂祦鍏徃"`
+ LogisticNumber string `json:"logisticNumber" gorm:"column:logistic_number;type:varchar(255);comment:鐗╂祦鍗曞彿"`
+ LogisticCost float64 `json:"logisticCost" gorm:"column:logistic_cost;type:decimal(10,2);comment:鐗╂祦璐圭敤"`
}
type UpdateSalesDetails struct {
diff --git a/model/salesDetails.go b/model/salesDetails.go
index d2c4ee9..8755d28 100644
--- a/model/salesDetails.go
+++ b/model/salesDetails.go
@@ -24,6 +24,9 @@
Conditions string `json:"conditions" gorm:"column:conditions;type:text;comment:鏉′欢"`
Remark string `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
Products []Product `json:"products" gorm:"many2many:salesDetails_product;"`
+ LogisticCompany string `json:"logisticCompany" gorm:"column:logistic_company;type:varchar(255);comment:鐗╂祦鍏徃"`
+ LogisticNumber string `json:"logisticNumber" gorm:"column:logistic_number;type:varchar(255);comment:鐗╂祦鍗曞彿"`
+ LogisticCost float64 `json:"logisticCost" gorm:"column:logistic_cost;type:decimal(10,2);comment:鐗╂祦璐圭敤"`
gorm.Model `json:"-"`
}
--
Gitblit v1.8.0