| | |
| | | ); |
| | | opt.setSend(1);//已下发 |
| | | opt.setResponse(JSON.toJSONString(result));//请求响应 |
| | | opt.setDeviceWrk(command.getWrkNo().toString());//设备工作号 |
| | | shuttleOptService.insert(opt); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | if (shuttleProtocol.getFree() == ShuttleStatusType.BUSY.id) { |
| | | //停止充电 |
| | | if(!(command.getRequest().getBody().get("requestType").equals("stopCharge") && shuttleProtocol.getChargState() == 1)){ |
| | | String requestType = command.getRequest().getBody().get("requestType").toString(); |
| | | //停止充电 管制命令 |
| | | if(!(requestType.equals("stopCharge") && shuttleProtocol.getChargState() == 1) && !requestType.equals("resume")){ |
| | | return false;//小车状态忙,禁止执行命令 |
| | | } |
| | | } |