liujiandao
2023-10-24 6aa75c2a266a2522ae713b13dc702b5ad0a08f87
model/request/salesDetails.go
@@ -3,7 +3,6 @@
import (
   "aps_crm/constvar"
   "aps_crm/model"
   "aps_crm/proto/code"
)
type AddSalesDetails struct {
@@ -11,25 +10,25 @@
}
type SalesDetails struct {
   ClientId            int               `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"`
   Number              string            `json:"number" gorm:"column:number;type:varchar(255);comment:销售子单号"`
   SaleChanceId        int               `json:"saleChanceId" gorm:"column:sale_chance_id;type:int;comment:销售机会id"`
   SaleType            int               `json:"saleType" gorm:"column:sale_type;type:int;comment:销售类型"`
   SignTime            string            `json:"signTime" gorm:"column:sign_time;type:datetime;comment:签单时间"`
   MemberId            int               `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
   DeliveryDate        string            `json:"deliveryDate" gorm:"column:delivery_date;type:datetime;comment:交货日期"`
   WechatOrderStatusId int               `json:"wechatOrderStatusId" gorm:"column:wechat_order_status_id;type:int;comment:微信订单状态id"`
   Address             string            `json:"address" gorm:"column:address;type:varchar(255);comment:地址"`
   Phone               string            `json:"phone" gorm:"column:phone;type:varchar(255);comment:电话"`
   Addressee           string            `json:"addressee" gorm:"column:addressee;type:varchar(255);comment:收件人"`
   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:sales_details_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:物流费用"`
   CodeStandID         string            `json:"codeStandID"` //编码id
   CodeRule            code.CodeStandard `json:"codeRule"`
   ClientId            int              `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"`
   Number              string           `json:"number" gorm:"column:number;type:varchar(255);comment:销售子单号"`
   SaleChanceId        int              `json:"saleChanceId" gorm:"column:sale_chance_id;type:int;comment:销售机会id"`
   SaleType            int              `json:"saleType" gorm:"column:sale_type;type:int;comment:销售类型"`
   SignTime            string           `json:"signTime" gorm:"column:sign_time;type:datetime;comment:签单时间"`
   MemberId            int              `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
   DeliveryDate        string           `json:"deliveryDate" gorm:"column:delivery_date;type:datetime;comment:交货日期"`
   WechatOrderStatusId int              `json:"wechatOrderStatusId" gorm:"column:wechat_order_status_id;type:int;comment:微信订单状态id"`
   Address             string           `json:"address" gorm:"column:address;type:varchar(255);comment:地址"`
   Phone               string           `json:"phone" gorm:"column:phone;type:varchar(255);comment:电话"`
   Addressee           string           `json:"addressee" gorm:"column:addressee;type:varchar(255);comment:收件人"`
   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:sales_details_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:物流费用"`
   CodeStandID         string           `json:"codeStandID"` //编码id
   DeliverType         int              `json:"deliverType"` //交付类型:1.一次发货,2.多次发货
}
type UpdateSalesDetails struct {