@Query("from IssueOrderinfo where customerId = ?1 and orderStatus = 'NORMAL' and orderStep = 'WAITING_ACTIVE'") | @Query("from IssueOrderinfo where customerId = ?1 and orderStatus = 'NORMAL' and orderStep = 'WAITING_ACTIVE'") | ||||
List<IssueOrderinfo> listByCustomerId(String customerId); | List<IssueOrderinfo> listByCustomerId(String customerId); | ||||
@Query("from IssueOrderinfo where vehicleId = ?1 and orderStatus = 'NORMAL' and orderStep = 'WAITING_ACTIVE'") | |||||
IssueOrderinfo findWaitingActiveByVehicleId(String vehicleId); | |||||
IssueOrderinfo findByQdOrderNo(String qdOrderNo); | IssueOrderinfo findByQdOrderNo(String qdOrderNo); | ||||
/** | /** |
if(info == null){ | if(info == null){ | ||||
throw new ManagerException("未查到车辆信息!"); | throw new ManagerException("未查到车辆信息!"); | ||||
} | } | ||||
IssueOrderinfo orderinfo = issueOrderinfoRepo.findNormalByVehicleId(requestDTO.getVehicleId()); | |||||
IssueOrderinfo orderinfo = issueOrderinfoRepo.findWaitingActiveByVehicleId(requestDTO.getVehicleId()); | |||||
if (orderinfo != null){ // 首次激活 | if (orderinfo != null){ // 首次激活 | ||||
DeviceReactivateModel model = new DeviceReactivateModel(); | DeviceReactivateModel model = new DeviceReactivateModel(); | ||||
BeanTools.copyProperties(orderinfo, model); | BeanTools.copyProperties(orderinfo, model); |