Pārlūkot izejas kodu

修复BUG

master
梁超 pirms 1 mēnesi
vecāks
revīzija
4694100c41

+ 2
- 2
zhywpt-service-inss/src/main/java/cn/com/taiji/inss/manager/inst/InstOnlineActiveMananger.java Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt