ZhuDongming
2019-08-23 e5ca6ba196b8a311cbc0ea182bd6213914c3cce3
src/main/java/com/moral/controller/MonitorPointController.java
@@ -6,9 +6,13 @@
import com.moral.service.MonitorPointService;
import org.springframework.web.bind.annotation.*;
import static com.moral.common.util.WebUtils.getParametersStartingWith;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@RestController
@@ -52,5 +56,12 @@
      List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByName(name);
      return new ResultBean<List<MonitorPoint>>(monitorPoints);
   }
    @GetMapping("list/region")
   public ResultBean<List<MonitorPoint>> getMonitorPointsByRegion(HttpServletRequest request) {
       Map<String, Object> parameters = getParametersStartingWith(request, null);
      List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByRegion(parameters);
      return new ResultBean<List<MonitorPoint>>(monitorPoints);
   }
}