| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.shop.domain.dto.*; |
| | | import com.ruoyi.shop.domain.vo.*; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | page.setCurrent(mgtShopPageDto.getPageNum()); |
| | | List<MgtShopPageVo> mgtShopPageVoList = shopService.pageMgtShop(page,mgtShopPageDto); |
| | | return R.ok(page.setRecords(mgtShopPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportPageMgtShop", method = RequestMethod.POST) |
| | | @ApiOperation(value = "导出商户列表") |
| | | public void exportPageMgtShop(@RequestBody MgtShopPageDto mgtShopPageDto, HttpServletResponse response) { |
| | | Page<MgtShopPageVo> page = new Page<>(); |
| | | page.setSize(2000); |
| | | page.setCurrent(1); |
| | | List<MgtShopPageVo> mgtShopPageVoList = shopService.pageMgtShop(page,mgtShopPageDto); |
| | | ExcelUtil<MgtShopPageVo> util = new ExcelUtil<MgtShopPageVo>(MgtShopPageVo.class); |
| | | util.exportExcel(response, mgtShopPageVoList, "用户订单列表"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) |
| | |
| | | return R.ok(page.setRecords(mgtShopSuggestPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportPageMgtShopSuggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "导出商户建议列表") |
| | | public void exportPageMgtShopSuggest(@RequestBody MgtShopSuggestPageDto mgtShopSuggestPageDto, HttpServletResponse response) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtShopSuggestPageDto.setUserId(userId); |
| | | Page<MgtShopSuggestPageVo> page = new Page<>(); |
| | | page.setSize(2000); |
| | | page.setCurrent(1); |
| | | List<MgtShopSuggestPageVo> mgtShopSuggestPageVoList = shopSuggestService.pageMgtShopSuggest(page,mgtShopSuggestPageDto); |
| | | ExcelUtil<MgtShopSuggestPageVo> util = new ExcelUtil<MgtShopSuggestPageVo>(MgtShopSuggestPageVo.class); |
| | | util.exportExcel(response, mgtShopSuggestPageVoList, "商户建议列表"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/mgtReplayShopSuggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "平台回复建议") |
| | | public R mgtReplayShopSuggest(@RequestBody MgtReplayShopSuggestDto mgtReplayShopSuggestDto) { |