提交 c564d88c authored 作者: fengzy's avatar fengzy

OA数据同步生产环境测试

上级 8b915ae7
...@@ -30,9 +30,8 @@ class flow_emfkClassModel extends flowModel ...@@ -30,9 +30,8 @@ class flow_emfkClassModel extends flowModel
if($flowid['nowcheckid']=='1085'){ if($flowid['nowcheckid']=='1085'){
$applicant = $this->rs['applicant'];//申请人 $payee = $this->rs['payee'];//收款方
$FCREATORID = $this->db->getone('oa_personfile', "name='" . $this->rs['applicant'] . "'"); $supplier = m('supplier')->getone("name = '$payee' ",'number');
$gonncode = $FCREATORID['gonncode']; //申请人编号
//明细 //明细
$oa_fininfos=$this->db->getrows('oa_c_emfk_details',"mid='".$this->rs['id']."'"); $oa_fininfos=$this->db->getrows('oa_c_emfk_details',"mid='".$this->rs['id']."'");
...@@ -169,9 +168,9 @@ class flow_emfkClassModel extends flowModel ...@@ -169,9 +168,9 @@ class flow_emfkClassModel extends flowModel
$model['Model']['FDATE']=$applydt; $model['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$gonncode; $model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number'];
$model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];; $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];;
// $model['Model']['FRECTUNIT']['FNumber']=$gonncode; $model['Model']['FRECTUNIT']['FNumber']=$supplier['number'];
$model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY']; $model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY'];
$data_model=json_encode($model); $data_model=json_encode($model);
......
...@@ -120,7 +120,7 @@ class openemClassAction extends openapiAction ...@@ -120,7 +120,7 @@ class openemClassAction extends openapiAction
'qmimg' =>NULL, 'qmimg' =>NULL,
'iszb' =>0 'iszb' =>0
); );
var_dump($this->sendMess(1,3)); $this->sendMess(1,3);
m('flow_log')->insert($addarr); m('flow_log')->insert($addarr);
$docnum= $datalist['docnum']; $docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount'); $withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
...@@ -247,8 +247,7 @@ class openemClassAction extends openapiAction ...@@ -247,8 +247,7 @@ class openemClassAction extends openapiAction
'iszb' =>0 'iszb' =>0
); );
m('flow_log')->insert($addarr); m('flow_log')->insert($addarr);
var_dump($this->sendMess(1,3)); $this->sendMess(1,3);
$docnum= $datalist['docnum']; $docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount'); $withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论