whyczh
2021-11-27 b8f0aac1ea62e98e37d21a7ca394d5098a6c02f3
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
41
42
43
44
45
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.BattInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@RequestMapping("battInf")
@RestController
@Api(tags = "电池信息")
public class BattInfController {
 
    @Autowired
    private BattInfService service;
 
    @GetMapping("/searchAllStationName1")
    @ApiOperation("查询省")
    public Response searchAllStationName1(@RequestParam Integer userId){
        return service.searchAllStationName1(userId);
    }
    @GetMapping("/searchAllStationName2")
    @ApiOperation("查询市")
    public Response searchAllStationName2(@RequestParam Integer userId,@RequestParam(required = false) String stationName1){
        return service.searchAllStationName2(userId,stationName1);
    }
    @GetMapping("/searchAllStationName5")
    @ApiOperation("查询区")
    public Response searchAllStationName5(@RequestParam Integer userId,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2){
        return service.searchAllStationName5(userId, stationName1, stationName2);
    }
    @GetMapping("/searchAllStationName")
    @ApiOperation("查询站点名")
    public Response searchAllStationName(@RequestParam Integer userId,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2,@RequestParam(required = false) String stationName5){
        return service.searchAllStationName(userId, stationName1, stationName2, stationName5);
    }
 
 
 
 
}