作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

数据导出调试

@@ -35,7 +35,7 @@ class TestController extends HomeBaseController @@ -35,7 +35,7 @@ class TestController extends HomeBaseController
35 ]; 35 ];
36 $indent_ids = Db::name('money_income')->where('uid',$uid)->group('indent_id')->column('indent_id'); 36 $indent_ids = Db::name('money_income')->where('uid',$uid)->group('indent_id')->column('indent_id');
37 foreach ($indent_ids as &$id) { 37 foreach ($indent_ids as &$id) {
38 - $v = Db::name('indent')->where('id',$id)->order('create_time','desc')->select(); 38 + $v = Db::name('indent')->where('id',$id)->find();
39 if($v['state'] == 3 || $v['state'] == 5) { 39 if($v['state'] == 3 || $v['state'] == 5) {
40 $money = Db::name('money_income')->where('uid',$uid)->where('indent_id',$v['id'])->value('money'); 40 $money = Db::name('money_income')->where('uid',$uid)->where('indent_id',$v['id'])->value('money');
41 $fact_money = Db::name('money_income')->where('uid',$uid)->where('indent_id',$v['id'])->sum('money'); 41 $fact_money = Db::name('money_income')->where('uid',$uid)->where('indent_id',$v['id'])->sum('money');