mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-04 05:58:00 +08:00
bugfix vin/刷卡启动没有保险金额字段导致报错
This commit is contained in:
@@ -4806,9 +4806,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
.settleAmount(BigDecimal.ZERO)
|
.settleAmount(BigDecimal.ZERO)
|
||||||
.startType(dto.getStartType())
|
.startType(dto.getStartType())
|
||||||
.build();
|
.build();
|
||||||
|
if (dto.getInsuranceAmount() != null) {
|
||||||
if (dto.getInsuranceAmount().compareTo(BigDecimal.ZERO) > 0) {
|
if (dto.getInsuranceAmount().compareTo(BigDecimal.ZERO) > 0) {
|
||||||
orderBasicInfo.setInsuranceAmount(dto.getInsuranceAmount());
|
orderBasicInfo.setInsuranceAmount(dto.getInsuranceAmount());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (StringUtils.equals(OrderTypeEnum.MERGE_CHARGE_ORDER.getValue(), dto.getOrderType())) {
|
if (StringUtils.equals(OrderTypeEnum.MERGE_CHARGE_ORDER.getValue(), dto.getOrderType())) {
|
||||||
// 并充订单
|
// 并充订单
|
||||||
orderBasicInfo.setOrderType(dto.getOrderType());
|
orderBasicInfo.setOrderType(dto.getOrderType());
|
||||||
|
|||||||
Reference in New Issue
Block a user