| | |
| | | import java.time.LocalDateTime; |
| | | import java.time.LocalTime; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | import java.util.*; |
| | | import java.util.concurrent.ThreadLocalRandom; |
| | | |
| | | /** |
| | |
| | | vo.setStorageDisCharge(storageDisCharge); |
| | | return vo; |
| | | } |
| | | |
| | | @Override |
| | | public void carportData(Integer parkingPlace, Integer remainPlace) { |
| | | this.baseMapper.carportData(parkingPlace,remainPlace); |
| | | } |
| | | |
| | | @Override |
| | | public HashMap<String, Object> getCarportData() { |
| | | HashMap<String, Object> carportData = this.baseMapper.getCarportData(); |
| | | int count = Integer.valueOf(carportData.get("parkingPlace").toString()) - Integer.valueOf(carportData.get("remainPlace").toString()); |
| | | carportData.put("useCarport",count); |
| | | return carportData; |
| | | } |
| | | } |