|
@@ -4,8 +4,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
|
|
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
-import com.ydtech.modules.ins.model.yc.YcBuildData;
|
|
|
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
|
|
|
+import com.ydtech.modules.ins.model.yc.YcBuildData;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
|
@@ -78,10 +78,10 @@ public class CvrgListSY {
|
|
|
/**
|
|
/**
|
|
|
* 商业
|
|
* 商业
|
|
|
*/
|
|
*/
|
|
|
- kindList.stream().forEach(a -> {
|
|
|
|
|
|
|
+ kindList.forEach(a -> {
|
|
|
CvrgListSY.CvrgSY bean = new CvrgListSY.CvrgSY();
|
|
CvrgListSY.CvrgSY bean = new CvrgListSY.CvrgSY();
|
|
|
String txt4 = (StringUtils.toDouble(a.getDeductibleRate(), 0) / 100) + "";
|
|
String txt4 = (StringUtils.toDouble(a.getDeductibleRate(), 0) / 100) + "";
|
|
|
- if("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
|
|
|
|
+ if ("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
//新能源产品险别拼装(商业)
|
|
//新能源产品险别拼装(商业)
|
|
|
//第三者责任险
|
|
//第三者责任险
|
|
|
if (a.getKindCode().equals(InsurKind.B.getCode())) {
|
|
if (a.getKindCode().equals(InsurKind.B.getCode())) {
|
|
@@ -105,7 +105,7 @@ public class CvrgListSY {
|
|
|
bean.setCCvrgNo("030228");
|
|
bean.setCCvrgNo("030228");
|
|
|
bean.setNLiabDaysLmt("1");
|
|
bean.setNLiabDaysLmt("1");
|
|
|
}
|
|
}
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
//机动车产品险别拼装(商业)
|
|
//机动车产品险别拼装(商业)
|
|
|
//第三者责任险
|
|
//第三者责任险
|
|
|
if (a.getKindCode().equals(InsurKind.B.getCode())) {
|
|
if (a.getKindCode().equals(InsurKind.B.getCode())) {
|
|
@@ -184,46 +184,46 @@ public class CvrgListSY {
|
|
|
// bean.setCResvTxt4(a.getDeductibleRate());
|
|
// bean.setCResvTxt4(a.getDeductibleRate());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
|
|
|
|
+ if ("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
//
|
|
//
|
|
|
- if(InsurKind.TY1.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY1.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030235");
|
|
bean.setCCvrgNo("030235");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY2.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY2.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030236");
|
|
bean.setCCvrgNo("030236");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY3.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY3.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030237");
|
|
bean.setCCvrgNo("030237");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY4.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY4.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030238");
|
|
bean.setCCvrgNo("030238");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
//
|
|
//
|
|
|
- if(InsurKind.TY1.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY1.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030209");
|
|
bean.setCCvrgNo("030209");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY2.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY2.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030210");
|
|
bean.setCCvrgNo("030210");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY3.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY3.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030211");
|
|
bean.setCCvrgNo("030211");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(InsurKind.TY4.getCode().equals(a.getKindCode())){
|
|
|
|
|
|
|
+ if (InsurKind.TY4.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030212");
|
|
bean.setCCvrgNo("030212");
|
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
bean.setNLiabDaysLmt(String.valueOf(a.getServiceTimes()));
|
|
|
}
|
|
}
|