master
sunke 5 years ago
parent 07c385e561
commit ae0e10166a

@ -2569,7 +2569,7 @@ class ExportController extends Controller
$map8[] = ['u.id = v.user_id']; $map8[] = ['u.id = v.user_id'];
$map8['v.create_time'] = $map['create_time']; $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(); ->where($map5)->buildSql();
$valueQuery6 = M('value_detail_log', 'tab_')->alias('v')->field('sum(v.value) as spend_value') $valueQuery6 = M('value_detail_log', 'tab_')->alias('v')->field('sum(v.value) as spend_value')
->where($map6)->buildSql(); ->where($map6)->buildSql();

Loading…
Cancel
Save