whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/BattInfController.java
@@ -96,7 +96,7 @@
   }
   @GetMapping("all")
   @ApiOperation(notes = "",value="all")
   @ApiOperation(notes = "查所有的电池组",value="all")
   public ServiceModel searchAll() {
      return service.searchAll();
   }
@@ -155,14 +155,14 @@
   //----------根据StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备
   @PostMapping("byStationNameWithout91")
   @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备")
   public ServiceModelOnce serchByStationNameNot91(@RequestParam String stationName1) {
   public ServiceModelOnce serchByStationNameNot91(@ApiParam(value = "省",required = true) @RequestParam String stationName1) {
      BattInf bif = new BattInf();
      bif.setStationName1(stationName1);
      return service.serchByStationNameNot91(bif);
   }
//--查不重复的StationName1(维护区)
   @GetMapping("byStation")
   @ApiOperation(notes = "",value="查不重复的StationName1(维护区)")
   @ApiOperation(notes = "sum 集合长度",value="查不重复的StationName1(维护区)")
   public ServiceModelOnce serchByStation(){
      return service.serchByStation();
   }
@@ -181,8 +181,8 @@
   }
   // ----------查询所有的市
   @PostMapping("allStationName2")
   @ApiOperation(notes = "",value="查询所有的市")
   public ServiceModel serchAllStationName2(@RequestParam String stationName1) {
   @ApiOperation(notes = "模糊查询",value="查询所有的市")
   public ServiceModel serchAllStationName2(@ApiParam(value = "省",required = true) @RequestParam String stationName1) {
      BattInf binf = new BattInf();
      User_inf uinf=(User_inf) ActionUtil.getUser();
      binf.setNum(uinf.getuId());
@@ -202,7 +202,7 @@
   }
   //--查询所有的机房
   @PostMapping("allStationName")
   @ApiOperation(notes = "",value="查询所有的机房")
   @ApiOperation(notes = "",value="查询所有的机房—带参")
   public ServiceModel serchAllStationName(@ApiParam(value = "省",required = true) @RequestParam String stationName1,@ApiParam(value = "市",required = true) @RequestParam String stationName2,@ApiParam(value = "区",required = true) @RequestParam String stationName5) {
      BattInf binf = new BattInf();
      User_inf uinf = (User_inf) ActionUtil.getUser();
@@ -267,7 +267,7 @@
   //判断新增的电池组是否存在
   @PostMapping("judgeBatt")
   @ApiOperation(notes = "",value="判断新增的电池组是否存在")
   public ServiceModel judgeBatt(@RequestParam String stationName) {
   public ServiceModel judgeBatt(@ApiParam(value = "站点",required = true) @RequestParam String stationName) {
      BattInf binf = new BattInf();
      binf.setStationName(stationName);
      return service.judgeBatt(binf);
@@ -496,7 +496,7 @@
   }
   //添加新的电池组
   @PostMapping("ky")
   @ApiOperation(notes = "",value="添加新的电池组")
   @ApiOperation(notes = "TODO",value="添加新的电池组TODO")
   public ServiceModel add_ky(@RequestBody List<BattInf> list) {
      // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType());
@@ -521,10 +521,10 @@
   
   //查询电池组信息<大屏显示>
   @GetMapping("battOnBigScreen")
   @ApiOperation(notes = "",value="查询电池组信息<大屏显示>")
   public ServiceModel serchBatt_DP(@RequestBody BattInf binf){
      // BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
   @ApiOperation(notes = "未使用参数查询",value="查询电池组信息<大屏显示>")
   public ServiceModel serchBatt_DP(){
      BattInf binf= new BattInf();
      return service.serchBatt_DP(binf);
   }
   //紫晶山西——---机房列表