| | |
| | | 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 = "在线监测-实时监控") |
| | | @RestController |
| | |
| | | @Autowired |
| | | private BattRealdataService service; |
| | | |
| | | @ApiOperation(value = "查询历史实时数据",notes = "Batt_realdataAction!serchByCondition:参数recrod_time,recrod_time1,battGroupId") |
| | | @PostMapping("") |
| | | @ApiOperation(value = "查询历史实时数据",notes = "Batt_realdataAction!serchByCondition:参数:recrod_time,recrod_time1,battGroupId,monNum(单体编号),note(电池组单体总数)") |
| | | @PostMapping("serchByCondition2") |
| | | public Response serchByCondition(@RequestBody BattRealdata realdata){ |
| | | return service.serchByCondition(realdata); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询历史实时数据-优化-多线程",notes = "Batt_realdataAction!serchByCondition:参数:recrod_time,recrod_time1,battGroupId,monNum(单体编号),note(电池组单体总数)") |
| | | @PostMapping("serchByCondition") |
| | | public Response serchByCondition2(@RequestBody BattRealdata realdata) throws ParseException, InterruptedException { |
| | | return service.serchByCondition2(realdata); |
| | | } |
| | | |
| | | @ApiOperation("excel解析") |
| | | @PostMapping("excelParse") |
| | | public Response excelParse(@RequestParam MultipartFile file) throws IOException, InvalidFormatException { |
| | | return service.excelParse(file); |
| | | } |
| | | |
| | | @ApiOperation("ABE文件解析") |
| | | @PostMapping("ABEParse") |
| | | public Response aBEParse(@RequestParam MultipartFile file) throws IOException { |
| | | return service.aBEParse(file); |
| | | } |
| | | |
| | | @ApiOperation(value = "FBO4815实时页面需要前一百比历史实时数据") |
| | | @GetMapping("serchDate100") |
| | | public Response serchDate100(@RequestParam int battGroupId) { |
| | | return service.serchDate100(battGroupId); |
| | | } |
| | | } |