| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.goods.domain.dto.MgtGoodsEditDto; |
| | | import com.ruoyi.goods.domain.dto.MgtGoodsPageDto; |
| | | import com.ruoyi.goods.domain.dto.MgtGoodsRecommendDto; |
| | | import com.ruoyi.goods.domain.dto.MgtGoodsUpDownDto; |
| | | import com.ruoyi.goods.domain.dto.*; |
| | | import com.ruoyi.goods.domain.vo.MgtGoodsPageVo; |
| | | import com.ruoyi.goods.domain.vo.MgtGoodsTotalVo; |
| | | import com.ruoyi.goods.service.goods.GoodsService; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.system.api.domain.vo.MgtSelectGoodsPageVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | page.setSize(mgtGoodsPageDto.getPageSize()); |
| | | page.setCurrent(mgtGoodsPageDto.getPageNum()); |
| | | page.setOptimizeCountSql(false); |
| | | List<MgtGoodsPageVo> merGoodsPageVoList = goodsService.pageMgtGoods(page,mgtGoodsPageDto); |
| | | return R.ok(page.setRecords(merGoodsPageVoList)); |
| | | List<MgtGoodsPageVo> mgtGoodsPageVoList = goodsService.pageMgtGoods(page,mgtGoodsPageDto); |
| | | return R.ok(page.setRecords(mgtGoodsPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getMgtGoodsTotal", method = RequestMethod.POST) |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/pageMgtSelectGoods", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取商品选择列表") |
| | | public R<Page<MgtSelectGoodsPageVo>> pageMgtSelectGoods(@RequestBody MgtSelectGoodsPageDto mgtSelectGoodsPageDto) { |
| | | Page<MgtSelectGoodsPageVo> page = new Page<>(); |
| | | page.setSize(mgtSelectGoodsPageDto.getPageSize()); |
| | | page.setCurrent(mgtSelectGoodsPageDto.getPageNum()); |
| | | page.setOptimizeCountSql(false); |
| | | List<MgtSelectGoodsPageVo> mgtSelectGoodsPageVos = goodsService.pageMgtSelectGoods(page,mgtSelectGoodsPageDto); |
| | | return R.ok(page.setRecords(mgtSelectGoodsPageVos)); |
| | | } |
| | | } |