提交 026f8e2c authored 作者: fengzy's avatar fengzy

测试付款单

上级 c29434fc
......@@ -70,12 +70,12 @@ class flow_oafkClassModel extends flowModel
$cost_id=$vo['cost_id'];
$sql = " cost_id='$cost_id' and status = 1 and is_default=1";
$fund_account_cost = m('c_fund_account')->getone($sql, 'id,freeze_amount');
var_dump($fund_account_cost);
$id=$fund_account_cost['id'];
$freeze = array(
'freeze_amount' => $fund_account_cost['freeze_amount'] - $vo['amount'],
);
var_dump(m('c_fund_account')->update($freeze, "`id`='$id'"));
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论