...
|
...
|
@@ -38,7 +38,7 @@ class TestController extends HomeBaseController |
|
|
foreach ($indent_ids as &$id) {
|
|
|
$v = Db::name('indent')->where('id',$id)->find();
|
|
|
// if(!$v) $else_ids[] = $id;
|
|
|
if($v['state'] == 3 || $v['state'] == 5) {
|
|
|
if($v['state'] == 2 || $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');
|
|
|
// $income = Db::name('money_income')->where('uid',$uid)->where('indent_id',$v['id'])->select();
|
...
|
...
|
|