From 5675a84433ede730279722b7a4d425a29b054810 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 5 Nov 2019 21:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=98=9F=E5=88=A4=E6=96=AD=E4=BF=9D?= =?UTF-8?q?=E5=8D=95=E5=8F=B7=E6=97=B6=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/InsurerController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/controllers/InsurerController.php b/frontend/controllers/InsurerController.php index b6c7fa4..842475d 100644 --- a/frontend/controllers/InsurerController.php +++ b/frontend/controllers/InsurerController.php @@ -932,6 +932,7 @@ class InsurerController extends BaseController $tmp_count = OrderT::find() ->where('insurer1_no=:insurer1_no or insurer2_no=:insurer1_no', [':insurer1_no'=>$insurer1_no]) + ->andWhere('id<>'.$order_id) ->count(); if($tmp_count > 0) { $result['msg'] = '商业保单号已经存在!'; @@ -939,6 +940,7 @@ class InsurerController extends BaseController } $tmp_count = OrderT::find() ->where('insurer1_no=:insurer2_no or insurer2_no=:insurer2_no', [':insurer2_no'=>$insurer2_no]) + ->andWhere('id<>'.$order_id) ->count(); if($tmp_count > 0) { $result['msg'] = '交强保单号已经存在!';