From c31b9d6c2ef028d49af15cad4738e93748df436c Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期四, 20 六月 2019 15:16:06 +0800
Subject: [PATCH] 去掉问题

---
 sensor/src/com/fgkj/actions/MyFileAction.java |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/sensor/src/com/fgkj/actions/MyFileAction.java b/sensor/src/com/fgkj/actions/MyFileAction.java
index 15e2f1a..fcc9c30 100644
--- a/sensor/src/com/fgkj/actions/MyFileAction.java
+++ b/sensor/src/com/fgkj/actions/MyFileAction.java
@@ -21,8 +21,6 @@
 
 import com.fgkj.dao.DAOHelper;
 import com.fgkj.dao.UinfDaoFactory;
-import com.fgkj.dto.BattInf;
-import com.fgkj.dto.BattMap_information;
 import com.fgkj.dto.ImageSize;
 import com.fgkj.dto.MyFile;
 import com.fgkj.dto.ServiceModel;
@@ -192,7 +190,7 @@
 	}
 	
 	//涓婁紶鏈烘埧瑙嗛鎺ュ彛
-	public String uploadStationFile(){
+	/*public String uploadStationFile(){
 		BattInf binf = getGson().fromJson(json, BattInf.class);
 		String fileRoot = "stationsrc";
 		ServiceModel model = new ServiceModel();	
@@ -216,12 +214,12 @@
 		result = tojson(model);
 		return SUCCESS;
 	}
-	
+	*/
 	/**
 	 * 
 	 *	 鑾峰彇鎸囧畾鏈烘埧寰楄祫婧�
 	 */
-	public String searchStationSource(){
+	/*public String searchStationSource(){
 		String fileRoot = "stationsrc";															//瀛樻斁鏈烘埧璧勬簮鏂囦欢鐨勬枃浠跺す
 		BattInf binf = getGson().fromJson(json, BattInf.class);
 		ServiceModel model = new ServiceModel();
@@ -256,7 +254,7 @@
 		}
 		result = tojson(model);
 		return SUCCESS;
-	}
+	}*/
 	
 	//灏嗘枃浠跺鍒跺埌鎸囧畾鐨勭洰褰�
 	public static void copyFile(File oldFile, String newPath){
@@ -295,7 +293,7 @@
 	}
 	
 	//涓婁紶鏈烘埧瑙嗛鎺ュ彛(鎵嬫満绔�)
-	public String uploadStationFile_mobile(){
+	/*public String uploadStationFile_mobile(){
 		BattInf binf = getGson().fromJson(json, BattInf.class);
 		String fileRoot = "stationsrc";
 		ServiceModel model = new ServiceModel();	
@@ -322,9 +320,9 @@
 		}
 		result = tojson(model);
 		return SUCCESS;
-	}
+	}*/
     //灏嗚幏鍙栧埌寰楀浘鐗囧姞姘村嵃
-	public static void GraphicsFile(Object obj, File file,String newImagePath) {
+	/*public static void GraphicsFile(Object obj, File file,String newImagePath) {
 		//InputStream is = null;
         OutputStream os = null;
         BattMap_information binfmation=(BattMap_information) obj;
@@ -339,10 +337,10 @@
             g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);
             g.drawImage(srcImg.getScaledInstance(srcImg.getWidth(null), srcImg.getHeight(null), java.awt.Image.SCALE_SMOOTH), 0, 0, null);
             // 4銆佽缃按鍗版棆杞�
-            /*if (null != degree) {
+            if (null != degree) {
             	//System.out.println("buffImg.getWidth():"+buffImg.getWidth()+"  buffImg.getHeight():"+buffImg.getHeight());
                 g.rotate(Math.toRadians(degree),  buffImg.getWidth()/10,buffImg.getHeight() /10);
-            }*/
+            }
             // 5銆佽缃按鍗版枃瀛楅鑹�
             g.setColor(new Color(255,0,0));//榛樿绾㈣壊
             int font_size= buffImg.getHeight() /35;
@@ -411,12 +409,12 @@
         } catch (Exception e) {
             e.printStackTrace();
         } finally {
-           /* try {
+            try {
                 if (null != is)
                     is.close();
             } catch (Exception e) {
                 e.printStackTrace();
-            }*/
+            }
             try {
                 if (null != os)
                     os.close();
@@ -425,7 +423,7 @@
             }
         }
         
-	}
+	}*/
 	//璁$畻姘村嵃鏂囨湰闀垮害
     //1銆佷腑鏂囬暱搴﹀嵆鏂囨湰闀垮害 2銆佽嫳鏂囬暱搴︿负鏂囨湰闀垮害浜屽垎涔嬩竴
     public static int getTextLength(String text){
@@ -566,7 +564,7 @@
 		File file = new File(filePath);
 		System.out.println(ActionUtil.tojson(file));*/
 		//GraphicsFile("鎴戞槸椴佹槦浼�","D:\\1.jpg","D:\\2.jpg",0,new Color(255,0,0),"JPG");
-		BattMap_information binfmation=new BattMap_information();
+		/*BattMap_information binfmation=new BattMap_information();
 		binfmation.setStationId("42000001");
 		binfmation.setStationName("骞胯タ鐪�-鐧捐壊-GX鐧捐壊涔愪笟鍘跨珛鏂板皬鍖篧F-BTS璁惧");
 		binfmation.setAddress("鐧捐壊甯備箰涓氬幙绔嬫柊灏忓尯闄勮繎灞呮皯妤间笂");
@@ -575,6 +573,6 @@
 		File file=new File("D:\\1.jpg");
 		String filePath = "D:\\2.jpg";
 		//String filename="2.jpg";
-		GraphicsFile(binfmation,file,filePath);
+		GraphicsFile(binfmation,file,filePath);*/
 	}
 }

--
Gitblit v1.9.1