|
|
@@ -472,8 +472,6 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager { |
|
|
|
obuInfo.setVehicleId(vehicleInfo.getVehicleId()); |
|
|
|
obuInfo.setRegisteredType(orderInfo.getPromotionModes()); |
|
|
|
obuInfo.setRegisteredChannelId(orderInfo.getChannelId()); |
|
|
|
IssueProduct product = productRepo.findByReleaseId(orderInfo.getProductId()); |
|
|
|
obuInfo.setWarrantyDate(vo.getObuEnableTime().plusYears(product.getWarrantyPeriod()));//质保期 |
|
|
|
obuInfo.setAgencyId(orderInfo.getAccountId()); |
|
|
|
obuInfo.setChannelId(orderInfo.getChannelId()); |
|
|
|
obuInfo.setDeviceType(orderInfo.getDeviceType()); |
|
|
@@ -493,6 +491,8 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager { |
|
|
|
obuInfo.setObuEnableTime(vo.getObuEnableTime()); |
|
|
|
obuInfo.setObuExpireTime(vo.getObuExpireTime()); |
|
|
|
} |
|
|
|
IssueProduct product = productRepo.findByReleaseId(orderInfo.getProductId()); |
|
|
|
obuInfo.setWarrantyDate(vo.getObuEnableTime().plusYears(product.getWarrantyPeriod()));//质保期 |
|
|
|
obuInfoRepo.persist(obuInfo); |
|
|
|
//通知渠道 |
|
|
|
if (orderInfo.getOrderSource() == SourceType.CHANNEL) { |