WagesCompilationController.java 938 Bytes
Newer Older
刘_震's avatar
刘_震 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package com.ruoyi.system.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.WagesCompilationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

/**
 * @author haiwe
 * @date 2024/6/7
 */
@RestController
@RequestMapping("/wages/compilation")
@RequiredArgsConstructor
public class WagesCompilationController {
    private final WagesCompilationService wagesCompilationService;

    @PostMapping("/excel")
    public AjaxResult readExcel(@RequestParam("file") MultipartFile file) {
        wagesCompilationService.readExcel(file);
        return AjaxResult.success();
    }

}