Commit cf7c659e authored by clone's avatar clone

11

parent c51bccbb
......@@ -82,6 +82,7 @@ class LookShop extends Basic
"end_time" => '2018-07-31',
"house_id" => 3084,
"house_name" => "",
"user_id" => 11,
"user_name" => "",
"user_phone" => "",
"page_no" => 1,
......@@ -101,6 +102,9 @@ class LookShop extends Basic
if (!empty($params["house_name"])) {
$condition["b.internal_title"] = array("like", "%" . trim($params["house_name"]) . "%");
}
if (!empty($params["user_id"])) {
$condition["c.id"] = $params["user_id"];
}
if (!empty($params["user_name"])) {
$condition["c.user_name"] = array("like", "%" . trim($params["user_name"]) . "%");
}
......@@ -114,10 +118,10 @@ class LookShop extends Basic
$field = "a.id,a.create_time,a.house_id,b.internal_title,c.user_name,c.user_phone";
$tLookShopUser = new TLookShopUser();
$result = $tLookShopUser->getList($condition, $field, $pageNo, $pageSize);
//$total = $this->tLookShopModel->getListCount($condition, $field);
$total = $tLookShopUser->getListCount($condition, $field);
$list["list"] = $result;
$list["total"] = 150;
$list["total"] = $total;
return $this->response("200", "success", $list);
}
......
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