Commit 9e00cc37 authored by zhuwei's avatar zhuwei

修改

parent 896454da
......@@ -148,8 +148,8 @@ class Shop extends Basic
$conditions['is_vip'] = $params['is_vip'];
}
//residue_type 0已租,1求租
if (!empty($params['residue_type'])) {
//residue_type 2已租,1求租
if (is_numeric($params['residue_type'])) {
if($params['residue_type'] == 1){
$conditions['residue_num'] = array('gt',0);
}else{
......
......@@ -75,13 +75,12 @@ class Transfer extends Basic
$where['c.agent_id'] = $params['agent_id'];
}else{
//是否有客方 0为没有,1为有
if (!empty($params['agent_type'])) {
if (is_numeric($params['agent_type'])) {
if($params['agent_type'] == 1){
$where['c.agent_id'] = array('gt',0);
}else{
$where['c.agent_id'] = 0;
}
}
}
......
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