Commit 3c69398b authored by clone's avatar clone Committed by hujun

格式

parent c5bb6186
......@@ -92,7 +92,6 @@ class AttentionShop extends Basic
$result[$key]["images"] = $imgArr;
}
return $this->response("200", "request success", $result);
}
......
......@@ -8,12 +8,13 @@ class Applies extends Model
{
protected $table = 'applies';
public function getAppliesList($pageNo, $pageSize, $order_, $field,$params){
public function getAppliesList($pageNo, $pageSize, $order_, $field, $params)
{
return $this
->field($field)
->alias("a")
->join('houseinfos b','a.house_id = b.id' ,'LEFT')
->join('houseinfos b', 'a.house_id = b.id', 'LEFT')
->join('houseinfo_exts c', 'c.house_id = b.id', 'LEFT')
->where($params)
->order($order_)
......
......@@ -44,7 +44,8 @@ class SubletModel extends Model
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getSublet($pageNo = 1, $pageSize = 15, $order_ = '', $fields = '*', $params = '') {
public function getSublet($pageNo = 1, $pageSize = 15, $order_ = '', $fields = '*', $params = '')
{
$result = $this->field($fields)
->where($params)
->order($order_)
......@@ -60,7 +61,8 @@ class SubletModel extends Model
* @param $params
* @return int|string
*/
public function getSubletTotal($params) {
public function getSubletTotal($params)
{
$result = $this->where($params)->count();
return $result;
}
......@@ -70,7 +72,8 @@ class SubletModel extends Model
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public function getSubletByHoseId( $params ) {
public function getSubletByHoseId($params)
{
return $this->field("id,status")
->where($params)
->select();
......
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