|
@@ -29,6 +29,7 @@ type ContractInvoice struct {
|
|
|
AdminName string `gorm:"column:admin_name" json:"admin_name" description:"操作人姓名"`
|
|
|
Remark string `gorm:"column:remark" json:"remark" description:"备注信息"`
|
|
|
IsDeleted int `gorm:"column:is_deleted" json:"is_deleted" description:"是否已删除: 0-正常; 1-已删除"`
|
|
|
+ IsPrePay int `gorm:"column:is_pre_pay" json:"is_deleted" description:"是否预付款: 0-不是; 1-是"`
|
|
|
base.TimeBase
|
|
|
}
|
|
|
|
|
@@ -51,6 +52,7 @@ type ContractInvoiceItem struct {
|
|
|
SellerName string `gorm:"column:seller_name" json:"seller_name" description:"销售名称"`
|
|
|
PayType int `gorm:"column:pay_type" json:"pay_type" description:"付款方式:0-无;1-年付;2-半年付;3-季付;4-次付;5-异常"`
|
|
|
Remark string `gorm:"column:remark" json:"remark" description:"备注信息"`
|
|
|
+ IsPrePay int `gorm:"column:is_pre_pay" json:"is_deleted" description:"是否预付款: 0-不是; 1-是"`
|
|
|
CreateTime string `gorm:"column:create_time" json:"create_time" description:"创建时间"`
|
|
|
}
|
|
|
|
|
@@ -243,6 +245,7 @@ func formatContractInvoice2Item(item *ContractInvoice) (formatItem *ContractInvo
|
|
|
formatItem.SellerName = item.SellerName
|
|
|
formatItem.PayType = item.PayType
|
|
|
formatItem.Remark = item.Remark
|
|
|
+ formatItem.IsPrePay = item.IsPrePay
|
|
|
formatItem.CreateTime = utils.TimeTransferString(utils.FormatDateTime, item.CreateTime)
|
|
|
return
|
|
|
}
|