lxw
2022-11-17 97b46c01f1d142780c2fc455bdb2b003f8141e93
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
31
32
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.MaterialApprovingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
 
import java.io.IOException;
 
/**
 * 物料审批解析
 */
@RestController
@RequestMapping("materialApproving")
@Api(tags = "物料审批解析")
public class MaterialApprovingController {
 
    @Autowired
    private MaterialApprovingService service;
 
 
    @PostMapping("zipParse")
    @ApiOperation("zip解析")
    public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException {
        return service.zipParse(file);
    }
 
}