|
|
@@ -89,9 +89,12 @@ public class ActiveManagerImpl extends AbstractCommManager implements ActiveMana |
|
|
|
BeanTools.copyProperties(orderInfo, record,"id"); |
|
|
|
} |
|
|
|
BeanTools.copyProperties(requestDTO, record); |
|
|
|
record.setVehiclePlate(requestDTO.getVehiclePlate()); |
|
|
|
record.setVehiclePlateColor(requestDTO.getVehiclePlateColor()); |
|
|
|
record.setOpenId(findOpenIdByToken(requestDTO.getAccessToken())); |
|
|
|
record.setActiveTime(LocalDateTime.now()); |
|
|
|
record.setResetStatus(0); |
|
|
|
record.setCardType(requestDTO.getCardType()); |
|
|
|
record.setSourceType(requestDTO.getOrderSource()); |
|
|
|
ActiveRecord save = recordRepo.save(record); |
|
|
|
// 返回 |
|
|
@@ -231,6 +234,9 @@ public class ActiveManagerImpl extends AbstractCommManager implements ActiveMana |
|
|
|
SaveRecordRequestDTO saveRecordRequestDTO = new SaveRecordRequestDTO(); |
|
|
|
saveRecordRequestDTO.setOrderNo(save.getOrderNo()); |
|
|
|
BeanTools.copyProperties(requestDTO, saveRecordRequestDTO); |
|
|
|
saveRecordRequestDTO.setCardType(cardInfo.getCardTypeNew()); |
|
|
|
saveRecordRequestDTO.setVehiclePlate(requestDTO.getVehiclePlate()); |
|
|
|
saveRecordRequestDTO.setVehiclePlateColor(requestDTO.getVehiclePlateColor()); |
|
|
|
saveRecord(saveRecordRequestDTO); |
|
|
|
return new ActivateDetailsResponseDTO(); |
|
|
|
} |