| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.Fbs9100sDfuState; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.service.Fbs9100sDfuStateService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | @ApiOperation("查询正在升级的设备") |
| | | @GetMapping("searchAll") |
| | | public Response searchAll(){ |
| | | return service.searchAll(); |
| | | public Response searchAll() { |
| | | return service.searchAll(); |
| | | } |
| | | |
| | | @ApiOperation("websocket查询正在升级的设备") |
| | | @PostMapping("searchWebscoket") |
| | | public Response searchWebscoket(@RequestBody List<Integer> devIds) { |
| | | return service.searchWebscoket(devIds); |
| | | } |
| | | |
| | | @ApiOperation("查询A059设备升级") |
| | | @GetMapping("searchA059") |
| | | public Response searchA059(@RequestParam int pageNum,@RequestParam int pageSize,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2,@RequestParam(required = false) String stationName5){ |
| | | public Response searchA059(@RequestParam int pageNum, @RequestParam int pageSize, @RequestParam(required = false) String stationName1, @RequestParam(required = false) String stationName2, @RequestParam(required = false) String stationName5) { |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.searchA059(pageNum,pageSize,stationName1,stationName2,stationName5,userInf.getUId().intValue()); |
| | | return service.searchA059(pageNum, pageSize, stationName1, stationName2, stationName5, userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @ApiOperation("更新升级参数") |
| | | @PostMapping("updateParam") |
| | | public Response updateA059(@RequestBody Fbs9100sDfuState fbs9100sDfuState) { |
| | | return service.updateA059(fbs9100sDfuState); |
| | | } |
| | | |
| | | @ApiOperation("添加") |