public static function initDB()
 {
     global $dbConn;
     self::$dbConn = $dbConn;
 }
 public static function pushBackAllOrder()
 {
     $orderArr = $_POST['ordersn'];
     $ordersn = substr($orderArr, 0, strlen($orderArr) - 1);
     $note = $_POST['note'];
     $paramArr = array('method' => 'purtofinance.returnAllMoney', 'format' => 'json', 'v' => '1.0', 'username' => 'purchase', 'ordersn' => $ordersn, 'note' => $note);
     $rtnData = callOpenSystem($paramArr, 'local');
     $rtn = json_decode($rtnData, true);
     $rtnCode = $rtn['rtnCode'];
     if ($rtnCode == '1') {
         $rtnResult = PurToFinanceAPIModel::updEndPayOrderStatus($ordersn, 'backAllPay');
         //申请全额预付成功,更新订单请款状态
         if ($rtnResult) {
             return $rtnData;
         } else {
             $result['rtnCode'] = '1001';
             $result['rtnMsg'] = 'updStatusFailure';
             $result['data'] = '全额退款推送成功,采购系统状态更新失败';
             return json_encode($result);
         }
     } else {
         return $rtnData;
     }
 }