|  |  | 
 |  |  | import com.doumee.dao.business.web.response.GoodsorderDetailDTO; | 
 |  |  | import com.doumee.service.business.GoodsorderService; | 
 |  |  | import com.doumee.service.business.GoodsorderService; | 
 |  |  | import com.doumee.service.business.RefundService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
 |  |  | import org.checkerframework.checker.units.qual.C; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private GoodsorderService goodsorderService; | 
 |  |  |     @Autowired | 
 |  |  |     private RefundService refundService; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  | 
 |  |  |     @PostMapping("/getTotalData") | 
 |  |  |     @RequiresPermissions("business:goodsorder:query") | 
 |  |  |     public ApiResponse<GoodsorderTotalDataVO> getTotalData (@RequestBody Goodsorder pageWrap) { | 
 |  |  |  | 
 |  |  |         pageWrap.setEndDate(pageWrap.getEndDate() != null ? pageWrap.getEndDate():pageWrap.getStartDate()); | 
 |  |  |         return ApiResponse.success(goodsorderService.getTotalData(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     @PostMapping("/pageAccountDetail") | 
 |  |  |     @RequiresPermissions("business:goodsorder:query") | 
 |  |  |     public ApiResponse<PageData<GoodsorderExportVO>> findPageAccountDetail(@RequestBody PageWrap<Goodsorder> pageWrap) { | 
 |  |  |         return ApiResponse.success(goodsorderService.findAccountDetailPage(pageWrap)); | 
 |  |  |             return ApiResponse.success(goodsorderService.findAccountDetailPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("收款明细(微信对账明细)_导出Excel") | 
 |  |  |     @PostMapping("/exportAccountDetailExcel") | 
 |  |  |     @RequiresPermissions("business:goodsorder:exportExcel") | 
 |  |  |     public void exportAccountDetailExcel (@RequestBody PageWrap<Goodsorder> pageWrap, HttpServletResponse response) { | 
 |  |  |         ExcelExporter.build(GoodsorderExportVO.class).exportWithFirstAndEnd(goodsorderService.findExportAccountDetailPage(pageWrap.getModel()), "账单收款明细_"+System.currentTimeMillis(),"账单收款明细_"+ DateUtil.getPlusTime2(DateUtil.getCurrentDate()),null, response); | 
 |  |  |             ExcelExporter.build(GoodsorderExportVO.class).exportWithFirstAndEnd(goodsorderService.findExportAccountDetailPage(pageWrap.getModel()), "账单收款明细_"+System.currentTimeMillis(),"账单收款明细_"+ DateUtil.getPlusTime2(DateUtil.getCurrentDate()),null, response); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("根据ID查询") | 
 |  |  |     @GetMapping("/{id}") |