...
|
...
|
@@ -6,7 +6,6 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg/models"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg/transaction"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/utils"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -35,7 +34,7 @@ func (dao *OrderBaseDao) OrderStatics(option *domain.OrderStaticQuery) (count in |
|
|
if option.EndTime > 0 {
|
|
|
q.Where(`"order_base".create_time <?`, time.Unix(option.EndTime/1000, 0))
|
|
|
}
|
|
|
q.Where(`"order_base".is_disable =?`, 0)
|
|
|
//q.Where(`"order_base".is_disable =?`, 0)
|
|
|
err = q.Select(&count, &amount, &orderAmount)
|
|
|
if option.OrderType == domain.OrderIntention { //意向订单值只有 order_amount order_actual_amount还未赋值
|
|
|
amount = orderAmount
|
...
|
...
|
@@ -61,10 +60,10 @@ func (dao *OrderBaseDao) DividendOrders(option *domain.DividendOrdersQueryOption |
|
|
if option.EndTime > 0 {
|
|
|
q.Where(`"order_base".create_time <?`, time.Unix(option.EndTime/1000, 0))
|
|
|
}
|
|
|
if len(option.IsDisable) > 0 {
|
|
|
value, _ := strconv.Atoi(option.IsDisable)
|
|
|
q.Where(`"order_base".is_disable =?`, value)
|
|
|
}
|
|
|
//if len(option.IsDisable) > 0 {
|
|
|
// value, _ := strconv.Atoi(option.IsDisable)
|
|
|
// q.Where(`"order_base".is_disable =?`, value)
|
|
|
//}
|
|
|
if option.DividendAction == 0 { //累计分红
|
|
|
if option.DetailAction == 0 { //已收明细
|
|
|
q.Where(`"order_base".partner_bonus_has>0`)
|
...
|
...
|
|