order_good.go 1.1 KB
package models

//OrderGood 订单中的货品
type OrderGood struct {
	tableName struct{} `pg:"order_good"`
	//货品id
	Id int64
	//所属订单id
	OrderId int64
	//货品名称 长度可能较长
	GoodName string
	//预计的货品数量
	PlanGoodNumber int `pg:",use_zero"`
	//货品单价
	Price float64 `pg:",use_zero"`
	//预计的货品总额
	PlanAmount float64 `pg:",use_zero"`
	//调整后的货品数量(初始值=-1)
	//业务判定时0是有效值,负值无效
	UseGoodNumber int `pg:",use_zero"`
	//调整后的货品总额
	UseAmount float64 `pg:",use_zero"`
	//合伙人分红比例
	PartnerBonusPercent float64 `pg:",use_zero"`
	//预计的合伙人分红
	PlanPartnerBonus float64 `pg:",use_zero"`
	//合伙人应收分红调整 (初始值=-1)
	////业务判定时0是有效值,负值无效
	UsePartnerBonus float64 `pg:",use_zero"`
	//合伙人已收分红
	PartnerBonusHas float64 `pg:",use_zero"`
	//合伙人未收分红
	PartnerBonusNot float64 `pg:",use_zero"`
	//合伙人分红支出
	PartnerBonusExpense float64 `pg:",use_zero"`
	//分红状态
	BonusStatus int
	//备注信息
	Remark string
}