正在显示
1 个修改的文件
包含
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'); |
-
请 注册 或 登录 后发表评论