浏览代码

修复BUG

master
梁超 3 周前
父节点
当前提交
4694100c41

+ 2
- 2
zhywpt-service-inss/src/main/java/cn/com/taiji/inss/manager/inst/InstOnlineActiveMananger.java 查看文件

@@ -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) {

正在加载...
取消
保存