| | |
| | | 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 = "在线监测-实时监控") |
| | |
| | | return service.serchByCondition2(realdata); |
| | | } |
| | | |
| | | @ApiOperation("excel解析") |
| | | @PostMapping("excelParse") |
| | | public Response excelParse(@RequestParam MultipartFile file) throws IOException, InvalidFormatException { |
| | | return service.excelParse(file); |
| | | } |
| | | |
| | | } |