| | |
| | | import com.ruoyi.other.service.ShopPointService; |
| | | import com.ruoyi.other.vo.ShopPointStatistics; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | * 门店积分统计 |
| | | */ |
| | | @GetMapping("/statistics") |
| | | @ApiModelProperty(value = "门店积分统计") |
| | | @ApiOperation(value = "门店积分统计") |
| | | public R<ShopPointStatistics> statistics(ShopPoint shopPoint) { |
| | | ShopPointStatistics statistics = shopPointService.statistics(Page.of(shopPoint.getPageNum(), shopPoint.getPageSize()), shopPoint); |
| | | return R.ok(statistics); |
| | |
| | | * 导出门店积分统计 |
| | | */ |
| | | @GetMapping("/export") |
| | | @ApiModelProperty(value = "导出门店积分统计") |
| | | @ApiOperation(value = "导出门店积分统计") |
| | | public void export(HttpServletResponse response , ShopPoint shopPoint) { |
| | | ShopPointStatistics statistics = shopPointService.statistics(Page.of(1, Integer.MAX_VALUE), shopPoint); |
| | | if (statistics!=null){ |