From 2101fdde7e60bde3b81752b4e18f50023b643919 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Mon, 07 May 2018 16:59:16 +0800
Subject: [PATCH] test

---
 src/main/java/com/moral/controller/MobileController.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/moral/controller/MobileController.java b/src/main/java/com/moral/controller/MobileController.java
index 61740c2..848d02e 100644
--- a/src/main/java/com/moral/controller/MobileController.java
+++ b/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);

--
Gitblit v1.8.0