liujiandao
2023-10-24 d8c708a30d938ceb87348257add9dc10926044df
model/salesDetails.go
@@ -41,6 +41,8 @@
      AmountTotal         decimal.Decimal   `gorm:"column:amount_total;type:decimal(12,2);comment:价税合计" json:"amountTotal"`              // 价税合计
      CodeStandID         string            `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"`
      DeliverType         int               `json:"deliverType" gorm:"column:deliver_type;type:int;comment:交付类型(1.一次发货,2.多次发货)"`
      QuotationId         int               `json:"quotationId" gorm:"column:quotation_id;type:int;comment:报价单id"`
      Quotation           Quotation         `json:"quotation" gorm:"foreignKey:QuotationId"`
      CrmModel
   }
@@ -107,7 +109,8 @@
         Preload("Member").
         Preload("SaleChance").
         Preload("WechatOrderStatus").
         Preload("Client")
         Preload("Client").
         Preload("Quotation")
   }
   return db