| | |
| | | @Override |
| | | public Integer getVoltageStatus(Bikes bikes){ |
| | | //低电量电压 |
| | | BigDecimal lowVoltage = new BigDecimal(systemDictDataBiz.queryByCode(Constants.MINI_PROGRAMME, Constants.LOW_VOLTAGE).getCode()); |
| | | BigDecimal lowVoltage = new BigDecimal(systemDictDataBiz.queryByCode(Constants.MINI_PROGRAMME, Constants.LOW_BIKE_VOLTAGE).getCode()); |
| | | if(Objects.isNull(bikes)||Objects.isNull(bikes.getVoltage())||Objects.isNull(lowVoltage)){ |
| | | return 0; |
| | | } |
| | | return bikes.getVoltage().compareTo(lowVoltage)>0?0:1; |
| | | return bikes.getVoltage().compareTo(lowVoltage)>=0?0:1; |
| | | } |
| | | |
| | | |