Commit 0ebeea49 authored by 王东's avatar 王东

ws tj

parent d1e787f7
{
"systemName": "流计算平台",
"systemCode": "D030",
"sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}",
"msgCode": "carpolicy"
"msgName": "新核心车险保单信息",
"data":[{
"policyNo" :"${policyNo!}" <#-- "xx",//保单号 -->
,"businessNo" :"${businessNo!}" <#-- "xx",//业务号 -->
,"underWriteEndDate" :"${policyCreatDate!?c}" <#-- "xx",//核保通过时间 -->
,"comCode" :"${businessOffice!}" <#-- "xx",//保单归属机构代码 -->
,"comName" :"${businessOfficeName!}" <#-- "xx",//保单归属机构名称 -->
,"riskCode" :"${productCode!}" <#-- "xx",//险种代码 -->
,"businessNature" :"${businessNatureCode!}" <#-- "xx",//业务来源 -->
,"startDate" :"${startTime!?c}" <#-- "xx",//起保时间 -->
,"endDate" :"${endTime!?c}" <#-- "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",//业务类型 -->
}]
}
{
"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": "流计算平台",
"data": [{
"comCode" :"${businessOffice!}" <#-- "xx",//归属机构 -->
, "comName" :"${businessOfficeName!}" <#-- "xx",//归属机构名称 -->
, "riskCode" :"${productCode!}" <#-- "xx",//险种代码 -->
, "endorseNo" :"${endorseNo!}" <#-- "xx",//批单号 -->
, "policyNo" :"${policyNo!}" <#-- "xx",//保单号 -->
, "sumPremium" :"${netPremium!}" <#-- "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",//清分后渠道 -->
, "startDate" :"${startTime!?c}" <#-- "xx",//起保时间 -->
, "endDate" :"${endTime!?c}" <#-- "xx",//终保时间 -->
, "underWriteEndDate" :"${policyCreatDate!}" <#-- "xx",//核保通过时间 -->
, "useNatureCode" :"${plcCar05.carUserNatureCode!}" <#-- "xx",//车辆使用性质 -->
, "carKindCode" :"${plcCar05.carKindCode!}" <#-- "xx",//车辆种类 -->
, "chgPremium" :"${plpEndorse.netPremiumVariation!?number * plpEndorse.sigAndStaExchangeRate!?number}" <#-- "xx",//保费变化量 -->
, "policySort" :"${policySort!}" <#-- "xx",//保单种类 -->
}],
"systemCode": "D030",
"msgName": "新核心车险批单信息",
"msgCode": "carEndorse",
"sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}"
}
{
"businessOffice" : "1"
,"businessOfficeName" : "1"
,"productCode" : "1"
,"endorseNo" : "1"
,"policyNo" : "1"
,"netPremium" : "1"
,"plcCar05":{
"licensePlateNo" : "1"
,"frameNo" : "1"
,"vehicleId" : "1"
,"newVehicleFlag" : "1"
,"carUserNatureCode" : "1"
,"carKindCode" : "1"
},
"plcApplicant":[{
"customerName" : "1"
}],
"plcPublicInsurant":[{
"customerName" : "1"
}],
"newPolicyFlag" : "1"
,"autoTransrenewFlag" : "1"
,"transferPolicyFlag" : "1"
,"transrenewFlag" : "1"
,"plcSolution":[{
"PlcRation":{
"artifSelfPricesRat" : "1"
,"artifReviewPrem" : "1"
},
"plcCommissionDetail":[{
"agentFee" : "1"
,"agentNetFee" : "1"
}]
}],
"saleaman" : "1"
,"saleamanName" : "1"
,"businessChannelCode" : "1"
,"startTime" : 1675353600000
,"endTime" : 1675353600000
,"policyCreatDate" : "1"
,"plpEndorse":{
"netPremiumVariation" : "1"
,"sigAndStaExchangeRate" : "1"
},
"policySort" : "1"
}
======================================批单SQL=============================================
insert into TABLE_NAME
SELECT
businessOffice
,businessOfficeName
,productCode
,endorseNo
,policyNo
,netPremium
,plcCar05
,plcApplicant
,plcPublicInsurant
,newPolicyFlag
,autoTransrenewFlag
,transferPolicyFlag
,transrenewFlag
,plcSolution
,saleaman
,saleamanName
,businessChannelCode
,startTime
,endTime
,policyCreatDate
,plpEndorse
,policySort
FROM TABLE_NAME
;
\ No newline at end of file
{
"systemName": "流计算平台",
"data": {
accidentNo :"${actualData.accidentNo!}" <#-- "xx",//事故号 -->
,damageStartDate :"${actualData.damageStartDate!?c}" <#-- "xx",//出险时间 -->
,reportDate :"${actualData.reportD!?c}" <#-- "xx",//报案时间 -->
,damageAddress :"${actualData.damageAddress!}" <#-- "xx",//出险地点 -->
,policyNo :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.policyNo}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//保单号 -->
,registNo :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.registNo}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//报案号 -->
,claimComCode :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.deptCode}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//理赔机构代码 -->
,deptName :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.deptName}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//理赔机构名称 -->
,reportorName :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.prplreporter.reporterName}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//报案人名称 -->
,reportorPhone :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.prplreporter.reporterMobileNo}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//报案人电话 -->
,linkerName :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.prpllinker.linkerName}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//联系人名称 -->
,phoneNumber :"<#if actualData.prplcregist??><#list actualData.prplcregist as s1>${s1.prpllinker.linkerPhon}<#if actualData.prplcregist?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//联系人电话 -->
,comCode :"<#if actualData.prplpolicy??><#list actualData.prplpolicy as s1>${s1.comCode}<#if actualData.prplpolicy?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//承保机构代码 -->
,comName :"<#if actualData.prplpolicy??><#list actualData.prplpolicy as s1>${s1.comName}<#if actualData.prplpolicy?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//承保机构名称 -->
,riskCode :"<#if actualData.prplpolicy??><#list actualData.prplpolicy as s1>${s1.riskCode}<#if actualData.prplpolicy?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//险种代码 -->
,riskName :"<#if actualData.prplpolicy??><#list actualData.prplpolicy as s1>${s1.riskName}<#if actualData.prplpolicy?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//险种名称 -->
,licenseNo :"<#if actualData.prplpolicy??><#list actualData.prplpolicy as s1>${s1.licenseNo}<#if actualData.prplpolicy?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//车牌号 -->
,brandCode :"<#if actualData.prplcarlossdetail??><#list actualData.prplcarlossdetail as s1>${s1.prplcar.brandCode}<#if actualData.prplcarlossdetail?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//品牌 -->
,modelCode :"<#if actualData.prplcarlossdetail??><#list actualData.prplcarlossdetail as s1>${s1.prplcar.carModelCode}<#if actualData.prplcarlossdetail?size-1 gt s1?index >|</#if></#list></#if>" <#-- "xx",//车型 -->
,longitude :"${actualData.prplcdamage.prpldamageaddress.longitude!}" <#-- "xx",//经度 -->
,latitude :"${actualData.prplcdamage.prpldamageaddress.latitude!}" <#-- "xx",//纬度 -->
,damageTypeDesc :"${actualData.prplcdamage.damageName!}" <#-- "xx",//出险原因 -->
,damageCourse :"${actualData.prplcdamage.damageCourse!}" <#-- "xx",//出险经过 -->
},
"systemCode": "D030",
"msgName": "车险报案环节信息",
"msgCode": "CarClaimCase-RegistCar",
"sendTime": "${.now?string("yyyy-MM-dd HH:mm:ss")}"
}
{
"actualData": {
"accidentNo":"123",
"damageStartDate":1642141803000,
"reportD":1642141803000,
"damageAddress":"12321312",
"prplcregist": [
{
"policyNo":"12321312",
"registNo":"12321312",
"deptCode":"12321312",
"deptName":"12321312",
"prplreporter": {
"reporterName":"12321312",
"reporterMobileNo":"12321312"
},
"prpllinker": {
"linkerName":"12321312",
"linkerPhon":"12321312"
}
}
],
"prplpolicy": [
{
"comCode":"12321312",
"comName":"12321312",
"riskCode":"12321312",
"riskName":"12321312",
"licenseNo":"12321312"
}
],
"prplcarlossdetail": [
{
"prplcar": {
"brandCode":"12321312",
"carModelCode":"12321312"
}
}
],
"prplcdamage": {
"prpldamageaddress": {
"longitude":"12321312",
"latitude":"12321312"
},
"damageName":"12321312",
"damageCourse":"12321312"
}
}
}
======================================SQL=============================================
INSERT INTO TABLE_NAME
SELECT
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