Commit 6cb0ea73 authored by zhuwei's avatar zhuwei

bug

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