| | |
| | | */ |
| | | @RequestMapping("/storeList") |
| | | public String storePage(Model model) { |
| | | List<TCity> provinceList = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",provinceList); |
| | | return PREFIX + "TStoreList.html"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 跳转到门店管理列表页 |
| | | */ |
| | | @RequestMapping("/storeList1") |
| | | public String storePage1(Model model) { |
| | | List<TCity> provinceList = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",provinceList); |
| | | return PREFIX + "TStoreListOne.html"; |
| | | } |
| | | @RequestMapping("/updateType") |
| | | @ResponseBody |
| | | public Object updateType(Long id) { |
| | |
| | | model.addAttribute("id",id); |
| | | return PREFIX + "TGoods_pay.html"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 购买详情 |
| | | * @param id 商品id |
| | | * @return |
| | | */ |
| | | @RequestMapping("/tPay_detail1/{id}") |
| | | public String payOfDetailsOne(@PathVariable(value = "id") Integer id,Model model) { |
| | | System.out.println(id); |
| | | model.addAttribute("id",id); |
| | | return PREFIX + "TGoods_payOne.html"; |
| | | } |
| | | /** |
| | | * 获取 购买记录列表 |
| | | */ |
| | |
| | | payedVo.setPhone(phone); |
| | | payedVo.setStatus(status); |
| | | List<Map<String,Object>> points = pointMercharsClient.queryUserPayedGoodsList(payedVo); |
| | | System.out.println(points); |
| | | System.out.println(points); |
| | | if (points.size() > 0 ){ |
| | | |
| | | for (Map<String, Object> point : points) { |
| | | Object id1 = point.get("id"); |
| | | String idAsString = String.valueOf(id1); |
| | | |
| | | // 移除原始的 "id" 键 |
| | | point.remove("id"); |
| | | |
| | | // 将字符串类型的 "id" 放回 Map 对象中 |
| | | point.put("id", idAsString); |
| | | Integer userId = (Integer) point.get("userId"); |
| | | TAppUser tAppUser = appUserClient.queryById(userId); |
| | | if (ToolUtil.isNotEmpty(tAppUser)){ |