Pacific.php
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
namespace app\products\validate;
use app\common\validate\BaseValidate;
/**
* 功能描述 太平洋燃气险通用验证规则
* Class Gas
* @package app\commapi\validate
* Date: 2020/7/27
* Time: 15:40
* @author nyq
*/
class Pacific extends BaseValidate
{
protected $rule = [
"plcPlanCode" => "require",
"plcStartDate" => "require",
"plcEndDate" => "require",
//投保人
'apltName' => 'require',
'apltCretType'=>'require',
'apltCretCode'=>'require',
'apltMobile'=>'require',
//被保人信息
'isrdName'=>'require',
'isrdCretType'=>'require',
'isrdCretCode'=>'require',
'isrdMobile'=>'require',
//支付方式
'paymentWay'=>'require',
//接受信息方式
'elcMsgFlag'=>'require',
'elcEmlFlag'=>'require',
//保单查询
'plcApplyNo'=>'require',
'plcBusinessNo'=>'require',
'policyNo'=>'require',
'isrdAddress'=>'require',
];
protected $message = [
"plcPlanCode.require" => "承保方案代码必须",
"plcStartDate.require" => "保险起期必传",
"plcEndDate.require" => "保险止期必传",
//投保人
'apltName.require' => '投保人姓名必传',
'apltCretType.require' => '投保人证件类型必传',
'apltCretCode.require' => '投保人证件号必传',
"apltMobile.require" => "投保人手机号必传",
//被保人
"isrdName.require" => "被保人姓名必传",
"isrdCretType.require" => "被保人证件类型必传",
"isrdCretCode.require" => "被保人证件号必传",
"isrdMobile.require" => "被保人手机号必传",
"isrdAddress.require"=>"被保人地址必传",
"paymentWay.require" => "支付方式必传",
"elcMsgFlag.require" => "是否接受手机信息必传",
"elcEmlFlag.require" => "是否接受邮件信息必传",
//保单查询
"plcApplyNo.require" => "投保单号必传",
"plcBusinessNo.require" => "业务号(订单号)必传",
"policyNo.require" => "保单号必传",
];
protected $scene = [
//承保
"get_PolicyApply"=>["plcPlanCode","plcStartDate","plcEndDate","apltName","apltCretType","apltCretCode","apltMobile","isrdName","isrdCretType","isrdCretCode","isrdMobile","isrdAddress","paymentWay","elcMsgFlag","elcEmlFlag"],
"get_PolicyQuery"=>["plcApplyNo","plcBusinessNo"],
"get_Surrender"=>["plcApplyNo","plcBusinessNo"],
"get_InsurancePolicyDown"=>["policyNo"],
"get_invoiceDown"=>["policyNo"]
];
}