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

数据导出调试

... ... @@ -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();
... ...