whyczh
2021-11-01 d11d15f5a730d4c9b1bdb3f207a96f158a2e77f4
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
46
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.apache.ibatis.annotations.Param;
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;
 
import java.util.PrimitiveIterator;
 
import static com.sun.xml.internal.ws.api.model.wsdl.WSDLBoundOperation.ANONYMOUS.required;
 
@RequestMapping("battInf")
@RestController
@Api(tags = "电池信息")
public class BattInfController {
 
    @Autowired
    private BattInfService service;
 
    @GetMapping("/serchAllStationName1")
    @ApiOperation("查询省")
    public Response serchAllStationName1(@RequestParam Integer userId){
        return service.serchAllStationName1(userId);
    }
    @GetMapping("/serchAllStationName2")
    @ApiOperation("查询市")
    public Response serchAllStationName2(@RequestParam Integer userId,@RequestParam(required = false) String stationName1){
        return service.serchAllStationName2(userId,stationName1);
    }
    @GetMapping("/serchAllStationName5")
    @ApiOperation("查询区")
    public Response serchAllStationName5(@RequestParam Integer userId,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2){
        return service.serchAllStationName5(userId, stationName1, stationName2);
    }
    @GetMapping("/serchAllStationName")
    @ApiOperation("查询站点名")
    public Response serchAllStationName(@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);
    }
}