zhangqian
2023-11-01 530fed8ec225453572d57b15c200ab062c335457
model/request/salesReturn.go
@@ -16,12 +16,13 @@
   Number              string                         `json:"number" gorm:"column:number;type:varchar(255);comment:退货单号"`
   Repository          string                         `json:"repository" gorm:"column:repository;type:varchar(255);comment:仓库"`
   MemberId            int                            `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
   ReturnDate          string                         `json:"returnDate" gorm:"column:return_date;type:datetime(3);comment:退货日期"`          //退货日期
   SalesReturnStatusId int                            `json:"salesReturnStatusId" gorm:"column:sales_return_status;type:int;comment:退货状态"` //退货状态id
   CreatorId           int                            `json:"-" gorm:"column:creator_id;type:int;comment:创建人id"`                           //创建人ID
   Creator             User                           `json:"-"  gorm:"foreignKey:CreatorId"`                                              //创建人信息
   Reason              string                         `json:"reason" gorm:"column:reason;type:varchar(255);comment:退货原因"`                  //退货原因
   Products            []*model.Product               `json:"products" gorm:"many2many:salesReturn_product;"`                              //退货产品
   ReturnDate          string                         `json:"returnDate" gorm:"column:return_date;type:datetime(3);comment:退货日期"`             //退货日期
   SalesReturnStatusId int                            `json:"salesReturnStatusId" gorm:"column:sales_return_status_id;type:int;comment:退货状态"` //退货状态id
   CreatorId           int                            `json:"-" gorm:"column:creator_id;type:int;comment:创建人id"`                              //创建人ID
   Creator             User                           `json:"-"  gorm:"foreignKey:CreatorId"`                                                 //创建人信息
   Reason              string                         `json:"reason" gorm:"column:reason;type:varchar(255);comment:退货原因"`                     //退货原因
   Products            []*model.Product               `json:"products" gorm:"many2many:salesReturn_product;"`                                 //退货产品
   CodeStandID         string                         `json:"codeStandID"`                                                                    //编码id
}
type UpdateSalesReturnRequest struct {
@@ -31,5 +32,9 @@
type GetSalesReturnList struct {
   PageInfo
   Keyword string `json:"keyword"`
   Keyword     string `json:"keyword"`
   KeywordType constvar.SalesReturnKeywordType
   SourceType  constvar.SalesReturnSourceType `json:"sourceType"` // 源单类型(1销售明细)
   SourceId    int                            `json:"sourceId"`   // 源单id
   ClientId    int                            `json:"clientId"`   //客户id
}