提交 fbd92010 authored 作者: chengye's avatar chengye

调整emfkmodel

上级 c3e708bd
...@@ -102,9 +102,10 @@ class flow_emfkClassModel extends flowModel ...@@ -102,9 +102,10 @@ class flow_emfkClassModel extends flowModel
$cbzx_code= self::dept($project['data'][0]['jz_cur_dept']); $cbzx_code= self::dept($project['data'][0]['jz_cur_dept']);
var_dump($cbzx_code);
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心id $cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心id
var_dump($cost);die;
if($cost['type']=='1'){ if($cost['type']=='1'){
if(($cost['account_balance']-$cost['freeze_amount'])<$vo['amount']){ if(($cost['account_balance']-$cost['freeze_amount'])<$vo['amount']){
return "账户余额不足";die; return "账户余额不足";die;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论