|
@@ -259,7 +259,13 @@ public class NonAutoInsOrderRequest {
|
|
|
|
|
|
|
|
public OrderMainDTO(List<RiskInfoVo> riskList, GuoRenAccidentalDrivingVo accidentalDrivingVo, String operatorCode, String carPriceUuid) {
|
|
public OrderMainDTO(List<RiskInfoVo> riskList, GuoRenAccidentalDrivingVo accidentalDrivingVo, String operatorCode, String carPriceUuid) {
|
|
|
this.amount = accidentalDrivingVo.getAmount();
|
|
this.amount = accidentalDrivingVo.getAmount();
|
|
|
- this.premium = new BigDecimal(accidentalDrivingVo.getPremium()).multiply(new BigDecimal(accidentalDrivingVo.getQuantity())).toString();
|
|
|
|
|
|
|
+ String premium = accidentalDrivingVo.getPremium();
|
|
|
|
|
+ Integer quantity = accidentalDrivingVo.getQuantity();
|
|
|
|
|
+ if (premium == null || quantity == null) {
|
|
|
|
|
+ this.premium = "0";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.premium = new BigDecimal(premium).multiply(new BigDecimal(quantity)).toString();
|
|
|
|
|
+ }
|
|
|
this.goodsCode = accidentalDrivingVo.getGoodsCode();
|
|
this.goodsCode = accidentalDrivingVo.getGoodsCode();
|
|
|
this.prodCode = accidentalDrivingVo.getProdCode();
|
|
this.prodCode = accidentalDrivingVo.getProdCode();
|
|
|
this.uwCount = accidentalDrivingVo.getQuantity();
|
|
this.uwCount = accidentalDrivingVo.getQuantity();
|