提交 3f0662d8 authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 328d7562
...@@ -285,8 +285,8 @@ class flow_finfybxClassModel extends flowModel ...@@ -285,8 +285,8 @@ class flow_finfybxClassModel extends flowModel
$ret[$v['cbxmid']]['money'] += $v['money']; $ret[$v['cbxmid']]['money'] += $v['money'];
} }
} }
$ret = array_values($ret);
foreach ($data as $key => $vo) { foreach ($ret as $key => $vo) {
$cbzx_code=$vo['cbxmid']; $cbzx_code=$vo['cbxmid'];
$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,name,freeze_amount,account_balance');//查询账户表成本中心 $cost = m('c_fund_account')->getone($sql, 'id,type,name,freeze_amount,account_balance');//查询账户表成本中心
...@@ -421,7 +421,6 @@ class flow_finfybxClassModel extends flowModel ...@@ -421,7 +421,6 @@ class flow_finfybxClassModel extends flowModel
$post_content = self::create_postdata($data); $post_content = self::create_postdata($data);
$result = self::invoke_login($cloudUrl,$post_content,$cookie_jar); $result = self::invoke_login($cloudUrl,$post_content,$cookie_jar);
header("Content-type: text/html; charset=utf8"); header("Content-type: text/html; charset=utf8");
$starttime = microtime(true);
$applicant=$this->rs['applicant'];//申请人 $applicant=$this->rs['applicant'];//申请人
$applicationdpt=$this->rs['applicationdpt'];//申请部门 $applicationdpt=$this->rs['applicationdpt'];//申请部门
$applydt=$this->rs['applydt'];//申请日期 $applydt=$this->rs['applydt'];//申请日期
...@@ -515,11 +514,8 @@ class flow_finfybxClassModel extends flowModel ...@@ -515,11 +514,8 @@ class flow_finfybxClassModel extends flowModel
); );
$post_content = self::create_postdata($data); $post_content = self::create_postdata($data);
var_dump($post_content);
$result = self::invoke_add($cloudUrl,$post_content,$cookie_jar); $result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
var_dump($result);
$array = json_decode($result,true); $array = json_decode($result,true);
var_dump($array);
$num=$array['Result']['Number']; $num=$array['Result']['Number'];
if($array['Result']['ResponseStatus']['IsSuccess']){ if($array['Result']['ResponseStatus']['IsSuccess']){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论