| | |
| | | /** |
| | | * 电池温度 |
| | | */ |
| | | private Short batteryTemp; |
| | | private Integer batteryTemp; |
| | | |
| | | /** |
| | | * 错误编号 |
| | |
| | | /** |
| | | * 当前的电压值 |
| | | */ |
| | | private Short currentVoltage; |
| | | private Integer currentVoltage; |
| | | |
| | | /** |
| | | * 当前的模拟量值 |
| | |
| | | // 电量 |
| | | try { |
| | | Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); |
| | | if (chargeLine == null) { |
| | | return false; |
| | | } |
| | | return this.getBatteryPower$() > chargeLine; |
| | | } catch (Exception e) { |
| | | News.error("fail", e); |
| | |
| | | |
| | | // 是否满足充电状态 |
| | | public Boolean isRequireCharge() { |
| | | if (this.busyStatusType == null || this.pakMk == null || this.errorCodeType == null || this.taskNo == null) { |
| | | return false; |
| | | } |
| | | |
| | | boolean res = this.busyStatusType.equals(ShuttleStatusType.IDLE) |
| | | && this.pakMk.equals(true) |
| | | && this.errorCodeType.equals(ShuttleErrorCodeType.NORMAL) |