Commit 99ddaea2 authored by 吴贤德's avatar 吴贤德

后台:酒店片库增加媒资id和媒资code显示

parent f0273f18
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
class ToolAction extends Action class ToolAction extends Action
{ {
/* /*
* 鉴权调度拼接 * 获取媒资对应的所有分前端的gslb地址
* 参数 :
* sp_id = id
* media_id = code
* 返回 : http://frontip:port/api/gslb?media_id=&sw_time=&sw_sign= * 返回 : http://frontip:port/api/gslb?media_id=&sw_time=&sw_sign=
* 签名 :MD5(request_uri(不包含sw_sign)KEY),sw_sign必须放在最后面,key由平台提供 * 签名 :MD5(request_uri(不包含sw_sign)KEY),sw_sign必须放在最后面,key由平台提供
*/ */
......
...@@ -35,7 +35,7 @@ class HotelMediaMapModel extends RelationModel{ ...@@ -35,7 +35,7 @@ class HotelMediaMapModel extends RelationModel{
//返回列表(limit分页) //返回列表(limit分页)
if($queryType=="list"){ if($queryType=="list"){
$where .= $sort." ".$limit; $where .= $sort." ".$limit;
$fields = " A.*,B.url_pic,B.title,C.`name` hotel_name,case A.`status` when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' when 0 then '<font color=red>删除</font>' end as `status` "; $fields = " A.*,B.id mid,B.code mcode,B.url_pic,B.title,C.`name` hotel_name,case A.`status` when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' when 0 then '<font color=red>删除</font>' end as `status` ";
} }
$sql = "select ".$fields." from ".$this->tableName." A join sh_media_wasu B on A.media_id = B.id join sh_hotel C on A.hotel_id = C.id and C.sp_id = $searchSp where 1=1 ".$where.";"; $sql = "select ".$fields." from ".$this->tableName." A join sh_media_wasu B on A.media_id = B.id join sh_hotel C on A.hotel_id = C.id and C.sp_id = $searchSp where 1=1 ".$where.";";
// echo $sql; // echo $sql;
......
...@@ -57,7 +57,7 @@ onRowContextMenu : onRowContextMenu ...@@ -57,7 +57,7 @@ onRowContextMenu : onRowContextMenu
"> ">
<thead> <thead>
<tr> <tr>
<th data-options="field:'id',width:15" align="center">ID</th>
<th field="url_pic" align="center" formatter="imageFormat">媒资海报</th> <th field="url_pic" align="center" formatter="imageFormat">媒资海报</th>
<th data-options="field:'title',width:60" sortable="true">媒资标题</th> <th data-options="field:'title',width:60" sortable="true">媒资标题</th>
<th data-options="field:'sp_name',width:20" sortable="true">所属合作方</th> <th data-options="field:'sp_name',width:20" sortable="true">所属合作方</th>
......
...@@ -71,7 +71,8 @@ onRowContextMenu : onRowContextMenu ...@@ -71,7 +71,8 @@ onRowContextMenu : onRowContextMenu
"> ">
<thead> <thead>
<tr> <tr>
<th data-options="field:'mid',width:15" align="center">媒资ID</th>
<th data-options="field:'mcode',width:20" align="center">媒资标识</th>
<th field="url_pic" align="center" formatter="imageFormat">媒资海报</th> <th field="url_pic" align="center" formatter="imageFormat">媒资海报</th>
<th data-options="field:'title',width:60" sortable="true">媒资标题</th> <th data-options="field:'title',width:60" sortable="true">媒资标题</th>
<th data-options="field:'hotel_name',width:30">酒店名称</th> <th data-options="field:'hotel_name',width:30">酒店名称</th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment