From 8172572f01c0baa527085243e010afa4bec5efcc Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 31 十月 2025 17:33:38 +0800
Subject: [PATCH] 陕西2025版接口调整3-新增接口页面

---
 src/main/java/com/fzzy/api/view/pr/Api1109PR.java |  141 -----------------------------------------------
 1 files changed, 0 insertions(+), 141 deletions(-)

diff --git a/src/main/java/com/fzzy/api/view/pr/Api1109PR.java b/src/main/java/com/fzzy/api/view/pr/Api1109PR.java
index f4d2885..20ab7b8 100644
--- a/src/main/java/com/fzzy/api/view/pr/Api1109PR.java
+++ b/src/main/java/com/fzzy/api/view/pr/Api1109PR.java
@@ -5,7 +5,6 @@
 import com.bstek.dorado.annotation.Expose;
 import com.bstek.dorado.data.provider.Page;
 import com.fzzy.api.data.ApiParam;
-import com.fzzy.api.data.PushProtocol;
 import com.fzzy.api.service.ApiCommonService;
 import com.fzzy.api.service.ApiPushManager;
 import com.fzzy.api.service.ApiRemoteService;
@@ -24,13 +23,10 @@
 import org.springframework.data.domain.Sort;
 import org.springframework.data.jpa.domain.Specification;
 import org.springframework.stereotype.Component;
-import sun.misc.BASE64Encoder;
-
 import javax.persistence.criteria.CriteriaBuilder;
 import javax.persistence.criteria.CriteriaQuery;
 import javax.persistence.criteria.Predicate;
 import javax.persistence.criteria.Root;
-import java.io.*;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -233,141 +229,4 @@
 		return responseDto.toString();
 	}
 
-
-	/**
-	 * imgFile 鍥剧墖鏈湴瀛樺偍璺緞
-	 */
-	public static String getImgFileToBase64(String imgFile) {
-		//灏嗗浘鐗囨枃浠惰浆鍖栦负瀛楄妭鏁扮粍瀛楃涓诧紝骞跺鍏惰繘琛孊ase64缂栫爜澶勭悊
-		InputStream inputStream = null;
-		byte[] buffer = null;
-		//璇诲彇鍥剧墖瀛楄妭鏁扮粍
-		try {
-			inputStream = new FileInputStream(imgFile);
-			int count = 0;
-			while (count == 0) {
-				count = inputStream.available();
-			}
-			buffer = new byte[count];
-			inputStream.read(buffer);
-		} catch (IOException e) {
-			log.error(e.getMessage(),e);
-		} finally {
-			if (inputStream != null) {
-				try {
-					// 鍏抽棴inputStream娴�
-					inputStream.close();
-				} catch (IOException e) {
-					e.printStackTrace();
-				}
-			}
-		}
-		// 瀵瑰瓧鑺傛暟缁凚ase64缂栫爜
-		//return Base64Utils.encodeToString(buffer);
-		 return new BASE64Encoder().encode(buffer);
-	}
-
-	/**
-	 * 鑾峰彇鍥剧墖鐨勪簩杩涘埗娴�
-	 * @param imgPath
-	 * @return
-	 */
-	@SuppressWarnings("resource")
-	public String imgToIo(String imgPath){
-		//鍥剧墖杞寲涓轰簩杩涘埗
-		byte[] imageBytes = null;
-		try {
-			FileInputStream fileInputStream = new FileInputStream(new File(imgPath));
-			imageBytes = new byte[fileInputStream.available()];
-			fileInputStream.read(imageBytes);
-		} catch (IOException e) {
-			System.out.println(e);
-			return null;
-		}
-		return UnicodeByteToStr(imageBytes);
-	}
-
-	private static String UnicodeByteToStr(byte[] b){
-		StringBuilder sb = new StringBuilder();
-		for(int i=0;i<b.length;i++) {
-			sb.append(String.format("%02x", b[i]));
-		}
-		return sb.toString();
-	}
-
-	/**
-	 * 鏍规嵁鏂囦欢璺緞灏嗘枃浠惰浆涓轰簩杩涘埗鏁扮粍
-	 * @param filePath:鏂囦欢璺緞
-	 * @return
-	 */
-	public static byte[] file2byte(String filePath) {
-		byte[] buffer = null;
-		try {
-			File file = new File(filePath);
-			FileInputStream fis = new FileInputStream(file);
-			ByteArrayOutputStream bos = new ByteArrayOutputStream();
-			byte[] b = new byte[1024];
-			int n;
-			while ((n = fis.read(b)) != -1) {
-				bos.write(b, 0, n);
-			}
-			fis.close();
-			bos.close();
-			buffer = bos.toByteArray();
-		} catch (FileNotFoundException e) {
-			e.printStackTrace();
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		return buffer;
-	}
-
-	/**
-	 * 灏嗕簩杩涘埗鏁扮粍杞负瀛楃涓�
-	 * @param b
-	 * @return
-	 */
-	public static String toHexString(byte[] b) {
-		StringBuilder sb = new StringBuilder();
-		String stmp="";
-		for (int n=0;n<b.length;n++) {
-			stmp=(Integer.toHexString(b[n] & 0XFF));
-			if (stmp.length()==1) sb.append("0"+stmp);
-			else sb.append(stmp);
-		}
-		return sb.toString().toUpperCase();
-	}
-
-
-	public static void main(String[] args) {
-		String hex = toHexString(file2byte("E://91511424746940066Y001.jpg"));
-		System.out.println(hex);
-		saveToImgFile(hex,"E://dd.jpg");
-	}
-
-
-	public static  void saveToImgFile(String src,String output){
-		if(src==null||src.length()==0){
-			return;
-		}
-		try{
-			FileOutputStream out = new FileOutputStream(new File(output));
-			byte[] bytes = src.getBytes();
-			for(int i=0;i<bytes.length;i+=2){
-				out.write(charToInt(bytes[i])*16+charToInt(bytes[i+1]));
-			}
-			out.close();
-		}catch(Exception e){
-			e.printStackTrace();
-		}
-	}
-	private static int charToInt(byte ch){
-		int val = 0;
-		if(ch>=0x30&&ch<=0x39){
-			val=ch-0x30;
-		}else if(ch>=0x41&&ch<=0x46){
-			val=ch-0x41+10;
-		}
-		return val;
-	}
 }

--
Gitblit v1.9.3