feat(StoreFinanceFlowDayLists): 修正财务流水日列表查询语句
This commit is contained in:
parent
300b6b4bb2
commit
3a80a09c83
@ -46,7 +46,7 @@ class StoreFinanceFlowDayLists extends BaseAdminDataLists implements ListsSearch
|
||||
return StoreFinanceFlow::where($this->searchWhere)
|
||||
->field('
|
||||
FROM_UNIXTIME(create_time, "%Y-%m-%d") as date,
|
||||
SUM(CASE WHEN financial_pm = 1 AND WHERE financial_type=1 THEN number ELSE 0 END) as income,
|
||||
SUM(CASE WHEN financial_pm = 1 AND financial_type = 1 THEN number ELSE 0 END) as income,
|
||||
SUM(CASE WHEN financial_pm = 0 THEN number ELSE 0 END) as expenditure
|
||||
')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
|
Loading…
x
Reference in New Issue
Block a user