| | |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | |
| | | return ApiResponse.success(ywContractBillService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("可退款账单") |
| | | @PostMapping("/getCanBackBill") |
| | | @CloudRequiredPermission("business:ywcontractbill:query") |
| | | public ApiResponse<List<YwContractBill>> getCanBackBill (@RequestBody YwContractBill ywContractBill,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywContractBillService.getCanBackBill(ywContractBill)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywcontractbill:exportExcel") |
| | |
| | | public ApiResponse findById(@PathVariable Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywContractBillService.getDetail(id)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("生成账单编号") |
| | | @GetMapping("/dealDayBillCode") |
| | | public ApiResponse dealDayBillCode() { |
| | | ywContractBillService.dealDayBillCode(); |
| | | return ApiResponse.success("生成成功"); |
| | | } |
| | | |
| | | |
| | | } |