| | |
| | | import com.ruoyi.goods.domain.dto.MgtGoodsPageDto; |
| | | import com.ruoyi.goods.domain.vo.MerGoodsPageVo; |
| | | 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 io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return R.ok(page.setRecords(merGoodsPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getMgtGoodsTotal", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取商品统计") |
| | | public R<MgtGoodsTotalVo> getMgtGoodsTotal(@RequestBody MgtBaseDto mgtBaseDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtBaseDto.setUserId(userId); |
| | | MgtGoodsTotalVo mgtGoodsTotalVo = goodsService.getMgtGoodsTotal(); |
| | | return R.ok(mgtGoodsTotalVo); |
| | | } |
| | | |
| | | |
| | | |
| | | } |