whycxzp
2022-09-08 200b7aa1a55bf453424955875a8aa22791e7e2a6
src/main/java/com/whyc/controller/BattRealdataController.java
@@ -5,12 +5,12 @@
import com.whyc.service.BattRealdataService;
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;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.text.ParseException;
@Api(tags = "在线监测-实时监控")
@@ -32,4 +32,10 @@
        return service.serchByCondition2(realdata);
    }
    @ApiOperation("excel解析")
    @PostMapping("excelParse")
    public Response excelParse(@RequestParam MultipartFile file) throws IOException, InvalidFormatException {
        return service.excelParse(file);
    }
}