whyczh
2021-12-15 ad0f314b970b7753660135dd9d459d3d8dffdb05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.Fbs9100sDfuStateService;
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;
 
 
@RestController
@Api(tags = "作业管理-BTS设备升级")
@RequestMapping("Fbs9100s_dfu_stateAction")
public class Fbs9100sDfuStateController {
 
    @Autowired
    private Fbs9100sDfuStateService service;
 
 
    @ApiOperation("查询正在升级的设备")
    @GetMapping("/searchAll")
    private Response searchAll(){
        return  service.searchAll();
    }
 
    @ApiOperation("添加")
    @GetMapping("/addPro")
    private Response addPro(@RequestParam String stationName,@RequestParam int num){
        return  service.addPro(stationName,num);
    }
 
    @ApiOperation("批量升级")
    @PostMapping("/updatePro")
    private Response updatePro(@RequestBody List<Integer> devIds){
        return  service.updatePro(devIds);
    }
}