|
|
@ -930,6 +930,10 @@ class InsurerController extends BaseController |
|
|
|
$insurer2_no= trim($insurer2_no); |
|
|
|
$insurer2_no= trim($insurer2_no); |
|
|
|
$insurer2_no=str_replace(" ","",$insurer2_no); |
|
|
|
$insurer2_no=str_replace(" ","",$insurer2_no); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($insurer1_no == $insurer2_no) { |
|
|
|
|
|
|
|
$result['msg'] = '商业保单号和交强保单号不能相同!'; |
|
|
|
|
|
|
|
return $result; |
|
|
|
|
|
|
|
} |
|
|
|
$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) |
|
|
|
->andWhere('id<>'.$order_id) |
|
|
|