| | |
| | | //提升机在小车楼层 |
| | | wrkMast.setWrkSts(WrkStsType.MOVE_IN_NO_LIFT_6.sts);//小车移动到提升机中 小车移动至站点完成 ==> 提升机至小车层完成 |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setLiftNo(1); |
| | | wrkMastService.updateById(wrkMast); |
| | | return false; |
| | | } |
| | |
| | | //提升机在小车楼层 |
| | | wrkMast.setWrkSts(WrkStsType.MOVE_OUT_NO_LIFT_5.sts);//小车移动到提升机中 小车移动至站点完成 ==> 提升机至小车层完成 |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setLiftNo(1); |
| | | wrkMastService.updateById(wrkMast); |
| | | return false; |
| | | } |
| | |
| | | return false; |
| | | } |
| | | |
| | | LiftThread liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, 1); |
| | | LiftThread liftThread = LiftUtils.getRecentLift(shuttleProtocol.getCurrentLocNo()); |
| | | LiftProtocol liftProtocol = liftThread.getStatus(); |
| | | if (liftProtocol == null) { |
| | | News.taskInfo(wrkMast.getWrkNo(),"{}号提升机对象不存在", 1); |
| | |
| | | //提升机在小车楼层 |
| | | wrkMast.setWrkSts(WrkStsType.MOVE_LIFT_TO_SHUTTLE_COMPLETE_TRANSPORT_LIFT.sts);//小车移动到提升机中 小车移动至站点完成 ==> 提升机至小车层完成 |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setLiftNo(liftProtocol.getLiftNo());//提前锁定提升机 |
| | | wrkMastService.updateById(wrkMast); |
| | | return false; |
| | | } |
| | |
| | | //提升机在小车楼层 |
| | | wrkMast.setWrkSts(WrkStsType.MOVE_LIFT_TO_SHUTTLE_COMPLETE_TRANSPORT_LIFT_OUT.sts);//小车移动到提升机中 小车移动至站点完成 ==> 提升机至小车层完成 |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setLiftNo(liftProtocol.getLiftNo());//提前锁定提升机 |
| | | wrkMastService.updateById(wrkMast); |
| | | return false; |
| | | } |
| | |
| | | |
| | | |
| | | //检测目标楼层车数量是否小于允许的最大数量 |
| | | boolean checkDispatchMaxNum = checkDispatchMaxNum(lev); |
| | | if (!checkDispatchMaxNum) { |
| | | News.info("{}任务,{}层,已经达到当前楼层调度车辆最大值", wrkMast1.getWrkNo(), lev); |
| | | return false; |
| | | } |
| | | // boolean checkDispatchMaxNum = checkDispatchMaxNum(lev); |
| | | // if (!checkDispatchMaxNum) { |
| | | // News.info("{}任务,{}层,已经达到当前楼层调度车辆最大值", wrkMast1.getWrkNo(), lev); |
| | | // return false; |
| | | // } |
| | | |
| | | for (ShuttleThread shuttleThread : diffLev) { |
| | | ShuttleProtocol shuttleProtocol = shuttleThread.getStatus(); |
| | |
| | | validation-timeout: 3000 |
| | | connection-test-query: select 1 |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | url: jdbc:mysql://192.168.10.201:3306/fyxc_shuttle?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://127.0.0.1:3306/fyxc_shuttle?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: root |
| | | mvc: |