diff --git a/app/index/controller/MeGuaranteeController.php b/app/index/controller/MeGuaranteeController.php index 2d9079d..8ab1174 100644 --- a/app/index/controller/MeGuaranteeController.php +++ b/app/index/controller/MeGuaranteeController.php @@ -111,15 +111,15 @@ class MeGuaranteeController extends WeChatBaseController if($param['status'] == 1){ $where['o.status'] = ['eq',1]; $where['c.insurer'] = ['eq',$param['insurer']]; - $where['o.order_about_time'] = ['<',$time+30*24*60*60]; + $where['o.order_about_time'] = ['>',$time+30*24*60*60]; if(!empty($param['application']) && !empty($param['agent_phone'])){ - $whereor = "o.status = 3 and o.order_about_time > $time and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; + $whereor = "o.status = 3 and o.order_about_time > ".($time+30*24*60*60)." and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; }else if(!empty($param['application'])){ - $whereor = "o.status = 3 and o.order_about_time > $time and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'"; + $whereor = "o.status = 3 and o.order_about_time > ".($time+30*24*60*60)." and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'"; }else if(!empty($param['agent_phone'])){ - $whereor = "o.status = 3 and o.order_about_time > $time and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; + $whereor = "o.status = 3 and o.order_about_time > ".($time+30*24*60*60)." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; }else{ - $whereor = "o.status = 3 and o.order_about_time > $time and c.insurer ="."'"."$insurer"."'"; + $whereor = "o.status = 3 and o.order_about_time > ".($time+30*24*60*60)." and c.insurer ="."'"."$insurer"."'"; } }else if($param['status'] == 2){ $where['o.status'] = ['eq',3];