...
|
...
|
@@ -117,11 +117,11 @@ class MeGuaranteeController extends WeChatBaseController |
|
|
// $where['o.order_about_time'] = ['>',$time];
|
|
|
// $where['o.order_expire_time2'] = ['>',$time];
|
|
|
if(!empty($param['application']) && !empty($param['agent_phone'])){
|
|
|
$whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
|
|
|
$whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
|
|
|
}else if(!empty($param['application'])){
|
|
|
$whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'";
|
|
|
$whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'";
|
|
|
}else if(!empty($param['agent_phone'])){
|
|
|
$whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
|
|
|
$whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
|
|
|
}else{
|
|
|
$whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.insurer ="."'"."$insurer"."'";
|
|
|
}
|
...
|
...
|
|