| | |
| | | |
| | | @GetMapping("/getDetailById") |
| | | @ApiOperation(value = "门店详情", tags = {"管理后台-门店管理"}) |
| | | public R<Shop> getDetailById(@RequestParam("id") Long id){ |
| | | public R<Shop> getDetailById(@RequestParam("id") Integer id){ |
| | | Shop byId = shopService.getById(id); |
| | | return R.ok(byId); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/bindShop") |
| | | @ApiOperation(value = "绑定门店", tags = {"小程序-个人中心"}) |
| | | public R<Void> bindShop(@ApiParam("门店id") @RequestParam Long shopId) { |
| | | public R<Void> bindShop(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | AppUser appUser = appUserClient.getAppUserById(SecurityUtils.getUserId()); |
| | | appUser.setShopId(shopId); |
| | | return appUserClient.editAppUserById(appUser); |
| | |
| | | ShopStatistics shopStatistics = shopMapper.getShopStatistics(shopName); |
| | | return R.ok(shopStatistics); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 编辑门店 |
| | | * @param shop |
| | | */ |
| | | @PostMapping("/updateShop") |
| | | public void updateShop(@RequestBody Shop shop){ |
| | | shopService.updateById(shop); |
| | | } |
| | | } |
| | | |