|
@@ -67,7 +67,7 @@ func (dao *OrderDao) GetDividendOrders(options map[string]interface{}) (count in |
|
@@ -67,7 +67,7 @@ func (dao *OrderDao) GetDividendOrders(options map[string]interface{}) (count in |
67
|
if v, ok := options["orderType"]; ok {
|
67
|
if v, ok := options["orderType"]; ok {
|
68
|
q.Where(`"order".order_type=?`, v)
|
68
|
q.Where(`"order".order_type=?`, v)
|
69
|
}
|
69
|
}
|
70
|
- if v, ok := options["partnerId"]; ok && len(v.(string)) > 0 {
|
70
|
+ if v, ok := options["partnerId"]; ok && v.(int) > 0 {
|
71
|
q.Where(`"order".partner_id =?`, v)
|
71
|
q.Where(`"order".partner_id =?`, v)
|
72
|
}
|
72
|
}
|
73
|
if v, ok := options["offset"]; ok {
|
73
|
if v, ok := options["offset"]; ok {
|