|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.DateUtil; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Refund; | 
|---|
|  |  |  | import com.doumee.dao.business.model.RefundPlatExportVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.GoodsorderExportVO; | 
|---|
|  |  |  | import com.doumee.service.business.RefundService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse<PageData<Refund>> findPage (@RequestBody PageWrap<Refund> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(refundService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("后台结算记录") | 
|---|
|  |  |  | @PostMapping("/findPlatPage") | 
|---|
|  |  |  | @RequiresPermissions("business:refund:query") | 
|---|
|  |  |  | public ApiResponse<PageData<Refund>> findPlatPage (@RequestBody PageWrap<Refund> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(refundService.findPlatPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("导出Excel") | 
|---|
|  |  |  | @PostMapping("/exportExcel") | 
|---|
|  |  |  | 
|---|
|  |  |  | ExcelExporter.build(Refund.class).export(refundService.findPage(pageWrap).getRecords(), "退款信息表", response); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("导出后台结算记录Excel") | 
|---|
|  |  |  | @PostMapping("/exportPlatExcel") | 
|---|
|  |  |  | @RequiresPermissions("business:refund:exportExcel") | 
|---|
|  |  |  | public void exportPlatExcel (@RequestBody PageWrap<Refund> pageWrap, HttpServletResponse response) { | 
|---|
|  |  |  | ExcelExporter.build(RefundPlatExportVO.class).exportWithFirstAndEnd(refundService.findPlatExportPage(pageWrap.getModel()), "后台结算记录_"+System.currentTimeMillis(),"后台结算记录_"+ DateUtil.getPlusTime2(DateUtil.getCurrentDate()),null, response); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID查询") | 
|---|
|  |  |  | @GetMapping("/{id}") | 
|---|
|  |  |  | @RequiresPermissions("business:refund:query") | 
|---|