|  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public boolean buildMinorTask(Agv agv, TaskTypeType taskType, String destination, Jam jam) { | 
 |  |  |     public boolean buildMinorTask(Long agvId, TaskTypeType taskType, String destination, Jam jam) { | 
 |  |  |         boolean lockAcquired = false; | 
 |  |  |         try { | 
 |  |  |             if (!(lockAcquired = this.lock.tryLock(LOCK_TIMEOUT, TimeUnit.SECONDS))) { | 
 |  |  | 
 |  |  |             } | 
 |  |  | //            log.info("buildMinorTask AGV[{}] lock time: {}", agv.getUuid(), System.currentTimeMillis()); | 
 |  |  |  | 
 |  |  |             return mainService.buildMinorTask(agv, taskType, destination, jam); | 
 |  |  |             return mainService.buildMinorTask(agvId, taskType, destination, jam); | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             log.error("MainLockWrapService.buildMinorTask[task]", e); | 
 |  |  |             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |