| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @Api(tags = "机房管理") |
| | | @Api(tags = "机房(下拉)管理") |
| | | @RequestMapping("stationInf") |
| | | public class StationInfController { |
| | | @Autowired |
| | |
| | | User uinf= ActionUtil.getUser(); |
| | | return service.getLeftStation(uinf.getId()); |
| | | } |
| | | |
| | | /* |
| | | @ApiOperation(value = "添加机房") |
| | | @PostMapping("addStatiaon") |
| | | public Response addStatiaon(@RequestBody StationInf sinf){ |
| | |
| | | @PostMapping("getStatiaon") |
| | | public Response getStatiaon(@RequestBody StationDto dto){ |
| | | return service.getStatiaon(dto); |
| | | } |
| | | }*/ |
| | | |
| | | } |
| | |
| | | List<String> list=mapper.getStationByUid(uid,stationName1,stationName2,stationName3); |
| | | return new Response().setII(1,list.size()>0,list,"获取省市区县下的站点"); |
| | | } |
| | | //添加机房 |
| | | /*//添加机房 |
| | | public Response addStatiaon(StationInf addsinf) { |
| | | //判断添加锁的时候机房是不是新机房 |
| | | String fullName=addsinf.getProvice()+"_"+addsinf.getCity()+"_"+addsinf.getCountry()+"_"+addsinf.getStationName(); |
| | |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"查询机房"); |
| | | } |
| | | |
| | | */ |
| | | } |