master
sunke 5 years ago
parent 0758921bfe
commit 07c385e561

@ -1335,7 +1335,7 @@ class FinanceController extends ThinkController
$map8[] = ['u.id = v.user_id'];
$map8['v.create_time'] = $map['create_time'];
$valueQuery5 = M('value_detail_log', 'tab_')->alias('v')->field('sum(abs(v.value)) as spend_value')
$valueQuery5 = M('value_detail_log', 'tab_')->alias('v')->field('if(sum(abs(v.value)) != null, sum(abs(v.value)) , 0) as spend_value')
->where($map5)->buildSql();
$valueQuery6 = M('value_detail_log', 'tab_')->alias('v')->field('sum(v.value) as spend_value')
->where($map6)->buildSql();

Loading…
Cancel
Save