提交 43208a94 authored 作者: fengzy's avatar fengzy

OA数据同步生产环境测试

上级 39b0a564
...@@ -72,7 +72,7 @@ class openoafkClassAction extends openapiAction ...@@ -72,7 +72,7 @@ class openoafkClassAction extends openapiAction
$payflow = $this->db->getone('[Q]c_fk_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno'); $payflow = $this->db->getone('[Q]c_fk_paymentflow',"`fbillno`='".$new_array[$ke]['FBillNo']."'",'id,fbillno');
$fbillno=$new_array['FBillNo']; $fbillno=$new_array['FBillNo'];
$datalist = $this->db->getone('[Q]c_fininfom_oafk',"`fbillno`='".$value['fbillno']."'",'id,docnum,payee,fbillno,amount'); $datalist = $this->db->getone('[Q]c_fininfom_oafk',"`fbillno`='".$value['fbillno']."'",'id,docnum,payee,fbillno,amountOfThisPayment');
$paymentflow=array( $paymentflow=array(
'docnum' =>$datalist['docnum'], 'docnum' =>$datalist['docnum'],
...@@ -88,9 +88,9 @@ class openoafkClassAction extends openapiAction ...@@ -88,9 +88,9 @@ class openoafkClassAction extends openapiAction
} }
} }
if($datalist['amount']==$sum){ if($datalist['amountOfThisPayment']==$sum){
m('c_emfk')->update('`status`=1',$datalist['id']); m('c_fininfom_oafk')->update('`status`=1',$datalist['id']);
$zfarr = array( $zfarr = array(
'status' =>1, 'status' =>1,
'nowcourseid' => 0, 'nowcourseid' => 0,
...@@ -132,9 +132,8 @@ class openoafkClassAction extends openapiAction ...@@ -132,9 +132,8 @@ class openoafkClassAction extends openapiAction
$new_array= array_combine($key,$v); $new_array= array_combine($key,$v);
} }
$fbillno=$new_array['FBillNo']; $fbillno=$new_array['FBillNo'];
$datalist = $this->db->getone('oa_c_fininfom_oafk',"`fbillno`='$fbillno'",'id,docnum,payee,fbillno,amount'); $datalist = $this->db->getone('[Q]c_fininfom_oafk',"`fbillno`='".$fbillno."'",'id,docnum,payee,fbillno,amountOfThisPayment');
var_dump($fbillno);
var_dump($datalist);
if($new_array['FDOCUMENTSTATUS']=='C'){ if($new_array['FDOCUMENTSTATUS']=='C'){
$payflow = $this->db->getone('[Q]c_fk_paymentflow',"`fbillno`='".$new_array['FBillNo']."'",'id,fbillno'); $payflow = $this->db->getone('[Q]c_fk_paymentflow',"`fbillno`='".$new_array['FBillNo']."'",'id,fbillno');
if(!$payflow ){ if(!$payflow ){
...@@ -152,7 +151,7 @@ class openoafkClassAction extends openapiAction ...@@ -152,7 +151,7 @@ class openoafkClassAction extends openapiAction
if($datalist['amount']==$new_array['FPAYTOTALAMOUNTFOR']){ if($datalist['amountOfThisPayment']==$new_array['FPAYTOTALAMOUNTFOR']){
m('c_fininfom_oafk')->update('`status`=1',$datalist['id']); m('c_fininfom_oafk')->update('`status`=1',$datalist['id']);
$zfarr = array( $zfarr = array(
'status' =>1, 'status' =>1,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论