提交 2aa66245 authored 作者: fengzy's avatar fengzy

'调整费用报销与借款单逻辑'

上级 ae7d2d30
......@@ -55,14 +55,15 @@ class flow_emfkClassModel extends flowModel
return $cbzxid;
}
protected function flowsubmit($na, $sm){
static function project($project_code){
$url = getconfig('base_url'). 'v2/project/list?key=';
$key = substr(md5(getconfig('openkey').date('Y-m-d')),0,12);
$url = $url.$key;
$url .= '&project_code='.'WJFX-3-14066';
$res = curlGet($url);
$url .= '&project_code='.$project_code;
$res = json_decode(curlGet($url),true);
return $res;
}
//二级 或一级审批同意之后进行预扣款
......@@ -98,7 +99,8 @@ class flow_emfkClassModel extends flowModel
$data = m('c_emfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount');
foreach ($data as $key => $vo) {
$cbzx_code=self::dept($vo['cbzxid']);
$cbzx_code=self::project($vo['cbzxid']);
var_dump($cbzx_code);die;
$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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论