沈斌
2018-05-07 2101fdde7e60bde3b81752b4e18f50023b643919
src/main/java/com/moral/controller/MobileController.java
@@ -108,7 +108,7 @@
    * @param mac the mac
    * @return the device by mac
    */
   @PostMapping("getEquInfoByMac")
   @GetMapping("getEquInfoByMac")
   public AppData<Device> getDeviceByMac(@RequestParam(value="mac", required=true)String mac) {
      Device device = deviceService.getDeviceByMac(mac);
      return new AppData<Device>(device);
@@ -122,6 +122,9 @@
    */
   @PostMapping("getMpointsByAreaName")
   public AppData<List<MonitorPoint>> getMonitorPointsByAreaName(HttpServletRequest request) {
      System.out.println("++++++++++++++++++++++++++++++++11111");
      System.out.println(request.getParameter("areaName"));
      Map<String, Object> parameters = getParametersStartingWith(request, null);
      List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByAreaName(parameters);
      return new AppData<List<MonitorPoint>>(monitorPoints);
@@ -135,6 +138,9 @@
    */
   @PostMapping("getOrgsByAreaName")
   public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) {
      System.out.println("++++++++++++++++++++++++++++++++22222");
      System.out.println(request.getParameter("areaName"));
      Map<String, Object> parameters = getParametersStartingWith(request, null);
      List<Organization> organizations = organizationService.getOrganizationsByAreaName(parameters);
      return new AppData<List<Organization>>(organizations);