| | |
| | | model.addAttribute("list",list); |
| | | String roleid = UserExt.getUser().getRoleid(); |
| | | model.addAttribute("role",roleid); |
| | | return PREFIX + "tShop_add.html"; |
| | | return PREFIX + "TShop_add.html"; |
| | | } |
| | | |
| | | |
| | |
| | | User byId1 = userMapper.selectById(byId.getStoreStaffId()); |
| | | model.addAttribute("city",byId1); |
| | | model.addAttribute("type",1); |
| | | return PREFIX + "tShop_edit.html"; |
| | | return PREFIX + "TShop_edit.html"; |
| | | } |
| | | @RequestMapping("/tShop_info/{id}") |
| | | public String tCityInfo(@PathVariable Integer id, Model model) { |
| | | public String tCityInfo(@PathVariable("id") Integer id, Model model) { |
| | | System.err.println("進入"); |
| | | TEvaluationListVo vo = evaluationService.info(id); |
| | | System.err.println("查詢vo"); |
| | | model.addAttribute("item",vo); |
| | | ArrayList<String> strings = new ArrayList<>(); |
| | | String imgs = vo.getImgs(); |
| | |
| | | model.addAttribute("imgs",strings); |
| | | model.addAttribute("name1",vo.getPName()); |
| | | model.addAttribute("name2",vo.getCName()); |
| | | return PREFIX + "tShop_edit.html"; |
| | | return PREFIX + "TShop_edit.html"; |
| | | } |
| | | @RequestMapping("/tShop_gift/{id}") |
| | | public String tCityGift(@PathVariable Integer id, Model model) { |
| | | TStore byId = storeService.getById(id); |
| | | model.addAttribute("welfarePicture",byId.getWelfarePicture()); |
| | | model.addAttribute("id",id); |
| | | return PREFIX + "tShop_img.html"; |
| | | return PREFIX + "TShop_img.html"; |
| | | } |
| | | @RequestMapping("/tShop_indexSet/{id}") |
| | | public String tCityIndexSet(@PathVariable Integer id, Model model) { |
| | |
| | | StoreConfig c8 = storeConfigService.getOne(new LambdaQueryWrapper<StoreConfig>().eq(StoreConfig::getStoreId, id).eq(StoreConfig::getType,8)); |
| | | model.addAttribute("c8",c8); |
| | | model.addAttribute("id",id); |
| | | return PREFIX + "tShop_imgAll.html"; |
| | | return PREFIX + "TShop_imgAll.html"; |
| | | } |
| | | |
| | | |