| | |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public R delete(@RequestBody List<Long> ids) { |
| | | return R.ok(finReimbursementService.delete(ids)); |
| | | } |
| | | |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出费用报销数据") |
| | | public void export(HttpServletResponse response, FinReimbursementDto finReimbursementDto) { |
| | | List<FinReimbursementVo> list = finReimbursementService.list(finReimbursementDto); |
| | | ExcelUtil<FinReimbursementVo> util = new ExcelUtil<FinReimbursementVo>(FinReimbursementVo.class); |
| | | util.exportExcel(response, list, "费用报销数据"); |
| | | } |
| | | } |