whycxzp
2022-07-19 6aabc8b327955dc9aa86ec404f895769b56b8907
bom审批-excel解析
1个文件已修改
2 ■■■■■ 已修改文件
src/main/java/com/whyc/controller/ProductBomApprovingController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/controller/ProductBomApprovingController.java
@@ -5,6 +5,7 @@
import com.whyc.pojo.ProductBomApproving;
import com.whyc.service.ProductBomApprovingService;
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.PostMapping;
@@ -32,6 +33,7 @@
     * excel解析bom
     */
    @PostMapping("excelParse")
    @ApiOperation("excel解析")
    public Response excelParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException {
        Response<Object> response = new Response<>();
        String name=file.getOriginalFilename();