...
|
...
|
@@ -53,6 +53,8 @@ type OrderBase struct { |
|
|
PartnerBonusExpense float64
|
|
|
//是否关闭【0;否】【1:是】
|
|
|
IsDisable int8
|
|
|
//1:待支付分红 2:已支付分红
|
|
|
BonusStatus int8
|
|
|
//货物列表
|
|
|
OrderGood []*OrderGood
|
|
|
}
|
...
|
...
|
@@ -67,8 +69,8 @@ func (m *OrderBase) Identify() interface{} { |
|
|
//合伙人
|
|
|
//订单累计分红
|
|
|
func (m *OrderBase) OrderTotalBonus() float64 {
|
|
|
if m.UsePartnerBonus >= 0 {
|
|
|
return utils.Decimal(m.UsePartnerBonus)
|
|
|
if m.UseOrderCount >= 0 {
|
|
|
return utils.Decimal(m.UsePartnerBonus + m.PartnerBonusExpense)
|
|
|
}
|
|
|
return utils.Decimal(m.PlanPartnerBonus)
|
|
|
}
|
...
|
...
|
@@ -120,16 +122,16 @@ func (m *OrderBase) IsRead() int { |
|
|
}
|
|
|
|
|
|
type OrderQueryOption struct {
|
|
|
PartnerId int64 `json:"partnerId,omitempty"`
|
|
|
OrderType int `json:"orderType,omitempty"`
|
|
|
OrderStatus int `json:"orderStatus,omitempty"`
|
|
|
BeginTime time.Time `json:"beginTime,omitempty"`
|
|
|
EndTime time.Time `json:"endTime,omitempty"`
|
|
|
IsDisable string `json:"isDisable,omitempty"`
|
|
|
SortByCreateTime string `json:"sortByCreateTime,omitempty"`
|
|
|
SortByUpdateTime string `json:"sortByUpdateTime,omitempty"`
|
|
|
Offset int `json:"offset,omitempty"`
|
|
|
Limit int `json:"limit,omitempty"`
|
|
|
PartnerId int64 `json:"partnerId,omitempty"`
|
|
|
OrderType int `json:"orderType,omitempty"`
|
|
|
OrderStatus int `json:"orderStatus,omitempty"`
|
|
|
BeginTime time.Time `json:"beginTime,omitempty"`
|
|
|
EndTime time.Time `json:"endTime,omitempty"`
|
|
|
//IsDisable string `json:"isDisable,omitempty"`
|
|
|
SortByCreateTime string `json:"sortByCreateTime,omitempty"`
|
|
|
SortByUpdateTime string `json:"sortByUpdateTime,omitempty"`
|
|
|
Offset int `json:"offset,omitempty"`
|
|
|
Limit int `json:"limit,omitempty"`
|
|
|
}
|
|
|
|
|
|
type DividendOrdersQueryOption struct {
|
...
|
...
|
|