沈斌
2018-05-07 5b755fca8ad057cec816550657b67de4ce45dbf1
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);
@@ -135,6 +135,9 @@
    */
   @PostMapping("getOrgsByAreaName")
   public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) {
      System.out.println("++++++++++++++++++++++++++++++++");
      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);