Commit 6cb0ea73 authored by zhuwei's avatar zhuwei

bug

parent 1271ebc0
...@@ -1467,11 +1467,11 @@ class OBargainModel extends Model ...@@ -1467,11 +1467,11 @@ class OBargainModel extends Model
public function getAddBargainNumOperation($params, $type) public function getAddBargainNumOperation($params, $type)
{ {
$field = "count(1) as num"; $field = "count(1) as num";
//$where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620 //$where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620
$params["a.role"] = 3;//必须是反签方 $params["a.role"] = 3;//必须是反签方
$params['c.shop_type'] = $type == 0 ? 0: 1; $params['c.shop_type'] = $type == 0 ? 0 : 1;
//dump($params); // dump($params);
$return = Db::table($this->table) $return = Db::table($this->table)
->field($field) ->field($field)
->alias("a") ->alias("a")
...@@ -1479,7 +1479,8 @@ class OBargainModel extends Model ...@@ -1479,7 +1479,8 @@ class OBargainModel extends Model
->join("g_houses c", "b.house_id = c.id", "left") ->join("g_houses c", "b.house_id = c.id", "left")
->where($params) ->where($params)
->select(); ->select();
//echo $this->getLastSql(); /*echo $this->getLastSql();
echo '--------------';*/
return $return; return $return;
} }
} }
\ No newline at end of file
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