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);
|
}
|
}
|