| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Created by vincent on 3/15/2024 |
| | |
| | | List<LocVo> locVos = new ArrayList<>(); |
| | | int row = Utils.getRow(locNo); |
| | | int bay = Utils.getBay(locNo); |
| | | |
| | | |
| | | String[] statusOptions = {"F", "D", "O"}; |
| | | Random random = new Random(); |
| | | for (int lev = 1; lev < 6; lev++) { |
| | | locVos.add(new LocVo(Utils.getLocNo(row, bay, lev), "F")); |
| | | locVos.add(new LocVo(Utils.getLocNo(row, bay, lev), statusOptions[random.nextInt(statusOptions.length)])); |
| | | } |
| | | return locVos; |
| | | } |