From 025e074ddc4d956996c985ead649ccb27aa4529a Mon Sep 17 00:00:00 2001
From: 王晓刚 <wxg@bronet.cn>
Date: Mon, 11 Feb 2019 16:49:52 +0800
Subject: [PATCH] 代理人注册

---
 app/index/controller/MeGuaranteeController.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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];
--
libgit2 0.24.0