Merge pull request 'bug fix' (#2) from zm into master

Reviewed-on: mengfucius/wkcrm#2
pull/5/head^2
张萌 2 years ago
commit 12e224f2d8

@ -718,7 +718,7 @@ class Business extends Common
'SUM(CASE WHEN is_end = 2 THEN money ELSE 0 END) AS sum_shu', 'SUM(CASE WHEN is_end = 2 THEN money ELSE 0 END) AS sum_shu',
'count(if (is_end = 1,true,null)) as count_ying', 'count(if (is_end = 1,true,null)) as count_ying',
'count(if (is_end = 2,true,null)) as count_shu', 'count(if (is_end = 2,true,null)) as count_shu',
'type_id' // 'type_id'
]) ])
->where($map) ->where($map)
->fetchSql() ->fetchSql()

Loading…
Cancel
Save