<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 訂單的審批 **位置:** Common\Lib\FlowLib.class.php **參數:** * @param $data array 訂單信息(如:訂單類型,訂單ID) * @return array 訂單審批返回提示信息 **調用:** * $flow = new FlowLib(); * $order_arr = $flow->orderExecute($data); **完整代碼:** ~~~ /** * 訂單的審批 * @param $data array 訂單信息 * @return array 審批是否成功提示信息 * whz 2018-01-26 * */ public function orderExecute($data) { M()->startTrans(); //1、改變訂單狀態:2、已審批 $datas = array( 'id' => $data['id'], 'status' => 2 ); $res = M("wms_flow")->save($datas); //2、判斷審批失敗 if ($res === false) { M()->rollback(); return array('success'=>false, 'code'=>201, 'msg'=>'審批失敗!'); } //3、生成日志記錄 $add_log['description'] = '審批成功!'; $add_log['order_id'] = $data['id']; $add_log['type'] = $data['type']; $ress = $this->addLog($add_log); if(!$ress){ M()->rollback(); return array('success'=>false, 'code'=>202, 'msg'=>'審批失敗!'); } M()->commit(); return array('success'=>true, 'code'=>200, 'msg'=>'審批完成!'); } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看