|
@@ -492,8 +492,9 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
|
|
|
kind.setKindName(cCvrgNoByCode.getDesc());
|
|
kind.setKindName(cCvrgNoByCode.getDesc());
|
|
|
// amt里 包含座位的价格是总和 需要根据座位数 算出保费单价
|
|
// amt里 包含座位的价格是总和 需要根据座位数 算出保费单价
|
|
|
if (cCvrgNoByCode.getInsurCode().equals("D4") || cCvrgNoByCode.getInsurCode().equals("SY_FJ_YBW2")) {
|
|
if (cCvrgNoByCode.getInsurCode().equals("D4") || cCvrgNoByCode.getInsurCode().equals("SY_FJ_YBW2")) {
|
|
|
- Integer seatCount = Integer.parseInt(yaQuoteInfoVo.getCarInfo().getSeatCount());
|
|
|
|
|
- kind.setAmount((double) dto.getAmt() / (seatCount - 1));
|
|
|
|
|
|
|
+ int seatCount = Integer.parseInt(yaQuoteInfoVo.getCarInfo().getSeatCount());
|
|
|
|
|
+ kind.setAmount(dto.getAmt());
|
|
|
|
|
+ kind.setUnitAmount((double) dto.getAmt() / (seatCount - 1));
|
|
|
} else {
|
|
} else {
|
|
|
kind.setAmount(dto.getAmt());
|
|
kind.setAmount(dto.getAmt());
|
|
|
}
|
|
}
|