| | |
| | | } |
| | | List<MgtShopPageVo> mgtShopPageVoList = shopService.pageMgtShop(page,mgtShopPageDto); |
| | | ExcelUtil<MgtShopPageVo> util = new ExcelUtil<MgtShopPageVo>(MgtShopPageVo.class); |
| | | util.exportExcel(response, mgtShopPageVoList, "用户订单列表"); |
| | | util.exportExcel(response, mgtShopPageVoList, "商户列表"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) |
| | |
| | | @RequestMapping(value = "/mgtShopAuth", method = RequestMethod.POST) |
| | | @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件") |
| | | @ApiOperation(value = "平台商户进件") |
| | | public R mgtShopAuth(@Validated @RequestBody MgtShopAuthDto mgtShopAuthDto) throws Exception { |
| | | public R mgtShopAuth(@Validated @RequestBody MgtShopAuthDto mgtShopAuthDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtShopAuthDto.setUserId(userId); |
| | | shopService.mgtShopAuth(mgtShopAuthDto); |
| | |
| | | return R.ok(mgtShopAuthCodeVo); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/mgtShopAuth", method = RequestMethod.POST) |
| | | @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件") |
| | | @ApiOperation(value = "平台商户进件") |
| | | public R mgtShopAuth(@RequestBody MgtShopAuthGetDto mgtShopAuthGetDto){ |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtShopAuthGetDto.setUserId(userId); |
| | | shopService.addProfitSharingReceiver(mgtShopAuthGetDto); |
| | | return R.ok(); |
| | | } |
| | | } |