正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -43,7 +43,7 @@ func (dao *OrderDao) DividendOrders(option *domain.DividendOrdersQueryOption) (c | @@ -43,7 +43,7 @@ func (dao *OrderDao) DividendOrders(option *domain.DividendOrdersQueryOption) (c | ||
43 | tx := dao.transactionContext.PgTx | 43 | tx := dao.transactionContext.PgTx |
44 | q := tx.Model(&orders) | 44 | q := tx.Model(&orders) |
45 | q.Column(`order.id`, `order.order_code`, `order.order_actual_amount`, `order.partner_bonus_percent`) | 45 | q.Column(`order.id`, `order.order_code`, `order.order_actual_amount`, `order.partner_bonus_percent`) |
46 | - q.Where(`"order".order_status >=?`, domain.OrderStatusDeliverSome) //已经发货 | 46 | + //q.Where(`"order".order_status >=?`, domain.OrderStatusDeliverSome) //已经发货 |
47 | if option.PartnerId > 0 { | 47 | if option.PartnerId > 0 { |
48 | q.Where(`"order".partner_id=?`, option.PartnerId) | 48 | q.Where(`"order".partner_id=?`, option.PartnerId) |
49 | } | 49 | } |
@@ -57,7 +57,7 @@ func (dao *OrderDao) DividendOrders(option *domain.DividendOrdersQueryOption) (c | @@ -57,7 +57,7 @@ func (dao *OrderDao) DividendOrders(option *domain.DividendOrdersQueryOption) (c | ||
57 | if option.DetailAction == 0 { //已收明细 | 57 | if option.DetailAction == 0 { //已收明细 |
58 | q.Join(`JOIN order_payment as a ON a.order_id="order".id`) | 58 | q.Join(`JOIN order_payment as a ON a.order_id="order".id`) |
59 | q.Where(`"a".bonus_status=?`, domain.BonusPaid) | 59 | q.Where(`"a".bonus_status=?`, domain.BonusPaid) |
60 | - } else if option.DetailAction == 1 { //未收明细 | 60 | + } else if option.DetailAction == 1 { //未收明细 //实际金额>已支付金额 |
61 | q.Where(`"order".order_actual_amount>"order".order_payment_amount`) | 61 | q.Where(`"order".order_actual_amount>"order".order_payment_amount`) |
62 | } | 62 | } |
63 | } else if option.DividendAction == 1 { //分红支出 | 63 | } else if option.DividendAction == 1 { //分红支出 |
-
请 注册 或 登录 后发表评论