Browse Source

调整

master
zouhantao 3 weeks ago
parent
commit
1b7ece467c

+ 3
- 0
gly-base-core/src/main/java/cn/com/taiji/core/repo/jpa/issue/IssueOrderinfoRepo.java View File

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


/** /**

+ 1
- 1
zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/manager/ass/ActiveManagerImpl.java View File

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);

Loading…
Cancel
Save