|
|
@ -932,6 +932,7 @@ class InsurerController extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
$tmp_count = OrderT::find() |
|
|
|
$tmp_count = OrderT::find() |
|
|
|
->where('insurer1_no=:insurer1_no or insurer2_no=:insurer1_no', [':insurer1_no'=>$insurer1_no]) |
|
|
|
->where('insurer1_no=:insurer1_no or insurer2_no=:insurer1_no', [':insurer1_no'=>$insurer1_no]) |
|
|
|
|
|
|
|
->andWhere('id<>'.$order_id) |
|
|
|
->count(); |
|
|
|
->count(); |
|
|
|
if($tmp_count > 0) { |
|
|
|
if($tmp_count > 0) { |
|
|
|
$result['msg'] = '商业保单号已经存在!'; |
|
|
|
$result['msg'] = '商业保单号已经存在!'; |
|
|
@ -939,6 +940,7 @@ class InsurerController extends BaseController |
|
|
|
} |
|
|
|
} |
|
|
|
$tmp_count = OrderT::find() |
|
|
|
$tmp_count = OrderT::find() |
|
|
|
->where('insurer1_no=:insurer2_no or insurer2_no=:insurer2_no', [':insurer2_no'=>$insurer2_no]) |
|
|
|
->where('insurer1_no=:insurer2_no or insurer2_no=:insurer2_no', [':insurer2_no'=>$insurer2_no]) |
|
|
|
|
|
|
|
->andWhere('id<>'.$order_id) |
|
|
|
->count(); |
|
|
|
->count(); |
|
|
|
if($tmp_count > 0) { |
|
|
|
if($tmp_count > 0) { |
|
|
|
$result['msg'] = '交强保单号已经存在!'; |
|
|
|
$result['msg'] = '交强保单号已经存在!'; |
|
|
|