aa
This commit is contained in:
@@ -388,13 +388,23 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
|
||||
}
|
||||
}
|
||||
}
|
||||
//if isJxIncomeArea {
|
||||
// var order2 *model.GoodsOrderExt
|
||||
// if order.JxIncome >= begin && order.JxIncome <= end {
|
||||
// order2 = order
|
||||
// return []*model.GoodsOrderExt{order2}, err
|
||||
// }
|
||||
//}
|
||||
count := &struct {
|
||||
Count int
|
||||
}{}
|
||||
sql2 := `
|
||||
SELECT COUNT(*) count
|
||||
FROM goods_order WHERE IF(store_id = 0, jx_store_id ,store_id) = ?
|
||||
`
|
||||
storeID := 0
|
||||
if order.StoreID == 0 {
|
||||
storeID = order.JxStoreID
|
||||
} else {
|
||||
storeID = order.StoreID
|
||||
}
|
||||
sqlParams2 := []interface{}{storeID}
|
||||
if err = dao.GetRow(db, &count, sql2, sqlParams2); err == nil {
|
||||
order.StoreDayOrderCount = count.Count
|
||||
}
|
||||
return retVal, err
|
||||
}, orders)
|
||||
tasksch.HandleTask(task, nil, true).Run()
|
||||
|
||||
Reference in New Issue
Block a user