改进网前订单查询提示

hotfix/远程访问多媒体中心
LiaoYijun 6 years ago
parent 9987bb4170
commit 18df4ea7fa

@ -9,10 +9,17 @@ class Order_model extends CI_Model {
public function get_order_by_id($order_id) { public function get_order_by_id($order_id) {
// [syn123].tourmanager.dbo. // [syn123].tourmanager.dbo.
$order_query = $this->hunter->query("select COLI_Name, COLI_OrderDetailText, COLI_OrderStartDate $order_query = $this->hunter->query("select COLI_Name, COLI_OrderDetailText, COLI_OrderStartDate
from ConfirmLineInfoTmp from [syn123].tourmanager.dbo.ConfirmLineInfoTmp
where where
COLI_ID = ?", $order_id); COLI_ID = ?", $order_id);
$order_array = $order_query->row_array(); $order_array = $order_query->row_array();
if (empty($order_array)) {
$order_array = [
'COLI_Name' => '无法查到该订单',
'COLI_OrderDetailText' => '请检查订单号是否正确',
'COLI_OrderStartDate' => 'NULL'
];
}
return $order_array; return $order_array;
} }
@ -26,8 +33,8 @@ class Order_model extends CI_Model {
if (empty($order_array)) { if (empty($order_array)) {
$order_array = [ $order_array = [
'COLI_Name' => 'NULL', 'COLI_Name' => '无法查到该订单',
'COLI_OrderDetailText' => 'NULL', 'COLI_OrderDetailText' => '订单可能没有同步回来',
'COLI_OrderStartDate' => 'NULL' 'COLI_OrderStartDate' => 'NULL'
]; ];
} }

@ -16,12 +16,11 @@
</form> </form>
<br> <br>
<div class="panel panel-success"> <div class="panel panel-success">
<div class="panel-heading">网前</div> <div class="panel-heading">网前订单情况</div>
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<caption>已经入库成功</caption>
<thead> <thead>
<tr> <th>COLI_Name</th> <th>COLI_OrderDetailText</th> <tr> <th style='width: 12%'>订单号</th> <th>订单信息</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -35,12 +34,11 @@
</div> </div>
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading">HT</div> <div class="panel-heading">HT 订单情况</div>
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<caption>可以在HT查询</caption>
<thead> <thead>
<tr> <th>COLI_Name</th> <th>COLI_OrderDetailText</th> <tr> <th style='width: 12%'>订单号</th> <th>订单信息</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

Loading…
Cancel
Save