| | |
| | | if (funcSta.getType().equals(FuncStaType.CHARGE.toString())) { |
| | | // if the type of this funSta is charge and the existing agv is in charge status, then that means this funSta is occupied |
| | | if (null != agv && !agv.getId().equals(agvId)) { |
| | | AgvModel agvModel = agvModelService.getById(agv.getAgvModel()); |
| | | AgvModel agvModel = agvModelService.getByAgvId(agv.getId()); |
| | | AgvDetail agvDetail = agvDetailService.selectByAgvId(agv.getId()); |
| | | if (agvDetail.getAgvStatus().equals(AgvStatusType.CHARGE)) { |
| | | if (agvDetail.getVol() < agvModel.getQuaBattery()) { |
| | |
| | | |
| | | agv = agvService.findByPosition(funcSta.getCode()); |
| | | if (null != agv) { |
| | | AgvModel agvModel = agvModelService.getById(agv.getAgvModel()); |
| | | AgvModel agvModel = agvModelService.getByAgvId(agv.getId()); |
| | | AgvDetail agvDetail = agvDetailService.selectByAgvId(agv.getId()); |
| | | if (agvDetail.getAgvStatus().equals(AgvStatusType.CHARGE)) { |
| | | return false; |