From fa00382db413a8489d07983b66f0869305b51a9a Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期五, 11 一月 2019 11:35:54 +0800
Subject: [PATCH] 批量读取系统参数

---
 gx_tieta/src/com/fgkj/actions/BattMap_informationAction.java |   36 +++++++++++++++++++++++++++++++++---
 1 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/gx_tieta/src/com/fgkj/actions/BattMap_informationAction.java b/gx_tieta/src/com/fgkj/actions/BattMap_informationAction.java
index d6a8f2d..72a5197 100644
--- a/gx_tieta/src/com/fgkj/actions/BattMap_informationAction.java
+++ b/gx_tieta/src/com/fgkj/actions/BattMap_informationAction.java
@@ -4,6 +4,7 @@
 
 import com.fgkj.dao.UinfDaoFactory;
 import com.fgkj.dto.BattMap_information;
+import com.fgkj.dto.Page;
 import com.fgkj.dto.ServiceModel;
 import com.fgkj.dto.User_inf;
 import com.fgkj.dto.User_log;
@@ -20,6 +21,18 @@
 	public String add(){
 		BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.add(binfo);
+		{
+			String msg="璁剧疆"+binfo.getStationName()+"鍦�"+binfo.getAddress();
+			User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Increase, msg);
+			uservice.add(ulog);//灏嗙敤鎴风殑鎿嶄綔璁板綍涓嬫潵
+		}
+		result = tojson(model);
+		return SUCCESS;
+	}
+	//9.1褰曞叆鏈烘埧淇℃伅(鎵嬫満绔�)
+	public String replace(){
+		BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
+		ServiceModel model = service.replace(binfo);
 		{
 			String msg="璁剧疆"+binfo.getStationName()+"鍦�"+binfo.getAddress();
 			User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Increase, msg);
@@ -98,14 +111,31 @@
 		result = tojson(model);
 		return SUCCESS;
 	}
-	//9.1棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�)  鍖呮嫭(鍛婅鎬绘暟钀藉悗鎬绘暟寤惰繜鎬绘暟)
+	//9.1棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�,l鏌ヨ鍏ㄩ儴鎵撳紑椤甸潰)
 	public String searchUserManageStation() {
 		User_inf uinf=(User_inf) getUser();
-		List list = service.searchUserManageStation(uinf);
+		ServiceModel model = service.searchUserManageStation(uinf);
+		result = tojson(model);
+		return SUCCESS;
+	}
+	//9.1棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨勶紝鍒嗛〉鍒锋柊)
+	public String searchUserManageStation2() {
+		Page p=getGson().fromJson(json, Page.class);
+		User_inf uinf=(User_inf) getUser();
+		p.setPageAll(uinf.getUId());
+		List list = service.searchUserManageStation2(p);
 		result = tojson(list);
 		return SUCCESS;
 	}
-	
+	//9.1棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨勶紝3.鏍规嵁鍏蜂綋id鏌ヨ鍛婅淇℃伅绛�)
+	public String searchUserManageStation3() {
+		BattMap_information binfor=getGson().fromJson(json, BattMap_information.class);
+		User_inf uinf=(User_inf) getUser();
+		binfor.setNum(uinf.getUId());
+		List list = service.searchUserManageStation3(binfor);
+		result = tojson(list);
+		return SUCCESS;
+	}
 	//9.1鐢垫睜瀵垮懡绠$悊
     public String serchByStationid(){
     	BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);

--
Gitblit v1.9.1