| | |
| | | model.addAttribute("objectType",objectType); |
| | | Competition competition = competitionClient.queryById(id); |
| | | System.out.println("======competition======"+competition); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
| | | String startTime = formatter.format(competition.getStartTime()); |
| | | model.addAttribute("startTime",startTime); |
| | | String endTime = formatter.format(competition.getEndTime()); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | model.addAttribute("item",competition); |
| | | String[] split = competition.getStoreId().split(","); |
| | | List<Integer> integers = new ArrayList<>(); |
| | | for (String s : split) { |
| | | integers.add(Integer.valueOf(s)); |
| | | } |
| | | |
| | | model.addAttribute("storeIds",integers); |
| | | |
| | | List<TCity> list = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | TCity one = cityService.getOne(new LambdaQueryWrapper<TCity>().eq(TCity::getCode, competition.getProvinceCode())); |
| | | List<TCity> list1 = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId,one.getId())); |