Commit ed38bdb4 authored by 吴贤德's avatar 吴贤德

后台:酒店片库列表获取查询增加status1

parent cb483605
......@@ -54,7 +54,7 @@ class HotelMediaMapModel extends RelationModel{
//返回列表(limit分页)
if($queryType=="list"){
$where .= $sort." ".$limit;
$fields = " A.*,B.id mid,B.code mcode,B.programType,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.programType,B.url_pic,B.title,C.`name` hotel_name,A.`status` status1,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.";";
// echo $sql;
......
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