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