| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | |
| | | @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "编辑商户") |
| | | @ApiOperation(value = "平台编辑商户") |
| | | @ApiOperation(value = "平台编辑商户【2.0】") |
| | | public R createMgtShop(@Validated @RequestBody MgtEditShopDto mgtEditShopDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtEditShopDto.setUserId(userId); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/getMgtShopInfo", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取商户详情") |
| | | @ApiOperation(value = "获取商户详情【2.0】") |
| | | public R<MgtShopInfoVo> getMgtShopInfo(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | MgtShopInfoVo mgtShopInfoVo = shopService.getMgtShopInfo(Long.valueOf(mgtBaseGetDto.getId())); |
| | | return R.ok(mgtShopInfoVo); |
| | |
| | | List<Map<String, String>> bankBranchCode = bankBranchCodeService.getBankBranchCode(dto.getBankNumber()); |
| | | return R.ok(bankBranchCode); |
| | | } |
| | | |
| | | @RequestMapping(value = "/changeShopType", method = RequestMethod.GET) |
| | | @ApiOperation(value = "修改商户类型(转为经销商,转为加盟商)【2.0】") |
| | | public R<Void> changeShopType(@RequestParam Long shopId){ |
| | | return shopService.changeShopType(shopId); |
| | | } |
| | | |
| | | } |