|
|
package com.sunyo.energy.location.controller;
|
|
|
|
|
|
import com.sunyo.energy.location.controller.response.ResultJson;
|
|
|
import com.sunyo.energy.location.model.WaterMeter;
|
|
|
import com.sunyo.energy.location.service.WaterMeterService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
...
|
...
|
@@ -9,8 +10,6 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping("/water_meter")
|
|
|
public class WaterMeterController {
|
...
|
...
|
@@ -27,5 +26,13 @@ public class WaterMeterController { |
|
|
return waterMeterService.findRealTime(wmId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询所有水表编号")
|
|
|
@RequestMapping("/waterMeterAll")
|
|
|
@ResponseBody
|
|
|
public ResultJson waterMeterAll(@RequestParam(value = "wmId", required = false) String wmId){
|
|
|
|
|
|
return waterMeterService.waterMeterAll(wmId);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|