作者 tangxvhui

更新model

... ... @@ -26,19 +26,19 @@ type OrderBase struct {
//订单对应的合伙人
PartnerId int64
//业务员抽成比例
SalesmanBonusPercent float64
SalesmanBonusPercent float64 `pg:",use_zero"`
//业务员抽成
SalesmanBonus float64
SalesmanBonus float64 `pg:",use_zero"`
//预计的订单内货品总数
PlanOrderCount int
PlanOrderCount int `pg:",use_zero"`
//预计的订单的总金额
PlanOrderAmount float64
PlanOrderAmount float64 `pg:",use_zero"`
//按需使用的订单内货品总数 (初始值=-1)
//业务判定时0是有效值,负值无效
UseOrderCount int
UseOrderCount int `pg:",use_zero"`
//按需使用的订单内货总金额 (初始值=-1)
//业务判定时0是有效值,负值无效
UseOrderAmount float64
UseOrderAmount float64 `pg:",use_zero"`
//订单的创建时间
CreateTime time.Time
//发货时间
... ... @@ -46,16 +46,16 @@ type OrderBase struct {
//更新时间
UpdateTime time.Time
//合伙人应收分红
PlanPartnerBonus float64
PlanPartnerBonus float64 `pg:",use_zero"`
//调整后的合伙人应收分红 (初始值=-1);
//业务判定时0是有效值,负值无效
UsePartnerBonus float64
UsePartnerBonus float64 `pg:",use_zero"`
//合伙人已收分红
PartnerBonusHas float64
PartnerBonusHas float64 `pg:",use_zero"`
//合伙人未收分红
PartnerBonusNot float64
//合伙人分红支出
PartnerBonusExpense float64
PartnerBonusExpense float64 `pg:",use_zero"`
//上一次查看时间 已读情况
LastViewTime time.Time
//是否关闭订单
... ...
... ... @@ -10,29 +10,29 @@ type OrderGood struct {
//货品名称 长度可能较长
GoodName string
//预计的货品数量
PlanGoodNumber int
PlanGoodNumber int `pg:",use_zero"`
//货品单价
Price float64
Price float64 `pg:",use_zero"`
//预计的货品总额
PlanAmount float64
PlanAmount float64 `pg:",use_zero"`
//调整后的货品数量(初始值=-1)
//业务判定时0是有效值,负值无效
UseGoodNumber int
UseGoodNumber int `pg:",use_zero"`
//调整后的货品总额
UseAmount float64
UseAmount float64 `pg:",use_zero"`
//合伙人分红比例
PartnerBonusPercent float64
PartnerBonusPercent float64 `pg:",use_zero"`
//预计的合伙人分红
PlanPartnerBonus float64
PlanPartnerBonus float64 `pg:",use_zero"`
//合伙人应收分红调整 (初始值=-1)
////业务判定时0是有效值,负值无效
UsePartnerBonus float64
UsePartnerBonus float64 `pg:",use_zero"`
//合伙人已收分红
PartnerBonusHas float64
PartnerBonusHas float64 `pg:",use_zero"`
//合伙人未收分红
PartnerBonusNot float64
PartnerBonusNot float64 `pg:",use_zero"`
//合伙人分红支出
PartnerBonusExpense float64
PartnerBonusExpense float64 `pg:",use_zero"`
//分红状态
BonusStatus int
//备注信息
... ...