|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //    @Scheduled(cron = "0/2 * * * * ? ") | 
|---|
|  |  |  | private void autoMove(){ | 
|---|
|  |  |  | List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",11)); | 
|---|
|  |  |  | List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",11).orderBy("io_pri",false)); | 
|---|
|  |  |  | for (AgvWrkMast agvWrkMast:agvWrkMastList){ | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | Date now = new Date(); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //    @Scheduled(cron = "0/2 * * * * ? ") | 
|---|
|  |  |  | private void autoMoveEnd(){ | 
|---|
|  |  |  | List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",12)); | 
|---|
|  |  |  | List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",12).orderBy("io_pri",false)); | 
|---|
|  |  |  | for (AgvWrkMast agvWrkMast:agvWrkMastList){ | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | WrkMastExecute wrkMastExecute = wrkMastExecuteService.selectOne(new EntityWrapper<WrkMastExecute>().eq("io_type", 121).eq("wrk_no", agvWrkMast.getWrkNo().longValue())); | 
|---|
|  |  |  | if (!Cools.isEmpty(wrkMastExecute) && wrkMastExecute.getWrkSts()==3L && wrkMastExecute.getNowPosition()==3){ | 
|---|
|  |  |  | agvWrkMast.setWrkSts(205L);//任务完成 | 
|---|
|  |  |  | agvWrkMast.setModiTime(new Date()); | 
|---|
|  |  |  | agvWrkMastService.updateById(agvWrkMast); | 
|---|
|  |  |  | //生成agv_wrk_mast_execute任务历史档 | 
|---|
|  |  |  | wrkMastExecuteLogService.save(wrkMastExecute); | 
|---|