|
|
@@ -31,7 +31,6 @@ import cn.com.taiji.core.repo.jpa.basic.QtkVehicleInfoRepo; |
|
|
|
import cn.com.taiji.iaw.dto.ass.*; |
|
|
|
import cn.com.taiji.iaw.manager.AbstractIawManager; |
|
|
|
import cn.com.taiji.iaw.model.RenewalQueryModel; |
|
|
|
import cn.com.taiji.iaw.tools.WxLoginUserUtil; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@@ -219,13 +218,11 @@ public class DeviceRenewalManagerImpl extends AbstractIawManager implements Devi |
|
|
|
if (AssOrderType.CARD_RENEWAL.equals(orderinfo.getOrderType())) { |
|
|
|
QtkCardInfo cardInfo = cardInfoRepo.findByCardId(orderinfo.getCardId()); |
|
|
|
deviceRenewal.setRenewalType(2); |
|
|
|
deviceRenewal.setCardId(orderinfo.getCardId()); |
|
|
|
deviceRenewal.setCardExpireTime(now.plusYears(10)); |
|
|
|
deviceRenewal.setOldCardExpireTime(cardInfo.getCardExpireTime()); |
|
|
|
} else if (AssOrderType.OBU_RENEWAL.equals(orderinfo.getOrderType())) { |
|
|
|
QtkObuInfo obuInfo = obuInfoRepo.findByObuId(orderinfo.getObuId()); |
|
|
|
deviceRenewal.setRenewalType(3); |
|
|
|
deviceRenewal.setObuId(orderinfo.getObuId()); |
|
|
|
deviceRenewal.setObuExpireTime(now.plusYears(10)); |
|
|
|
deviceRenewal.setOldObuExpireTime(obuInfo.getObuExpireTime()); |
|
|
|
} else { |