|
|
@@ -69,7 +69,15 @@ public class CvrgListSY {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static CvrgListSY buildCvrgListSY(List<KindInfoVo> kindList, Vhl vhl) {
|
|
|
+ /**
|
|
|
+ * 组装商业险列表
|
|
|
+ *
|
|
|
+ * @param kindList 商业险险种
|
|
|
+ * @param vhl 永诚车型
|
|
|
+ * @param newEnergy 是否是新能源
|
|
|
+ * @return 永诚险种列表
|
|
|
+ */
|
|
|
+ public static CvrgListSY buildCvrgListSY(List<KindInfoVo> kindList, Vhl vhl, boolean newEnergy) {
|
|
|
//乘客
|
|
|
String passenger = StringUtils.toString(StringUtils.toInt(vhl.getNSeatNum()) - 1);
|
|
|
|
|
|
@@ -81,7 +89,7 @@ public class CvrgListSY {
|
|
|
kindList.forEach(a -> {
|
|
|
CvrgListSY.CvrgSY bean = new CvrgListSY.CvrgSY();
|
|
|
String txt4 = (StringUtils.toDouble(a.getDeductibleRate(), 0) / 100) + "";
|
|
|
- if ("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
+ if (newEnergy) {
|
|
|
//新能源产品险别拼装(商业)
|
|
|
//第三者责任险
|
|
|
if (a.getKindCode().equals(InsurKind.B.getCode())) {
|
|
|
@@ -184,7 +192,7 @@ public class CvrgListSY {
|
|
|
// bean.setCResvTxt4(a.getDeductibleRate());
|
|
|
}
|
|
|
|
|
|
- if ("32773002,32773003,32773004,".contains(vhl.getFuelType())) {
|
|
|
+ if (newEnergy) {
|
|
|
//新能源产品险别拼装(商业)
|
|
|
if (InsurKind.TY1.getCode().equals(a.getKindCode())) {
|
|
|
bean.setCCvrgNo("030235");
|