Commit b1398f9f authored by 王东's avatar 王东

指标计算承保字段调整

parent 06d22eed
{
"systemName":"流计算平台",
"systemCode":"D030",
"sendTime":"${.now?string("yyyy-MM-dd HH:mm:ss")}",
"msgCode":"carpolicy",
"msgName":"新核心车险保单信息",
"data":[{
"policyNo":"${policyNo!}" <#-- 保单号 -->
,"businessNo":"${businessNo!}" <#-- 业务号 -->
,"underWriteEndDate":"${policyCreatDate!}" <#-- 核保通过时间 -->
,"comCode":"${businessOffice!}" <#-- 保单归属机构代码 -->
,"comName":"${businessOfficeName!}" <#-- 保单归属机构名称 -->
,"riskCode":"${productCode!}" <#-- 险种代码 -->
,"businessNature":"${businessNatureCode!}" <#-- 业务来源 -->
,"startDate":"${startTime!}" <#-- 起保时间 -->
,"endDate":"${endTime!}" <#-- 终保时间 -->
,"sumPremium":"${netPremium!}" <#-- 不含税保费 -->
,"premium":"${premium!}" <#-- 含税保费 -->
,"licenseNo":"<#if plcCar05??>${plcCar05.licensePlateNo!}</#if>" <#-- 车牌号 -->
,"frameNo":"<#if plcCar05??>${plcCar05.frameNo!}</#if>" <#-- 车架号 -->
,"modelCode":"<#if plcCar05??>${plcCar05.vehicleId!}</#if>" <#-- 车型 -->
,"newVehicleFlag":"<#if plcCar05??>${plcCar05.newVehicleFlag!}</#if>" <#-- 新车标识 -->
,"appliName":"<#if plcApplicant??><#list plcApplicant as s1>${s1.customerName!}<#if plcApplicant?size-1 gt s1?index >|</#if></#list></#if>" <#-- 投保人名称 -->
,"insuredName":"<#if plcPublicInsurant??><#list plcPublicInsurant as s1>${s1.customerName!}<#if plcPublicInsurant?size-1 gt s1?index >|</#if></#list></#if>" <#-- 被保人名称 -->
,"newPolicyFlag":"${newPolicyFlag!}" <#-- 新保标识 -->
,"autoTransreNewFlag":"${autoTransrenewFlag!}" <#-- 自动续保标识 -->
,"transferPolicyFlag":"${transferPolicyFlag!}" <#-- 转保标识 -->
,"transreNewFlag":"${transrenewFlag!}" <#-- 续保标识 -->
,"artifSelfPricesRat":"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifSelfPricesRat!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- 自主定价系数 -->
,"artifReviewPrem":"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifReviewPrem!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- 总保费 -->
,"agentFee":"<#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if>" <#-- 手续费含税金额 -->
,"agentNetFee":"<#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentNetFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if>" <#-- 手续费不含税金额 -->
,"agentComCode":"${saleaman!}" <#-- 代理机构代码 -->
,"agentComName":"${saleamanName!}" <#-- 代理机构名称 -->
,"newChnlType":"${businessChannelCode!}" <#-- 清分后渠道 -->
,"carKindCode":"<#if plcCar05??>${plcCar05.carKindCode!}</#if>" <#-- 车辆种类 -->
,"useNatureCode":"<#if plcCar05??>${plcCar05.carUserNatureCode!}</#if>" <#-- 车辆使用性质 -->
,"policySort":"${policySort!}" <#-- 保单种类 -->
,"actualvalue":"<#if plcCar05??>${plcCar05.actualvalue!}</#if>" <#-- 实际价值 -->
,"businessType":"${businessType!}" <#-- 业务类型-->
}]
}
{
"endorseNo": "123" ,
"policyNo": "123123",
"businessNo": "21321",
"policyCreatDate": "1675353600000",
"businessOffice": "123",
"businessOfficeName": "123123",
"productCode": "0521",
"businessNatureCode": "b",
"startTime": "1675353600000",
"endTime": "1675353600000",
"netPremium": "313.32",
"premium": "332.12",
"plcCar05": {
"licensePlateNo": "123123",
"frameNo": "12321",
"vehicleId": "cx",
"newVehicleFlag":"xcbs",
"vehiclecode": "123213",
"carBrandCode": "123213",
"newCarFlag": "0",
"carKindCode": "A0",
"carKindName": "客车",
"carUserNatureCode": "8A",
"carUserNature": "家庭自用",
"actualvalue": "实际价值"
},
"plcApplicant": [{
"customerName": "李志强"
}],
"plcPublicInsurant": [{
"customerName": "李强"
}],
"newPolicyFlag": "0",
"autoTransrenewFlag": "0",
"transferPolicyFlag": "1",
"transrenewFlag": "0",
"plcSolution": [{
"PlcRation": {
"artifSelfPricesRat": "0.8801" ,
"artifReviewPrem": "123"
},
"plcCoins": {
"coinsCalculationPercent": "123"
},
"plcCommissionDetail": [{
"agentFee": "28.2",
"agentNetFee": "28.2"
}]
}],
"saleaman": "87503064-0",
"saleamanName": "123213",
"businessChannelCode": "03",
"businessChannelName": "12321",
"recordClerkCode": "123213",
"recordClerkName": "12332",
"staCurAmount": "1000000",
"staCurTaxFee": "18.8" ,
"policySort":"111",
"businessType": "123123"
}
======================================保单SQL=============================================
INSERT INTO TABLE_NAME
SELECT
case when policyNo != '' then policyNo else businessNo end AS policyNo
,businessNo
,policyCreatDate
,businessOffice
,businessOfficeName
,productCode
,businessNatureCode
,startTime
,endTime
,netPremium
,premium
,plcCar05
,plcApplicant
,plcPublicInsurant
,newPolicyFlag
,autoTransrenewFlag
,transferPolicyFlag
,transrenewFlag
,plcSolution
,saleaman
,saleamanName
,businessChannelCode
,policySort
,businessType
FROM TABLE_NAME
;
\ No newline at end of file
{ "systemName": "流计算平台", "systemCode": "D030", "sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}", "msgCode": "carpolicy" "msgName": "新核心车险保单信息", "data":[{ "policyNo" :"${policyNo!}" <#-- "xx",//保单号 --> ,"businessNo" :"${businessNo!}" <#-- "xx",//业务号 --> ,"underWriteEndDate" :"${policyCreatDate!}" <#-- "xx",//核保通过时间 --> ,"comCode" :"${businessOffice!}" <#-- "xx",//保单归属机构代码 --> ,"comName" :"${businessOfficeName!}" <#-- "xx",//保单归属机构名称 --> ,"riskCode" :"${productCode!}" <#-- "xx",//险种代码 --> ,"businessNature" :"${businessNatureCode!}" <#-- "xx",//业务来源 --> ,"startDate" :"${startTime!}" <#-- "xx",//起保时间 --> ,"endDate" :"${endTime!}" <#-- "xx",//终保时间 --> ,"sumPremium" :"${netPremium!}" <#-- "xx",//不含税保费 --> ,"premium" :"${premium!}" <#-- "xx",//含税保费 --> ,"licenseNo" :"${plcCar05.licensePlateNo!}" <#-- "xx",//车牌号 --> ,"frameNo" :"${plcCar05.frameNo!}" <#-- "xx",//车架号 --> ,"modelCode" :"${plcCar05.vehicleId!}" <#-- "xx",//车型 --> ,"newVehicleFlag" :"${plcCar05.newVehicleFlag!}" <#-- "xx",//新车标识 --> ,"appliName" :"<#if plcApplicant??><#list plcApplicant as s1>${s1.customerName}<#if plcApplicant?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//投保人名称 --> ,"insuredName" :"<#if plcPublicInsurant??><#list plcPublicInsurant as s1>${s1.customerName}<#if plcPublicInsurant?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//被保人名称 --> ,"newPolicyFlag" :"${newPolicyFlag!}" <#-- "xx",//新保标识 --> ,"autoTransreNewFlag" :"${autoTransrenewFlag!}" <#-- "xx",//自动续保标识 --> ,"transferPolicyFlag" :"${transferPolicyFlag!}" <#-- "xx",//转保标识 --> ,"transreNewFlag" : "${transrenewFlag!}" <#-- "xx",//续保标识 --> ,"artifSelfPricesRat" :"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifSelfPricesRat}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//自主定价系数 --> ,"artifReviewPrem" :"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifReviewPrem}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//总保费 --> ,"agentFee" :"<#if plcSolution??><#list plcSolution as s1><#list s1.plcCommissionDetail as item>${item.agentFee}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#list></#if>" <#-- "xx",//手续费含税金额 --> ,"agentNetFee" :"<#if plcSolution??><#list plcSolution as s1><#list s1.plcCommissionDetail as item>${item.agentNetFee}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#list></#if>" <#-- "xx",//手续费不含税金额 --> ,"agentComCode" :"${saleaman!}" <#-- "xx",//代理机构代码 --> ,"agentComName" :"${saleamanName!}" <#-- "xx",//代理机构名称 --> ,"newChnlType" :"${businessChannelCode!}" <#-- "xx",//清分后渠道 --> ,"carKindCode" :"${plcCar05.carKindCode!}" <#-- "xx",//车辆种类 --> ,"useNatureCode" :"${plcCar05.carUserNatureCode!}" <#-- "xx",//车辆使用性质 --> ,"policySort" :"${policySort!}" <#-- "xx",//保单种类 --> ,"actualvalue" :"${plcCar05.actualvalue!}" <#-- "xx",//实际价值 --> ,"businessType" :"${businessType!}" <#-- "xx",//业务类型 --> }]}
{ "systemName": "流计算平台", "systemCode": "D030", "sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}", "msgCode": "carpolicy" "msgName": "新核心车险保单信息", "data":[{ "policyNo" :"${policyNo!}" <#-- "xx",//保单号 --> ,"businessNo" :"${businessNo!}" <#-- "xx",//业务号 --> ,"underWriteEndDate" :"${policyCreatDate!}" <#-- "xx",//核保通过时间 --> ,"comCode" :"${businessOffice!}" <#-- "xx",//保单归属机构代码 --> ,"comName" :"${businessOfficeName!}" <#-- "xx",//保单归属机构名称 --> ,"riskCode" :"${productCode!}" <#-- "xx",//险种代码 --> ,"businessNature" :"${businessNatureCode!}" <#-- "xx",//业务来源 --> ,"startDate" :"${startTime!}" <#-- "xx",//起保时间 --> ,"endDate" :"${endTime!}" <#-- "xx",//终保时间 --> ,"sumPremium" :"${netPremium!}" <#-- "xx",//不含税保费 --> ,"premium" :"${premium!}" <#-- "xx",//含税保费 --> ,"licenseNo" :"${plcCar05.licensePlateNo!}" <#-- "xx",//车牌号 --> ,"frameNo" :"${plcCar05.frameNo!}" <#-- "xx",//车架号 --> ,"modelCode" :"${plcCar05.vehicleId!}" <#-- "xx",//车型 --> ,"newVehicleFlag" :"${plcCar05.newVehicleFlag!}" <#-- "xx",//新车标识 --> ,"appliName" :"<#if plcApplicant??><#list plcApplicant as s1>${s1.customerName!}<#if plcApplicant?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//投保人名称 --> ,"insuredName" :"<#if plcPublicInsurant??><#list plcPublicInsurant as s1>${s1.customerName!}<#if plcPublicInsurant?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//被保人名称 --> ,"newPolicyFlag" :"${newPolicyFlag!}" <#-- "xx",//新保标识 --> ,"autoTransreNewFlag" :"${autoTransrenewFlag!}" <#-- "xx",//自动续保标识 --> ,"transferPolicyFlag" :"${transferPolicyFlag!}" <#-- "xx",//转保标识 --> ,"transreNewFlag" : "${transrenewFlag!}" <#-- "xx",//续保标识 --> ,"agentComCode" :"${saleaman!}" <#-- "xx",//代理机构代码 --> ,"agentComName" :"${saleamanName!}" <#-- "xx",//代理机构名称 --> ,"newChnlType" :"${businessChannelCode!}" <#-- "xx",//清分后渠道 --> ,"carKindCode" :"${plcCar05.carKindCode!}" <#-- "xx",//车辆种类 --> ,"useNatureCode" :"${plcCar05.carUserNatureCode!}" <#-- "xx",//车辆使用性质 --> ,"policySort" :"${policySort!}" <#-- "xx",//保单种类 --> ,"actualvalue" :"${plcCar05.actualvalue!}" <#-- "xx",//实际价值 --> ,"businessType" :"${businessType!}" <#-- "xx",//业务类型 --> }]}
{ "systemName": "流计算平台", "systemCode": "D030", "sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}", "msgCode": "carpolicy" "msgName": "新核心车险保单信息", "data":[{ "policyNo" :"${policyNo!}" <#-- "xx",//保单号 --> ,"businessNo" :"${businessNo!}" <#-- "xx",//业务号 --> ,"underWriteEndDate" :"${policyCreatDate!}" <#-- "xx",//核保通过时间 --> ,"comCode" :"${businessOffice!}" <#-- "xx",//保单归属机构代码 --> ,"comName" :"${businessOfficeName!}" <#-- "xx",//保单归属机构名称 --> ,"riskCode" :"${productCode!}" <#-- "xx",//险种代码 --> ,"businessNature" :"${businessNatureCode!}" <#-- "xx",//业务来源 --> ,"startDate" :"${startTime!}" <#-- "xx",//起保时间 --> ,"endDate" :"${endTime!}" <#-- "xx",//终保时间 --> ,"sumPremium" :"${netPremium!}" <#-- "xx",//不含税保费 --> ,"premium" :"${premium!}" <#-- "xx",//含税保费 --> ,"licenseNo" :"${plcCar05.licensePlateNo!}" <#-- "xx",//车牌号 --> ,"frameNo" :"${plcCar05.frameNo!}" <#-- "xx",//车架号 --> ,"modelCode" :"${plcCar05.vehicleId!}" <#-- "xx",//车型 --> ,"newVehicleFlag" :"${plcCar05.newVehicleFlag!}" <#-- "xx",//新车标识 --> ,"newPolicyFlag" :"${newPolicyFlag!}" <#-- "xx",//新保标识 --> ,"autoTransreNewFlag" :"${autoTransrenewFlag!}" <#-- "xx",//自动续保标识 --> ,"transferPolicyFlag" :"${transferPolicyFlag!}" <#-- "xx",//转保标识 --> ,"transreNewFlag" : "${transrenewFlag!}" <#-- "xx",//续保标识 --> ,"artifSelfPricesRat" :"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifSelfPricesRat!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//自主定价系数 --> ,"artifReviewPrem" :"<#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifReviewPrem!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//总保费 --> ,"agentFee" :"<#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if>" <#-- "xx",//手续费含税金额 --> ,"agentNetFee" :"<#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentNetFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if>" <#-- "xx",//手续费不含税金额 --> ,"agentComCode" :"${saleaman!}" <#-- "xx",//代理机构代码 --> ,"agentComName" :"${saleamanName!}" <#-- "xx",//代理机构名称 --> ,"newChnlType" :"${businessChannelCode!}" <#-- "xx",//清分后渠道 --> ,"carKindCode" :"${plcCar05.carKindCode!}" <#-- "xx",//车辆种类 --> ,"useNatureCode" :"${plcCar05.carUserNatureCode!}" <#-- "xx",//车辆使用性质 --> ,"policySort" :"${policySort!}" <#-- "xx",//保单种类 --> ,"actualvalue" :"${plcCar05.actualvalue!}" <#-- "xx",//实际价值 --> ,"businessType" :"${businessType!}" <#-- "xx",//业务类型 --> }]}
{ "systemName": "流计算平台", "systemCode": "D030", "sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}", "msgCode": "carpolicy" "msgName": "新核心车险保单信息", "data":[{ "policyNo" : ${policyNo!} <#-- "xx",//保单号 --> ,"businessNo" : ${businessNo!} <#-- "xx",//业务号 --> ,"underWriteEndDate" : ${policyCreatDate!} <#-- "xx",//核保通过时间 --> ,"comCode" : ${businessOffice!} <#-- "xx",//保单归属机构代码 --> ,"comName" : ${businessOfficeName!} <#-- "xx",//保单归属机构名称 --> ,"riskCode" : ${productCode!} <#-- "xx",//险种代码 --> ,"businessNature" : ${businessNatureCode!} <#-- "xx",//业务来源 --> ,"startDate" : ${startTime!} <#-- "xx",//起保时间 --> ,"endDate" : ${endTime!} <#-- "xx",//终保时间 --> ,"sumPremium" : ${netPremium!} <#-- "xx",//不含税保费 --> ,"premium" : ${premium!} <#-- "xx",//含税保费 --> ,"licenseNo" : ${plcCar05.licensePlateNo!} <#-- "xx",//车牌号 --> ,"frameNo" : ${plcCar05.frameNo!} <#-- "xx",//车架号 --> ,"modelCode" : ${plcCar05.vehicleId!} <#-- "xx",//车型 --> ,"newVehicleFlag" : ${plcCar05.newVehicleFlag!} <#-- "xx",//新车标识 --> ,"appliName" : <#if plcApplicant??><#list plcApplicant as s1>${s1!}</#list></#if> <#-- "xx",//投保人名称 --> ,"newPolicyFlag" : ${newPolicyFlag!} <#-- "xx",//新保标识 --> ,"autoTransreNewFlag" : ${autoTransrenewFlag!} <#-- "xx",//自动续保标识 --> ,"transferPolicyFlag" : ${transferPolicyFlag!} <#-- "xx",//转保标识 --> ,"transreNewFlag" : ${transrenewFlag!} <#-- "xx",//续保标识 --> ,"artifSelfPricesRat" : ${plcSolution[0]!} <#-- "xx",//自主定价系数 --> ,"agentComCode" : ${saleaman!} <#-- "xx",//代理机构代码 --> ,"agentComName" : ${saleamanName!} <#-- "xx",//代理机构名称 --> ,"newChnlType" : ${businessChannelCode!} <#-- "xx",//清分后渠道 --> ,"carKindCode" : ${plcCar05.carKindCode!} <#-- "xx",//车辆种类 --> ,"useNatureCode" : ${plcCar05.carUserNatureCode!} <#-- "xx",//车辆使用性质 --> ,"policySort" : ${policySort!} <#-- "xx",//保单种类 --> ,"actualvalue" : ${plcCar05.actualvalue!} <#-- "xx",//实际价值 --> ,"businessType" : ${businessType!} <#-- "xx",//业务类型 --> }]}
{
"systemName": "流计算平台",
"systemCode": "D030",
"sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}",
"msgCode": "carpolicy"
"msgName": "新核心车险保单信息",
"data":[{
"policyNo" : ${policyNo!""} <#-- "xx",//保单号 -->
,"businessNo" : ${businessNo!""} <#-- "xx",//业务号 -->
,"underWriteEndDate" : ${policyCreatDate!""} <#-- "xx",//核保通过时间 -->
,"comCode" : ${businessOffice!""} <#-- "xx",//保单归属机构代码 -->
,"comName" : ${businessOfficeName!""} <#-- "xx",//保单归属机构名称 -->
,"riskCode" : ${productCode!""} <#-- "xx",//险种代码 -->
,"businessNature" : ${businessNatureCode!""} <#-- "xx",//业务来源 -->
,"startDate" : ${startTime!""} <#-- "xx",//起保时间 -->
,"endDate" : ${endTime!""} <#-- "xx",//终保时间 -->
,"sumPremium" : ${netPremium!""} <#-- "xx",//不含税保费 -->
,"premium" : ${premium!""} <#-- "xx",//含税保费 -->
,"licenseNo" : ${plcCar05.licensePlateNo!""} <#-- "xx",//车牌号 -->
,"frameNo" : ${plcCar05.frameNo!""} <#-- "xx",//车架号 -->
,"modelCode" : ${plcCar05.vehicleId!""} <#-- "xx",//车型 -->
,"newVehicleFlag" : ${plcCar05.newVehicleFlag!""} <#-- "xx",//新车标识 -->
,"plcApplicant_size" : <#if plcApplicant??>${(plcApplicant?size)?c}</#if> <#-- "xx",//投保人名称 -->
,"plcApplicant_contxt" : <#if plcApplicant??>${(plcApplicant!}</#if> <#-- "xx",//投保人名称 -->
,"newPolicyFlag" : ${newPolicyFlag!""} <#-- "xx",//新保标识 -->
,"autoTransreNewFlag" : ${autoTransrenewFlag!""} <#-- "xx",//自动续保标识 -->
,"transferPolicyFlag" : ${transferPolicyFlag!""} <#-- "xx",//转保标识 -->
,"transreNewFlag" : ${transrenewFlag!""} <#-- "xx",//续保标识 -->
,"artifSelfPricesRat" : ${plcSolution!""} <#-- "xx",//自主定价系数 -->
,"agentComCode" : ${saleaman!""} <#-- "xx",//代理机构代码 -->
,"agentComName" : ${saleamanName!""} <#-- "xx",//代理机构名称 -->
,"newChnlType" : ${businessChannelCode!""} <#-- "xx",//清分后渠道 -->
,"carKindCode" : ${plcCar05.carKindCode!""} <#-- "xx",//车辆种类 -->
,"useNatureCode" : ${plcCar05.carUserNatureCode!""} <#-- "xx",//车辆使用性质 -->
,"policySort" : ${policySort!""} <#-- "xx",//保单种类 -->
,"actualvalue" : ${plcCar05.actualvalue!""} <#-- "xx",//实际价值 -->
,"businessType" : ${businessType!""} <#-- "xx",//业务类型 -->
}]
}
{
"systemName": "流计算平台",
"systemCode": "D030",
"sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}",
"msgCode": "carpolicy"
"msgName": "新核心车险保单信息",
"data":[{
"policyNo" : ${policyNo!""} <#-- "xx",//保单号 -->
,"businessNo" : ${businessNo!""} <#-- "xx",//业务号 -->
,"underWriteEndDate" : ${policyCreatDate!""} <#-- "xx",//核保通过时间 -->
,"comCode" : ${businessOffice!""} <#-- "xx",//保单归属机构代码 -->
,"comName" : ${businessOfficeName!""} <#-- "xx",//保单归属机构名称 -->
,"riskCode" : ${productCode!""} <#-- "xx",//险种代码 -->
,"businessNature" : ${businessNatureCode!""} <#-- "xx",//业务来源 -->
,"startDate" : ${startTime!""} <#-- "xx",//起保时间 -->
,"endDate" : ${endTime!""} <#-- "xx",//终保时间 -->
,"sumPremium" : ${netPremium!""} <#-- "xx",//不含税保费 -->
,"premium" : ${premium!""} <#-- "xx",//含税保费 -->
,"licenseNo" : ${plcCar05.licensePlateNo!""} <#-- "xx",//车牌号 -->
,"frameNo" : ${plcCar05.frameNo!""} <#-- "xx",//车架号 -->
,"modelCode" : ${plcCar05.vehicleId!""} <#-- "xx",//车型 -->
,"newVehicleFlag" : ${plcCar05.newVehicleFlag!""} <#-- "xx",//新车标识 -->
,"appliName" : <#if plcApplicant??><#list plcApplicant as s1>${s1.customerName!}<#if plcApplicant?size-1 gt s1?index >|</#if></#list></#if> <#-- "xx",//投保人名称 -->
,"insuredName" : <#if plcPublicInsurant??><#list plcPublicInsurant as s1>${s1.customerName!}<#if plcPublicInsurant?size-1 gt s1?index >|</#if></#list></#if> <#-- "xx",//被保人名称 -->
,"newPolicyFlag" : ${newPolicyFlag!""} <#-- "xx",//新保标识 -->
,"autoTransreNewFlag" : ${autoTransrenewFlag!""} <#-- "xx",//自动续保标识 -->
,"transferPolicyFlag" : ${transferPolicyFlag!""} <#-- "xx",//转保标识 -->
,"transreNewFlag" : ${transrenewFlag!""} <#-- "xx",//续保标识 -->
,"artifSelfPricesRat" : <#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifSelfPricesRat!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if> <#-- "xx",//自主定价系数 -->
,"artifReviewPrem" : <#if plcSolution??><#list plcSolution as s1>${s1.PlcRation.artifReviewPrem!}<#if plcSolution?size-1 gt s1?index >|</#if></#list></#if> <#-- "xx",//总保费 -->
,"agentFee" : <#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if> <#-- "xx",//手续费含税金额 -->
,"agentNetFee" : <#if plcSolution??><#list plcSolution as s1><#if s1.plcCommissionDetail??><#list s1.plcCommissionDetail as item>${item.agentNetFee!}<#if s1.plcCommissionDetail?size-1 gt item?index >|</#if></#list></#if></#list></#if> <#-- "xx",//手续费不含税金额 -->
,"agentComCode" : ${saleaman!""} <#-- "xx",//代理机构代码 -->
,"agentComName" : ${saleamanName!""} <#-- "xx",//代理机构名称 -->
,"newChnlType" : ${businessChannelCode!""} <#-- "xx",//清分后渠道 -->
,"carKindCode" : ${plcCar05.carKindCode!""} <#-- "xx",//车辆种类 -->
,"useNatureCode" : ${plcCar05.carUserNatureCode!""} <#-- "xx",//车辆使用性质 -->
,"policySort" : ${policySort!""} <#-- "xx",//保单种类 -->
,"actualvalue" : ${plcCar05.actualvalue!""} <#-- "xx",//实际价值 -->
,"businessType" : ${businessType!""} <#-- "xx",//业务类型 -->
}]
}
{
"endorseNo": "123" ,
"policyNo": "123123",
"businessNo": "21321",
"policyCreatDate": "1675353600000",
"businessOffice": "123",
"businessOfficeName": "123123",
"productCode": "0521",
"businessNatureCode": "b",
"startTime": "1675353600000",
"endTime": "1675353600000",
"netPremium": "313.32",
"premium": "332.12",
"plcCar05": {
"licensePlateNo": "123123",
"frameNo": "12321",
"vehicleId": "cx",
"newVehicleFlag":"xcbs",
"vehiclecode": "123213",
"carBrandCode": "123213",
"newCarFlag": "0",
"carKindCode": "A0",
"carKindName": "客车",
"carUserNatureCode": "8A",
"carUserNature": "家庭自用",
"actualvalue": "实际价值"
},
"plcApplicant": [{
"customerName": "李志强"
}],
"plcPublicInsurant": [{
"customerName": "李强"
}],
"newPolicyFlag": "0",
"autoTransrenewFlag": "0",
"transferPolicyFlag": "1",
"transrenewFlag": "0",
"plcSolution": [{
"PlcRation": {
"artifSelfPricesRat": "0.8801" ,
"artifReviewPrem": "123"
},
"plcCoins": {
"coinsCalculationPercent": "123"
},
"plcCommissionDetail": [{
"agentFee": "28.2",
"agentNetFee": "28.2"
},
{
"agentFee": "28.2",
"agentNetFee": "28.2"
},
{
"agentFee": "28.2",
"agentNetFee": "28.2"
}]
}],
"saleaman": "87503064-0",
"saleamanName": "123213",
"businessChannelCode": "03",
"businessChannelName": "12321",
"recordClerkCode": "123213",
"recordClerkName": "12332",
"staCurAmount": "1000000",
"staCurTaxFee": "18.8" ,
"policySort":"111",
"businessType": "123123"
}
======================================保单SQL=============================================
INSERT INTO TABLE_NAME
SELECT
case when policyNo != '' then policyNo else businessNo end AS policyNo
,businessNo
,policyCreatDate
,businessOffice
,businessOfficeName
,productCode
,businessNatureCode
,startTime
,endTime
,netPremium
,premium
,plcCar05
,plcApplicant
,plcPublicInsurant
,newPolicyFlag
,autoTransrenewFlag
,transferPolicyFlag
,transrenewFlag
,plcSolution
,saleaman
,saleamanName
,businessChannelCode
,policySort
,businessType
FROM TABLE_NAME
;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment